---
schema_version: '1.0'
id: security-20261002-2d29f5
title: 'CVE-2026-64847: AnyIO process-pool workers can block indefinitely on undrained
  stderr'
url: https://osv.dev/vulnerability/PYSEC-2026-4024
url_hash: 2d29f5a6f7c12b55bc1f09055ec2687fe6e3b14baa2254b2e7837c99f62c7cb4
canonical_url: https://osv.dev/vulnerability/PYSEC-2026-4024
source: osv:pypa
category: security/library
category_raw: cve/library
region: null
tags:
- cve
- CVE-2026-64847
- PYSEC-2026-4024
- 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-10-01T16:38:33Z'
fetched_at: '2026-10-02T04:02:59.521345Z'
updated_at: '2026-10-02T05:03:43Z'
status: published
content_hash: 1d3478fc170fad63da2b4556d9f06ee66e8af498b0149c2290694d1679cb411d
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
- CanThoPort
- cve
- CVE-2026-64847
- CVE-2026-87817
- indefinitely
- library vulnerability
- process-pool
- PyPI
- PYSEC-2026-4024
- 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: CanThoPort
  type: location
- name: CVE-2026-87817
  type: event
- name: workers
  type: concept
topics_en:
- library vulnerability
- software security
numeric_facts: []
entities:
- name: CVE-2026-87817
  type: event
- name: workers
  type: concept
- name: CanThoPort
  type: location
key_facts: []
related: []
related_auto:
- name: NanningPort
  type: location
  weight: 2.0
- name: GitPython
  type: concept
  weight: 1.0
- name: hooks/pre-commit
  type: artifact
  weight: 1.0
- name: GitHub Security Advisory
  type: content
  weight: 1.0
- name: BeibuGulfPortGroup
  type: organization
  weight: 1.0
computed_at: '2026-10-02T05:03:41Z'
---

# 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 / PYSEC-2026-4024 / 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:** PYSEC-2026-4024 (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
- https://pypi.org/project/anyio
- https://github.com/advisories/GHSA-5p39-cfhj-2xmp
- https://nvd.nist.gov/vuln/detail/CVE-2026-64847

_Data: OSV.dev (upstream: pypa) — https://osv.dev/vulnerability/PYSEC-2026-4024_

## Source
元記事: [CVE-2026-64847: AnyIO process-pool workers can block indefinitely on undrained stderr](https://osv.dev/vulnerability/PYSEC-2026-4024) — published 2026-10-01T16:38:33Z
