Skip to main content

AnyIO EUVDEUVD-2026-83191

| CVE-2026-63349 HIGH
Incorrect Privilege Assignment (CWE-266)
2026-09-18 GitHub_M GHSA-3w57-8xmc-8v26
7.0
CVSS 4.0 · Vendor: GitHub_M
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Access
    Gain foothold in AnyIO-spawned child process
  2. Exploit
    App called extra_groups=[] but groups retained
  3. Execution
    Access group-gated resources parent could reach
  4. Impact
    Escalate laterally within retained group scope

Vulnerability Assessment

Weakness
CWE
OWASP Top 10:2025
A06:2025 - Insecure Design
ASVS 5.0
V8 - Authorization Privilege assignment review
Exploitation Conditions

Applies ONLY to POSIX applications that use anyio.run_process() or anyio.open_process() on AnyIO 4.14.0 or 4.14.1, AND that pass the extra_groups argument to establish a privilege-dropping boundary (typically extra_groups=[] to clear inherited supplementary groups when launching a less-privileged child). Two distinct behaviors: with extra_groups set and group unset, the child silently retains the parent's supplementary groups (fail-open, no error); with both extra_groups and group supplied, the integer group value is passed where an iterable is expected and the launch fails with TypeError (fail-closed). LIMITS: local vector only (not network-reachable), requires the consuming app to already run with the privileges being dropped (PR:H), requires the specific privilege-drop code pattern, and has no security consequence unless the spawned child is subsequently compromised. Non-POSIX platforms and apps not using extra_groups for privilege separation are unaffected.

Impact

This is a privilege-management correctness flaw (CWE-266), not an attacker-triggered exploit primitive. The vendor CVSS 4.0 vector (AV:L/AC:H/AT:P/PR:H/UI:N/VC:H/VI:H/VA:N, base 7.0) correctly signals a LOCAL, high-complexity, high-privilege-required condition - it is emphatically NOT remotely reachable despite the 7.0 headline number. There is no EPSS score, no CISA KEV listing, and no public exploit code; exploitation status is 'no public exploit identified at time of analysis.' The realistic risk is a silent defense-in-depth failure: an application that calls anyio.run_process()/open_process() with extra_groups=[] to drop inherited supplementary groups fails open - the child silently retains the parent's groups (and if group is also set, the call throws TypeError, i.e. fails loudly instead). The impact only materializes if a downstream child process is later compromised AND those retained groups grant access to resources the child was meant to be walled off from. This is a real, correctly-patched bug but a LOW real-world priority: no attacker can trigger it directly, it requires a specific privilege-dropping code pattern in the consuming application, and it depends on a second compromise to have consequence. My independent 3.1 assessment lands ~5.6 (C:H/I:H/A:N), lower than the vendor's 7.0 because the '7.0' aggregates VC:H+VI:H under CVSS 4.0's scoring curve that a defense-in-depth boundary bug does not fully warrant.

Exploit ScenarioDerived

A POSIX service running with elevated privileges uses anyio.run_process(cmd, extra_groups=[]) to spawn a sandboxed worker, intending to strip inherited supplementary groups; because of the bug the worker silently keeps the parent's groups. If that worker is later compromised (e.g., via a separate flaw), the attacker inherits access to group-gated files, sockets, or devices that the privilege drop was meant to remove. No public exploit code exists; this is a fail-open correctness bug requiring local access and a second foothold to have impact.

This Week Schedule remediation this week. Why: HIGH severity (CVSS 7.0-8.9).
1 PoC candidate (unverified) Patch available 0.1% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv1 – Sep 18, 2026

Silent privilege-separation failure in AnyIO 4.14.0 and 4.14.1 on POSIX: when an application passes extra_groups to anyio.run_process() or anyio.open_process() to drop or clear supplementary groups before launching a less-privileged child, the library forwards the wrong variable (the group argument) to the backend, so an intended extra_groups=[] reset is ignored and the child silently inherits the parent's supplementary groups; if group is also supplied, the integer is passed where an iterable is expected and the launch aborts with TypeError. Impact is limited to local, non-network scenarios and only affects applications that already run with the privileges being dropped (PR:H) and rely on this specific code pattern to establish a privilege-dropping boundary, with no consequence unless the spawned child is subsequently compromised; no public exploit identified at time of analysis.

RemediationAI

