{"id":"CVE-2026-64847","aliases":["CVE-2026-64847","GHSA-5p39-cfhj-2xmp","PYSEC-2026-4024"],"related":[],"kind":"vulnerability","state":"published","title":"AnyIO process-pool workers can block indefinitely on undrained stderr","summary":"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.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"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.","source":"cvelist"},{"lang":"en","text":"### 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.","format":"markdown","source":"ghsa"}],"published":"2026-09-18T17:04:32.038Z","modified":"2026-10-01T17:55:57.336Z","severity":{"scorer":"GitHub_M","scheme":"CVSS:4.0","vector":"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","score":6.8,"rating":"MEDIUM"},"severities":[{"scorer":"GitHub_M","scheme":"CVSS:4.0","vector":"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","score":6.8,"rating":"MEDIUM"},{"scorer":"GitHub","scheme":"CVSS:4.0","vector":"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","rating":"MEDIUM"},{"scorer":"PyPA Advisory Database","scheme":"CVSS:4.0","vector":"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"}],"cwes":["CWE-770"],"affected":[{"ranges":[{"version":"< 4.14.2","status":"affected"}],"vendor":"agronholm","product":"anyio","source":"cvelist"},{"ranges":[{"type":"ecosystem","introduced":"0","status":"affected","fixed":"4.14.2"}],"ecosystem":"PyPI","package":"anyio","purl":"pkg:pypi/anyio","source":"ghsa"},{"ranges":[{"type":"ecosystem","introduced":"0","status":"affected","fixed":"4.14.2"}],"ecosystem":"PyPI","package":"anyio","purl":"pkg:pypi/anyio","source":"pysec"}],"references":[{"url":"https://github.com/agronholm/anyio/security/advisories/GHSA-5p39-cfhj-2xmp","tags":["web","x-refsource-confirm"],"sources":["cvelist","ghsa","nvd","pysec"]},{"url":"https://github.com/agronholm/anyio/pull/1207","tags":["web","x-refsource-misc"],"sources":["cvelist","ghsa","nvd","pysec"]},{"url":"https://github.com/agronholm/anyio/commit/f1b7301c8264b0d2e8d24a5788fd29e93dea4040","tags":["web","x-refsource-misc"],"sources":["cvelist","ghsa","nvd","pysec"]},{"url":"https://github.com/agronholm/anyio/releases/tag/4.14.2","tags":["web","x-refsource-misc"],"sources":["cvelist","ghsa","nvd","pysec"]},{"url":"https://github.com/agronholm/anyio","tags":["package"],"sources":["ghsa","pysec"]},{"url":"https://pypi.org/project/anyio","tags":["package"],"sources":["pysec"]},{"url":"https://github.com/advisories/GHSA-5p39-cfhj-2xmp","tags":["advisory"],"sources":["pysec"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2026-64847","tags":["advisory"],"sources":["pysec"]}],"credits":[],"assigner":"GitHub_M","ssvc":{"scorer":"CISA-ADP","exploitation":"none","automatable":"no","technicalImpact":"partial","date":"2026-09-18T18:07:19.030Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2026-64847","url":"https://www.cve.org/CVERecord?id=CVE-2026-64847","licence":"CVE Terms of Use","modified":"2026-09-18T18:07:27.772Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-5p39-cfhj-2xmp","url":"https://github.com/advisories/GHSA-5p39-cfhj-2xmp","licence":"CC-BY-4.0","modified":"2026-10-01T17:55:57.336Z"},{"source":"nvd","name":"NVD","id":"CVE-2026-64847","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-64847","licence":"Public domain","modified":"2026-09-24T21:25:27.050Z"},{"source":"pysec","name":"PyPA Advisory Database","id":"PYSEC-2026-4024","url":"https://osv.dev/vulnerability/PYSEC-2026-4024","licence":"CC-BY-4.0","modified":"2026-10-01T17:45:01.995Z"}],"updatedAt":"2026-11-25T22:59:39.647Z","epss":{"score":0.0016,"percentile":0.02769,"date":"2026-11-30T12:00:22.000Z"}}