CVE-2026-64847: Anyio AnyIO Process-pool Workers Can Block Vulnerability
MODERATECVE-2026-64847 is a MODERATE anyio process-pool workers can block vulnerability (CWE-770: Allocation of Resources Without Limits or Throttling) affecting Anyio libraries in the PyPI ecosystem. The issue involves anyio process-pool workers can block indefinitely on undrained stderr. Remediation is available by upgrading affected packages to version 4.14.2.
CVE-2026-64847 at a Glance
How to Fix CVE-2026-64847
To remediate this vulnerability, upgrade all affected Anyio dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.
pip install anyio>=4.14.2
Run the following command in your project directory to verify that all resolved dependencies use the patched release:
pip show anyio
How to Check if You Are Affected
To determine whether your Python environment is affected by CVE-2026-64847, inspect your installed packages using pip:
pip show anyio
Analyze the terminal output to locate any version of Anyio in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 4.14.2), your application is affected.
Note: The pip show anyio command checks currently installed packages in your active Python environment.
Technical Details
Vulnerability Mechanism & Technical Analysis
This vulnerability is classified under CWE-770: Allocation of Resources Without Limits or Throttling, where the product allocates a reusable resource or group of resources on behalf of an actor without imposing any intended restrictions on the size or number of resources that can be allocated. In Anyio, software state validation or input boundaries are circumvented during processing. Review the official source advisory statement below for specific affected components, classes, and reproduction details.
Source Advisory Statement
CVE-2026-64847 Affected Anyio Versions
1 component(s)| Product / Package | Ecosystem | Affected Versions | Fixed Version |
|---|---|---|---|
|
anyio
|
PyPI |
< 4.14.2
|
4.14.2
|
References
Frequently Asked Questions
What is CVE-2026-64847?
Which Anyio versions are affected?
What version fixes CVE-2026-64847?
Is anyio affected?
What CWE is associated with CVE-2026-64847?
How can I check PyPI dependencies for CVE-2026-64847?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"schema_version" : "1.4.0",
"id" : "GHSA-5p39-cfhj-2xmp",
"modified" : "2026-09-18T17:17:10Z",
"published" : "2026-09-18T17:17:10Z",
"aliases" : [ "CVE-2026-64847" ],
"summary" : "AnyIO process-pool workers can block indefinitely on undrained stderr",
"details" : "### Impact\nAnyIO 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.\n\nAnyone who runs untrusted or faulty code that writes too much to `stderr` is at risk.\n\n### Patches\nThis vulnerability will be patched in v4.14.2.\n\n### Workarounds\nClosing `sys.stderr` in the target function should at least prevent the deadlock.",
"severity" : [ {
"type" : "CVSS_V4",
"score" : "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"
} ],
"affected" : [ {
"package" : {
"ecosystem" : "PyPI",
"name" : "anyio"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "0"
}, {
"fixed" : "4.14.2"
} ]
} ]
} ],
"references" : [ {
"type" : "WEB",
"url" : "https://github.com/agronholm/anyio/security/advisories/GHSA-5p39-cfhj-2xmp"
}, {
"type" : "WEB",
"url" : "https://github.com/agronholm/anyio/pull/1207"
}, {
"type" : "WEB",
"url" : "https://github.com/agronholm/anyio/commit/f1b7301c8264b0d2e8d24a5788fd29e93dea4040"
}, {
"type" : "PACKAGE",
"url" : "https://github.com/agronholm/anyio"
}, {
"type" : "WEB",
"url" : "https://github.com/agronholm/anyio/releases/tag/4.14.2"
} ],
"database_specific" : {
"cwe_ids" : [ "CWE-770" ],
"severity" : "MODERATE",
"github_reviewed" : true,
"github_reviewed_at" : "2026-09-18T17:17:10Z",
"nvd_published_at" : null
}
}