Sep 19, 2026·5 min read·81 visits
A typo in AnyIO 4.14.0 and 4.14.1 causes subprocesses to retain the parent's supplementary groups (such as 'docker' or 'shadow'), bypassing security boundaries designed to drop privileges.
CVE-2026-63349 is a critical privilege-dropping bypass vulnerability in the AnyIO asynchronous framework (versions 4.14.0 and 4.14.1) on POSIX platforms. Due to a variable assignment typo, supplementary groups specified by the developer are not correctly propagated to the execution backend, resulting in subprocesses retaining the parent process's elevated supplementary group permissions.
The AnyIO asynchronous framework serves as a compatibility layer abstracting Python's asyncio and trio engines. A core component of AnyIO is its subprocess execution module, which permits the creation and management of secondary processes through helper functions like open_process and run_process.
On POSIX-compliant operating systems, running highly privileged parent applications must drop permissions when executing untrusted child tasks. This security control is established by setting specific credentials: the primary user identity, primary group, and supplementary groups. In Python, these parameters map to user, group, and extra_groups respectively.
Versions 4.14.0 and 4.14.1 of AnyIO introduced a critical security regression within the POSIX credentials mapping. A logical typo during argument preparation causes the library to ignore or overwrite the specified extra_groups parameter. This failure bypasses supplementary group-dropping policies, exposing systems to privilege escalation attacks.
The root cause of this vulnerability lies in a direct variable assignment error in src/anyio/_core/_subprocesses.py. When a developer provides the extra_groups parameter, AnyIO is designed to construct an arguments dictionary to pass to the asynchronous execution backend.
Instead of assigning the extra_groups list to the corresponding key in kwargs, the code incorrectly maps the primary group variable to the extra_groups key. The vulnerable code statement is: kwargs['extra_groups'] = group.
This assignment leads to two failure states based on the supplied parameters. If group is undefined or None, kwargs['extra_groups'] is set to None, which signals the operating system to inherit all supplementary groups from the parent process. Alternatively, if group is configured as an integer, the backend interpreter throws a TypeError because an integer is not an iterable, inducing a denial of service on process execution.
To analyze the vulnerability, we inspect the mapping logic inside src/anyio/_core/_subprocesses.py in the vulnerable version 4.14.0:
# Vulnerable implementation in AnyIO 4.14.0
if group is not None:
kwargs["group"] = group
if extra_groups is not None:
kwargs["extra_groups"] = group # Bug: incorrect variable mappingThe patch in commit eb562e6462ee46b1904e50b02ce00a858cdeb200 corrects this mapping mistake:
# Patched implementation in AnyIO 4.14.2
if group is not None:
kwargs["group"] = group
if extra_groups is not None:
kwargs["extra_groups"] = extra_groups # Corrected parameter assignmentThe fix is complete and robust because it maps the correct local variable and ensures that the backend receives the intended list of groups. The maintainers added mock tests to verify that every parameter is explicitly verified during integration.
Exploitation of CVE-2026-63349 requires a specific execution context where an application running with elevated privileges executes untrusted commands under dropped privileges.
Consider a daemon running as root that executes a hook script on behalf of a low-privileged user. The daemon attempts to run the hook script with dropped privileges:
await anyio.run_process(
["/home/user/hook.sh"],
user="nobody",
group="nogroup",
extra_groups=[]
)Under AnyIO 4.14.0, because extra_groups is assigned the value of group, the backend receives extra_groups='nogroup'. On some systems, passing a string to an iterable argument raises errors, but if the primary group parameter is not set and defaults to None, the backend receives extra_groups=None. The child process then retains the elevated supplementary groups of the parent (such as docker or shadow), allowing the script to escalate privileges on the host system.
Here is a visual representation of the execution path:
The security impact of CVE-2026-63349 is classified as high, carrying a CVSS v4.0 base score of 7.0. The vulnerability allows an attacker to bypass critical security boundaries designed to enforce least privilege.
If the parent application belongs to administrative groups like docker, disk, or shadow, a child process spawned with lowered UID/GID can still interact with high-privilege resources. This allows an attacker who controls the executed subprocess to gain full administrative control over the host operating system.
No active exploitation has been reported in the wild, and the vulnerability is not listed in the CISA KEV catalog. The attack complexity is rated high because it depends on specific configuration patterns where an application drops credentials using AnyIO subprocess wrappers.
Remediation requires upgrading the anyio package to version 4.14.2 or higher. This completely restores the correct parameter propagation and mitigates the privilege retention issue.
If upgrading is not immediately possible, developers must bypass AnyIO's subprocess module when spawning processes that require privilege dropping. This is achieved by invoking the standard library's asyncio or subprocess APIs directly.
# Safe workaround utilizing standard asyncio
import asyncio
async def spawn_safe_process(cmd, user_id, group_id, extra_gids):
return await asyncio.create_subprocess_exec(
*cmd,
user=user_id,
group=group_id,
extra_groups=extra_gids
)We recommend implementing automated checks to prevent anyio dependencies below version 4.14.2 from being deployed in production environments.
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| Product | Affected Versions | Fixed Version |
|---|---|---|
AnyIO agronholm | >= 4.14.0, < 4.14.2 | 4.14.2 |
| Attribute | Detail |
|---|---|
| CWE ID | CWE-266 / CWE-269 |
| Attack Vector | Local |
| CVSS v4.0 Score | 7.0 (High) |
| Exploit Status | Proof-of-Concept / Theoretical |
| KEV Status | Not Listed |
| Affected Component | anyio._core._subprocesses |
The software incorrectly assigns privileges or permissions to a resource, or does not properly drop privileges when launching a subprocess.
CVE-2026-114150 is a network-accessible information disclosure vulnerability affecting Microsoft ASP.NET Core in .NET 11.0 preview releases and Microsoft Visual Studio 2026 prior to version 18.12.0. The flaw stems from the use of uninitialized resources (CWE-908) within response buffering components, specifically ResponseBufferingStream used by middleware such as HTTP Logging and Output Caching. Because rented memory segments from ArrayPool<byte> or MemoryPool<byte> are not cleared upon return or strictly bounded to the exact written byte count during subsequent reads, residual response payloads from earlier HTTP requests remain in the buffer tail. Downstream consumers or log sinks reading these buffers expose confidential cross-session data, including authentication tokens and personally identifiable information.
An incorrect authorization vulnerability (CWE-863) exists in the ASP.NET Core SignalR HTTP Connection Dispatcher (`Microsoft.AspNetCore.Http.Connections`). The connection negotiation process failed to bind the authenticated caller identity to the generated connection state, and subsequent transport or message dispatch handlers failed to verify caller consistency. Consequently, an authenticated low-privilege attacker who obtains a valid connection identifier or token can inject messages into or hijack another user's SignalR session, achieving an elevation of privilege across security boundaries.
CVE-2026-109478 is a network-accessible Denial of Service (DoS) vulnerability in ASP.NET Core caused by inefficient algorithmic complexity (CWE-407) when parsing comma-separated HTTP request headers. Prior to the patch, the internal helper method ParsingHelpers.GetHeaderSplit repeatedly called StringValues.Concat inside a loop iterating over each comma-separated token. Because StringValues allocates a new array of size k + 1 and copies all existing elements upon each concatenation, processing N tokens incurs O(N^2) time and space complexity. An unauthenticated remote attacker can send HTTP requests with headers containing thousands of short, comma-separated values to exhaust CPU cycles and induce severe Garbage Collection (GC) pauses, rendering the web application unresponsive.
CVE-2026-114147 is a high-severity Denial of Service (DoS) vulnerability affecting ASP.NET Core and specifically the Microsoft.AspNetCore.SignalR.StackExchangeRedis scale-out provider across .NET 8.0, 9.0, 10.0, and 11.0 preview releases. The vulnerability originates from a string comparison mismatch between internal per-connection group collections and the centralized Redis channel subscription registry, compounded by a race condition during connection teardown. Remote unauthenticated attackers can exploit this flaw to leave orphaned connection contexts and active Redis pub/sub listeners pinned in memory, leading to unbounded memory exhaustion and application process termination.
CVE-2026-114156 is an improper resolution of path equivalence vulnerability (CWE-41) in Microsoft ASP.NET Core affecting .NET 11.0 preview releases and Microsoft Visual Studio 2026. The vulnerability stems from a discrepancy between how path prefix validation helpers (such as PathString.StartsWithSegments) and downstream routing mechanisms handle alternate path separators and percent-encoded characters. An unauthenticated remote attacker can exploit this mismatch over the network to bypass path-based authorization middleware and access restricted endpoints.
CVE-2026-114157 is a high-severity local privilege escalation and security feature bypass vulnerability affecting ASP.NET Core on Microsoft Windows. The flaw resides in the Kestrel web server's Named Pipes transport layer (Microsoft.AspNetCore.Server.Kestrel.Transport.NamedPipes) and stems from a race condition (CWE-362) during broken pipe error recovery. When an active connection throws an IOException during handshake acceptance, the connection listener previously disposed of the broken NamedPipeServerStream instance before acquiring a replacement stream from its internal pool. This sequence created a momentary window where zero server instances of the named pipe existed in the Windows Named Pipe File System (NPFS). A local, low-privileged attacker can exploit this timing window to create a named pipe with the identical name and a permissive Discretionary Access Control List (DACL), hijacking subsequent inter-process communications and escalating privileges across security boundaries.