---
schema_version: '1.0'
id: security-20260919-e3993c
title: 'CVE-2026-64847: AnyIO process-pool workers can block indefinitely on undrained
  stderr'
url: https://osv.dev/vulnerability/GHSA-5p39-cfhj-2xmp
url_hash: e3993cfa8849012790a6cf4cf26a54cbe605c3ef6eb8e596e14956c4768ea11c
canonical_url: https://osv.dev/vulnerability/GHSA-5p39-cfhj-2xmp
source: osv:ghsa
category: security/library
category_raw: cve/library
region: null
tags:
- cve
- CVE-2026-64847
- GHSA-5p39-cfhj-2xmp
- severity:CVSS:4.0/AV:L/AC:L/AT:N/PR:L/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N
- anyio
- PyPI
lang: en
published_at: '2026-09-18T17:17:10Z'
fetched_at: '2026-09-19T16:15:36.862255Z'
updated_at: '2026-09-21T23:51:10.738163Z'
status: published
content_hash: babd066d5bdc3c8bf1deeb8e71ae11183197d44eb327dc020df88c9d71dcd40e
content_changed_at: null
license_note: full
summary: AnyIO process-pool workers can block indefinitely on undrained stderr
summary_source: rss
summary_en: AnyIO process-pool workers can block indefinitely on undrained stderr
summary_omitted_reason: null
redistribution: true
keywords_en:
- anyio
- block
- can
- CANDY TUNE
- cve
- CVE-2026-64847
- CVE/CVSS
- GHSA-5p39-cfhj-2xmp
- indefinitely
- library vulnerability
- process-pool
- PyPI
- PyPI:click
- severity:CVSS:4.0/AV:L/AC:L/AT:N/PR:L/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N
- software security
- stderr
- undrained
- Workers
entities_en:
- name: CANDY TUNE
  type: organization
- name: CVE/CVSS
  type: UNKNOWN
- name: PyPI:click
  type: artifact
- name: Workers
  type: concept
topics_en:
- library vulnerability
- software security
numeric_facts: []
entities:
- name: CVE/CVSS
  type: UNKNOWN
- name: PyPI:click
  type: artifact
- name: Workers
  type: concept
- name: CANDY TUNE
  type: organization
key_facts: []
related: []
related_auto:
- name: Isolate
  type: artifact
  weight: 8.4
- name: 村川緋杏
  type: person
  weight: 6.0
- name: AIエージェント
  type: UNKNOWN
  weight: 1.0
computed_at: '2026-09-19T16:15:38Z'
---

# CVE-2026-64847: AnyIO process-pool workers can block indefinitely on undrained stderr

## TL;DR
AnyIO process-pool workers can block indefinitely on undrained stderr

## Key Points
- cve / CVE-2026-64847 / GHSA-5p39-cfhj-2xmp / severity:CVSS:4.0/AV:L/AC:L/AT:N/PR:L/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N / anyio / PyPI

## Details
**Severity:** CVSS:4.0/AV:L/AC:L/AT:N/PR:L/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N
**Advisory:** GHSA-5p39-cfhj-2xmp (CVE-2026-64847)

**Details:**
### Impact
AnyIO starts process-pool workers with stderr connected to a pipe but never drains that pipe. The worker redirects stdin and stdout to /dev/null to protect its protocol, but does not redirect stderr even though the documentation says all three standard streams are redirected. Worker code that writes enough attacker-influenced data to stderr can fill the pipe, block before returning the stdout protocol response, and wedge the awaiting process-pool call.

Anyone who runs untrusted or faulty code that writes too much to `stderr` is at risk.

### Patches
This vulnerability will be patched in v4.14.2.

### Workarounds
Closing `sys.stderr` in the target function should at least prevent the deadlock.

**References:**
- https://github.com/agronholm/anyio/security/advisories/GHSA-5p39-cfhj-2xmp
- https://github.com/agronholm/anyio/pull/1207
- https://github.com/agronholm/anyio/commit/f1b7301c8264b0d2e8d24a5788fd29e93dea4040
- https://github.com/agronholm/anyio
- https://github.com/agronholm/anyio/releases/tag/4.14.2

_Data: OSV.dev (upstream: ghsa) — https://osv.dev/vulnerability/GHSA-5p39-cfhj-2xmp_

## Source
元記事: [CVE-2026-64847: AnyIO process-pool workers can block indefinitely on undrained stderr](https://osv.dev/vulnerability/GHSA-5p39-cfhj-2xmp) — published 2026-09-18T17:17:10Z
