CVE-2026-64847
JSON

6.8medium

AnyIO process-pool workers can block indefinitely on undrained stderr

Severity
6.8medium CVSS:4.0 by GitHub_M
Exploit likelihood
0.16% (higher than 3% of CVEs)
Published
Last changed
Assigned by
GitHub_M
Also known as
GHSA-5p39-cfhj-2xmpPYSEC-2026-4024

Description

AnyIO is a high level asynchronous concurrency and networking framework that works on top of either Trio or asyncio. Prior to 4.14.2, AnyIO starts process-pool workers with standard error connected to a pipe that the parent never drains, even though the documented behavior redirects all three standard streams. Worker code that writes enough attacker-influenced data to sys.stderr can fill the pipe and block before returning the standard-output protocol response, causing the awaiting process-pool call to remain blocked indefinitely. Applications that run untrusted or faulty worker code capable of producing substantial standard-error output are affected. This issue is fixed in version 4.14.2.

Affected

Product or packageVersionsReported by
agronholm anyio< 4.14.2CVE List
anyio (PyPI)before 4.14.2GitHub Advisory Database, PyPA Advisory Database

All scores

GitHub_M6.8medium CVSS:4.0CVSS:4.0/AV:L/AC:L/AT:N/PR:L/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N
GitHubmedium CVSS:4.0CVSS:4.0/AV:L/AC:L/AT:N/PR:L/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N
PyPA Advisory DatabaseNot scored CVSS:4.0CVSS:4.0/AV:L/AC:L/AT:N/PR:L/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N

Classification

CWE-770

SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial.

What each source says

CVE List

AnyIO is a high level asynchronous concurrency and networking framework that works on top of either Trio or asyncio. Prior to 4.14.2, AnyIO starts process-pool workers with standard error connected to a pipe that the parent never drains, even though the documented behavior redirects all three standard streams. Worker code that writes enough attacker-influenced data to sys.stderr can fill the pipe and block before returning the standard-output protocol response, causing the awaiting process-pool call to remain blocked indefinitely. Applications that run untrusted or faulty worker code capable of producing substantial standard-error output are affected. This issue is fixed in version 4.14.2.

GitHub Advisory Database
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

Sources

SourceRecordLicence
CVE ListCVE-2026-64847 changed 2026-09-18CVE Terms of Use
GitHub Advisory DatabaseGHSA-5p39-cfhj-2xmp changed 2026-10-01CC-BY-4.0
NVDCVE-2026-64847 changed 2026-09-24Public domain
PyPA Advisory DatabasePYSEC-2026-4024 changed 2026-10-01CC-BY-4.0