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

CVE-2026-111065: AIOHTTP Max-Age DoS Vulnerability

CVE-2026-111065 is a denial of service vulnerability in AIOHTTP asynchronous HTTP framework that allows attackers to exhaust connection pools through Max-Age overflow. This post covers technical details, affected versions, and patches.

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-111065 Overview

CVE-2026-111065 affects AIOHTTP, an asynchronous HTTP client/server framework for asyncio and Python. Versions prior to 3.14.4 contain a flaw in cookie Max-Age processing that can overflow and cause the client to skip closing a connection. Attackers can send crafted responses that temporarily exhaust the client's connection pool until Python garbage collection reclaims the leaked connections. The issue is tracked under [CWE-770: Allocation of Resources Without Limits or Throttling] and is resolved in AIOHTTP 3.14.4.

Critical Impact

Remote unauthenticated attackers can trigger temporary connection pool exhaustion in AIOHTTP clients, degrading availability of applications that rely on the framework.

Affected Products

  • AIOHTTP versions prior to 3.14.4
  • Python applications using AIOHTTP as an HTTP client
  • Downstream services and frameworks bundling vulnerable AIOHTTP releases

Discovery Timeline

  • 2026-10-19 - CVE-2026-111065 published to the National Vulnerability Database (NVD)
  • 2026-10-19 - Last updated in NVD database
  • AIOHTTP 3.14.4 - Fixed release published via GitHub Release v3.14.4

Technical Details for CVE-2026-111065

Vulnerability Analysis

AIOHTTP maintains a connection pool so repeated client requests can reuse persistent HTTP connections. Cookie handling in the client parses the Max-Age attribute from Set-Cookie response headers and uses it to derive expiration logic. The vulnerable code path performs arithmetic on the Max-Age value without bounding the input, allowing the computation to overflow when a server returns an abnormally large integer.

When the overflow occurs, the client-side state machine skips the branch that closes or releases the underlying connection back to the pool. Each triggered response consequently leaks a slot from the connector until the pool's limit is reached. Subsequent requests block until Python's garbage collector finalizes the orphaned response objects, producing an availability outage classified under [CWE-770].

Root Cause

The root cause is missing input validation on cookie Max-Age values combined with unchecked arithmetic in aiohttp/client.py. The patch introduces explicit response tracking so the connection release path cannot be bypassed when cookie parsing raises or returns unexpected values.

Attack Vector

Exploitation requires an AIOHTTP client to issue requests against an attacker-controlled or attacker-influenced server. The malicious server returns a Set-Cookie header with a Max-Age value designed to overflow the parser. No authentication or user interaction is required, and the attack can be driven over the network against any reachable AIOHTTP client.

python
         timer = tm.timer()
         req: ClientRequest | None = None
+        resp: ClientResponse | None = None
         try:
             with timer:
                 # https://www.rfc-editor.org/rfc/rfc9112.html#name-retrying-requests

Source: GitHub Commit 9dd8eaf4. The patch declares resp before the try block so the surrounding cleanup logic can release the connection even when cookie processing raises during response handling.

Detection Methods for CVE-2026-111065

Indicators of Compromise

  • Repeated outbound HTTP responses containing Set-Cookie headers with abnormally large Max-Age values (near or exceeding 64-bit integer boundaries).
  • AIOHTTP client applications logging timeouts or ClientConnectorError while the remote server remains reachable.
  • Growing count of unreleased ClientResponse objects observed in Python heap or tracemalloc snapshots.

Detection Strategies

  • Inventory Python environments for AIOHTTP installations below 3.14.4 using pip list or software bill of materials (SBOM) tooling.
  • Inspect HTTP response captures at egress proxies for malformed Max-Age cookie attributes.
  • Baseline connection pool utilization for AIOHTTP-based services and alert on sustained saturation that correlates with external host interactions.

Monitoring Recommendations

  • Instrument AIOHTTP applications to emit metrics on TCPConnector active and acquired connection counts.
  • Collect application logs centrally and query for connection acquisition timeouts following responses from new or untrusted upstream servers.
  • Track dependency drift so new deployments pulling in vulnerable AIOHTTP versions are flagged during build.

How to Mitigate CVE-2026-111065

Immediate Actions Required

  • Upgrade AIOHTTP to version 3.14.4 or later across all Python services, build images, and virtual environments.
  • Rebuild and redeploy container images that pin a vulnerable AIOHTTP release.
  • Audit third-party packages that depend on AIOHTTP and apply updates that pull in the fixed version.

Patch Information

The fix is published in AIOHTTP 3.14.4. Release notes and the full set of changes are available in the GitHub Release v3.14.4 and the GitHub Security Advisory GHSA-6cjc-53gc-5rqm. The code change is tracked in commit 9dd8eaf4.

Workarounds

  • Restrict AIOHTTP clients to known, trusted upstream endpoints until the upgrade is applied.
  • Route outbound traffic through a filtering proxy that strips or rejects Set-Cookie headers with out-of-range Max-Age values.
  • Lower the per-process TCPConnector request volume and add aggressive request timeouts so pool exhaustion is detected and recovered quickly.
bash
# Upgrade AIOHTTP in affected environments
pip install --upgrade "aiohttp>=3.14.4"

# Verify 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.