Skip to main content
Vulnerability Database/CVE-2026-111066

CVE-2026-111066: AIOHTTP Multipart Request DOS Vulnerability

CVE-2026-111066 is a denial of service vulnerability in AIOHTTP asynchronous framework that allows attackers to exhaust file descriptors through crafted multipart requests. This post explains its impact, affected versions, and mitigation steps.

Published:

Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.

Sources: National Vulnerability Database, CISA KEV, Exploit-DB

CVE-2026-111066 Overview

CVE-2026-111066 is a resource exhaustion vulnerability [CWE-400] in aiohttp, an asynchronous HTTP client/server framework for asyncio and Python. Versions from 2.0.0 up to 3.14.4 fail to release file descriptors when processing multipart requests. An unauthenticated remote attacker can send specially crafted multipart requests to any handler that invokes Request.post(), causing the server to retain open file descriptors indefinitely. Once the operating system file descriptor limit is reached, the server stops accepting new connections and becomes unavailable. The maintainers addressed the issue in aiohttp 3.14.4.

Critical Impact

Unauthenticated attackers can trigger denial of service on any aiohttp server handler calling Request.post() by exhausting file descriptors through crafted multipart requests.

Affected Products

  • aiohttp versions 2.0.0 through 3.14.3
  • Python server applications using Request.post() on multipart handlers
  • Any downstream framework or service embedding vulnerable aiohttp releases

Discovery Timeline

  • 2026-10-19 - CVE-2026-111066 published to NVD
  • 2026-10-20 - Last updated in NVD database

Technical Details for CVE-2026-111066

Vulnerability Analysis

The flaw resides in aiohttp's multipart request parsing path. When a request handler calls Request.post() to parse multipart/form-data input, aiohttp opens temporary file descriptors to buffer uploaded parts. Under specific conditions, the parser does not close these descriptors after the request completes. Each malicious request leaks one or more descriptors from the process table.

Because operating systems enforce a per-process file descriptor limit (RLIMIT_NOFILE), repeated exploitation drives the process toward exhaustion. Once the limit is hit, aiohttp cannot open sockets, log files, or additional upload buffers. The server then rejects legitimate traffic until it is restarted. The weakness is categorized under CWE-400: Uncontrolled Resource Consumption.

Root Cause

The root cause is incomplete cleanup of file-like objects created during multipart decoding. The parser allocates temporary storage for each part but omits a deterministic close path when a part is abandoned or when the request pipeline exits abnormally. The upstream fix in commit 2d94633 ensures descriptors are released as parts are consumed.

Attack Vector

Exploitation requires only network access to a vulnerable aiohttp endpoint that invokes Request.post(). No authentication, user interaction, or privilege is required. An attacker scripts repeated POST requests with crafted multipart bodies and keeps sending them until the target process reaches its descriptor cap. Public endpoints handling form uploads are the primary targets.

// No verified public exploit code is available.
// Refer to the GitHub Security Advisory GHSA-9xw5-w5jj-pvcg for
// technical details on the vulnerable multipart parsing path.

Detection Methods for CVE-2026-111066

Indicators of Compromise

  • Sustained growth in open file descriptors for the aiohttp Python process without a corresponding workload increase
  • OSError: [Errno 24] Too many open files entries in application logs
  • Repeated inbound requests with Content-Type: multipart/form-data from the same source IP or ASN
  • Rising counts of orphaned temporary files in the system temp directory

Detection Strategies

  • Instrument aiohttp services with Prometheus or OpenTelemetry metrics for process_open_fds and alert on upward trends
  • Review web access logs for high-rate multipart POST requests targeting handlers that call Request.post()
  • Use lsof -p <pid> or /proc/<pid>/fd sampling to baseline normal descriptor counts and detect leaks

Monitoring Recommendations

  • Configure alerts when descriptor use exceeds 70% of RLIMIT_NOFILE for any aiohttp worker
  • Forward application and reverse-proxy logs to a centralized analytics platform for correlation of multipart request bursts
  • Track HTTP 5xx error rates on upload endpoints as a secondary signal of descriptor exhaustion

How to Mitigate CVE-2026-111066

Immediate Actions Required

  • Upgrade aiohttp to version 3.14.4 or later across all Python environments and container images
  • Audit application code for handlers calling Request.post() on multipart payloads and prioritize patching those services
  • Place a reverse proxy or web application firewall in front of exposed aiohttp services to rate-limit multipart POST requests
  • Restart affected processes after patching to clear any descriptors already leaked

Patch Information

The fix is included in aiohttp release v3.14.4. Full remediation details are documented in GitHub Security Advisory GHSA-9xw5-w5jj-pvcg. Pin dependencies in requirements.txt, pyproject.toml, or poetry.lock to the fixed version and rebuild downstream artifacts.

Workarounds

  • Replace Request.post() with streaming multipart handling via Request.multipart() where feasible, closing each part explicitly
  • Enforce strict request size, part count, and rate limits at the reverse-proxy or WAF layer
  • Raise RLIMIT_NOFILE as a temporary buffer while coordinating the upgrade, understanding this only delays exhaustion
bash
# Upgrade aiohttp to the fixed release
pip install --upgrade "aiohttp>=3.14.4"

# Verify the installed version
python -c "import aiohttp; print(aiohttp.__version__)"

Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.

Sources: National Vulnerability Database, CISA KEV, Exploit-DB

Experience the Most Advanced Cybersecurity Platform

See how the world’s most intelligent, autonomous cybersecurity platform can protect your organization today and into the future.