Vendor-released patch: upgrade to anyio 4.14.2 (PyPI release notes: https://github.com/agronholm/anyio/releases/tag/4.14.2), which contains the one-line correction in src/anyio/_core/_subprocesses.py plus a regression test verifying full argument pass-through; the advisory is at https://github.com/agronholm/anyio/security/advisories/GHSA-3w57-8xmc-8v26 and the upstream fix is PR/commit eb562e6462ee46b1904e50b02ce00a858cdeb200 (https://github.com/agronholm/anyio/pull/1209). Because the failure mode is silent, upgrading alone is not sufficient assurance: add a post-upgrade test that spawns a child through anyio.run_process(..., extra_groups=[]) and asserts os.getgroups() inside the child is empty (or matches the intended set), since unpinned test suites would not otherwise catch a regression. If upgrading is not immediately possible, stop relying on extra_groups for the privilege boundary - pass preexec_fn or a child-side wrapper that explicitly calls os.setgroups([]) followed by os.setgid()/os.setuid() before exec, or invoke subprocess directly, accepting that both alternatives couple the code to CPython's subprocess semantics and bypass AnyIO's backend abstraction. Do not pass both group and extra_groups on unpatched versions, as that combination fails closed with TypeError and can break the launch path entirely; treat that failure as a signal that the privilege drop did not occur rather than retrying without the parameters, and monitor for child processes spawned with inherited supplementary groups as a compensating detective control.

Affected VersionsENISA

anyio 4.14.0, < 4.14.2

Affected Packages

pypi anyio fix: 4.14.2

Source: OSV (Open Source Vulnerabilities)

Affects your stack

Affects 1 package in pypi

Checking this CVE against your own stacks and servers is part of the Basic plan and up.

Technical ContextAI · show details

AnyIO is a high-level asynchronous concurrency and networking framework that runs on top of either Trio or asyncio, and its POSIX subprocess helpers mirror the semantics of CPython's subprocess module, including the extra_groups and group keyword arguments introduced for setting supplementary groups and the primary group of a child process. The defect is a variable-misrouting bug in anyio/_core/_subprocesses.py: when extra_groups is not None, open_process() executes kwargs["extra_groups"] = group instead of kwargs["extra_groups"] = extra_groups, so the caller-supplied supplementary-group list is never forwarded. CWE-266 (Incorrect Privilege Assignment) captures the root cause: the library fails to apply the privilege-restriction the caller requested. Two distinct behaviors follow from this single line. First, the fail-open case - extra_groups is set and group is unset - the value passed downstream is None, so the child keeps the parent process's supplementary groups, breaking a documented privilege-dropping boundary without raising any error (a disposable Linux container test showed subprocess.run(..., extra_groups=[]) clears a synthetic parent group list while anyio.run_process(..., extra_groups=[]) preserves it). Second, the fail-closed case - both extra_groups and group supplied - an integer primary-group value is passed where an iterable of supplementary groups is expected, so the launch fails with TypeError rather than silently running. The upstream fix in PR 1209 corrects the assignment and adds a regression test asserting that every argument accepted by open_process() (stdin/stdout/stderr, cwd, env, startupinfo, creationflags, start_new_session, pass_fds, user, group, extra_groups, umask) is forwarded verbatim to the backend's open_process().

Know when Anyio gets its next vulnerability

  • Watch products and get an email when something new is published
  • Check this CVE against your own stack and servers
  • Exploit and PoC references, threat intelligence from 22 sources

No credit card · 7-day full trial

Severity by source

Vendor (GitHub_M) PRIMARY 7.0 HIGH
CVSS:4.0/AV:L/AC:H/AT:P/PR:H/UI:N/VC:H/VI:H/VA:N/SC:N/SI:N/SA:N
vuln.today AI 5.7 MEDIUM

Local privilege-drop boundary (AV:L), requires privileged app using the specific extra_groups pattern (PR:H) plus a follow-on child compromise (AC:H); retained groups can expose confidentiality and integrity (C:H/I:H), no availability impact.

3.1 AV:L/AC:H/PR:H/UI:N/S:U/C:H/I:H/A:N
4.0 AV:L/AC:H/AT:P/PR:H/UI:N/VC:H/VI:H/VA:N/SC:N/SI:N/SA:N
Red Hat 4.4 MEDIUM

Primary rating from Vendor (GitHub_M).

CVSS VectorVendor: GitHub_M

Attack Vector
Local
Attack Complexity
High
Attack Requirements
Present
Privileges Required
High
User Interaction
None
Vulnerable system: Confidentiality
High
Vulnerable system: Integrity
High
Vulnerable system: Availability
None
Subsequent system: Confidentiality
None
Subsequent system: Integrity
None
Subsequent system: Availability
None

Lifecycle Timeline

2
Patch available
Sep 18, 2026 - 18:03 EUVD
CVE Published
Sep 18, 2026 - 17:02 cve.org
HIGH 7.0

DescriptionCVE.org

AnyIO is a high level asynchronous concurrency and networking framework that works on top of either Trio or asyncio. In 4.14.0, AnyIO accepts the POSIX extra_groups argument in anyio.run_process() and anyio.open_process(), but open_process() forwards the group argument to the backend instead of extra_groups. A caller that supplies extra_groups=[] to clear inherited supplementary groups can therefore launch a child that retains the parent process groups, undermining a privilege-dropping boundary. If group is also supplied, the integer group value is passed where an iterable of supplementary groups is expected and the launch can fail with TypeError. This issue affects POSIX applications that rely on AnyIO subprocess helpers to launch less-privileged child processes. This issue is fixed in version 4.14.2.

Blast Radius

ecosystem impact
† from your stack dependencies † transitive graph · vuln.today resolves 4-path depth
  • 11 pypi packages depend on anyio (9 direct, 2 indirect)

Ecosystem-wide dependent count for version 4.14.0.

Technical POC Analysis

Advisory: GHSA-3w57-8xmc-8v26 (agronholm/anyio).

Full technical POC analysis - root cause, step-by-step exploitation and patch breakdown - is part of the Pro and Business plans.

Latest POC

1 PoC candidate from github (unverified)

Sign in to open the public PoC links collected for this CVE.

Executive ViewAI

Why It Matters

AnyIO 4.14.0 and 4.14.1 silently fail to drop supplementary group memberships when applications use the extra_groups argument to run less-privileged child processes on POSIX systems, weakening a privilege-separation control that teams rely on to contain untrusted workloads. Exposure is limited to environments running with elevated privileges (authenticated, PR:H) that use this specific code pattern, and there is no consequence unless a spawned child is later compromised - but those are precisely the multi-tenant job runners, automation agents, and administrative tooling where isolation matters most. With no vendor patch available, leadership should treat affected deployments as having a degraded containment boundary and track remediation on a defined timeline.

Business Impact: Medium
Compensating Controls

No vendor-released patch identified at time of analysis. Interim mitigations, in order of preference: pin or downgrade to an AnyIO release earlier than 4.14.0 in all affected services until a corrected version is available; replace anyio.run_process()/open_process() privilege-dropping calls with a direct subprocess invocation that explicitly resets supplementary groups via os.setgroups([]) in the pre-exec child setup (or os.setgid/os.setuid sequences) and asserts the reset succeeded; run spawned workers under dedicated service accounts that hold no supplementary group memberships, so that inherited groups grant nothing of value; enforce container or user-namespace isolation around untrusted child workloads so inherited supplementary groups cannot reach sensitive resources; verify remediation empirically by inspecting the Groups line in /proc/<pid>/status for spawned children; and monitor upstream AnyIO releases so the pinned/patched upgrade is applied as soon as the vendor fix ships. This vulnerability is confirmed to require authenticated, privileged local access (PR:H) and has no public exploit identified at time of analysis, which limits its near-term exploitation likelihood.

Threat Intelligence Overview

EPSS Score
0.1%
Top 99% exploitable
Prevalence
High
AnyIO is a foundational async dependency (Starlette/FastAPI/httpx), but the vulnerable subprocess-privilege-drop path is narrow
Threat Intel
1
1 source
Data Quality
5 sources
Confidence: Medium

How this decision was reached

The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.

SignalValue
Severity HIGH
CISA KEV No
Public POC Yes
EPSS 0.1%
Patch available Yes
Active threat No
Deciding rule
HIGH severity (CVSS 7.0-8.9)
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision· derived
Defer
Exploitation· derived
Poc
System Exposure· derived
Small
Automatable· derived
No
Human Impact
Medium

Priority Score

55
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +35
PoC: +20
Weaponized: 0
Threat intel: 0
Gov advisory: 0

Attack Technique

Information disclosure occurs when an application unintentionally exposes sensitive data that aids attackers in reconnaissance or directly compromises security.

Vendor StatusVendor

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy