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

CVE-2026-111064: AIOHTTP Keepalive Timeout DoS Vulnerability

CVE-2026-111064 is a denial of service vulnerability in AIOHTTP asynchronous framework that allows attackers to exhaust server resources by holding connections open. This article covers technical details, affected versions, and mitigation.

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

CVE-2026-111064 is a resource exhaustion vulnerability in aiohttp, an asynchronous HTTP client/server framework for Python's asyncio. Versions prior to 3.14.4 fail to apply keepalive timeout handling during the initial portion of a request. An attacker can open a TCP connection and keep it idle indefinitely without sending any HTTP request data. Each idle connection consumes server capacity, enabling a denial-of-service condition against aiohttp-based services. The weakness is categorized as [CWE-770] Allocation of Resources Without Limits or Throttling. The maintainers released a fix in aiohttp 3.14.4.

Critical Impact

Remote, unauthenticated attackers can exhaust server connection capacity by holding idle TCP connections open, degrading or disabling aiohttp-based HTTP services.

Affected Products

  • aiohttp versions prior to 3.14.4
  • Python asyncio HTTP server applications built on aiohttp
  • aiohttp 3.14.4 and later (fixed)

Discovery Timeline

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

Technical Details for CVE-2026-111064

Vulnerability Analysis

The vulnerability resides in aiohttp's web_protocol.py connection handling path. The keepalive_timeout parameter governs how long a connection may remain idle between completed requests. Prior to version 3.14.4, this timeout was not enforced during the window after a TCP connection was accepted but before the first byte of a request arrived. An attacker who completes the TCP handshake and sends no HTTP data is therefore not timed out by the keepalive mechanism. By opening many such connections, the attacker consumes file descriptors, socket buffers, and event-loop slots on the server.

The impact is availability-only. The flaw does not affect confidentiality or integrity of data, and no authentication or user interaction is required to trigger it [CWE-770].

Root Cause

The root cause is a missing timeout state at the start of the request lifecycle. The protocol handler armed the keepalive timer only after a prior request completed, treating fresh connections as always-active. Idle sockets that never produced request bytes were never considered candidates for closure. The patch broadens the semantics of keepalive_timeout to cover any idle connection, including those that have not yet sent request data.

Attack Vector

Exploitation is network-based and requires no credentials. An attacker scripts a loop that opens TCP connections to the target aiohttp server and performs no further I/O. Each socket remains in the server's active connection pool indefinitely. Scaling this to thousands of connections from one or more hosts exhausts the server's connection capacity, producing a denial of service similar in effect to classic Slowloris-style attacks.

python
# Patch excerpt from aiohttp/web_protocol.py
# Source: https://github.com/aio-libs/aiohttp/commit/be846822b4b3a5a54b6163e794b42dc06fba54a3

#     status line, bad headers or incomplete payload. If any error occurs,
#     connection gets closed.
#
#-    keepalive_timeout -- number of seconds before closing
#-                         keep-alive connection
#+    keepalive_timeout -- number of seconds before closing an idle connection.
#
#     tcp_keepalive -- TCP keep-alive is on, default is on

The fix redefines keepalive_timeout so that it applies to any idle connection, not only connections between successive keep-alive requests. See the GitHub Security Advisory GHSA-5wr8-gcqf-gqf3 for full details.

Detection Methods for CVE-2026-111064

Indicators of Compromise

  • Unusually high counts of established TCP connections to aiohttp listener ports with zero bytes received from the client.
  • Growing numbers of sockets in ESTABLISHED state with idle duration exceeding typical client behavior.
  • Rapid depletion of worker file descriptors or ulimit -n headroom on hosts running aiohttp.
  • Many source IPs or a single source opening connections without issuing HTTP request lines.

Detection Strategies

  • Monitor the ratio of accepted TCP connections to completed HTTP requests on aiohttp services; a widening gap indicates abuse.
  • Enable access logging and alert when connections close without an associated request-line entry.
  • Use ss -tan state established or equivalent to track long-lived idle sockets against the aiohttp listener.
  • Correlate connection surges across source IPs in SIEM telemetry to identify distributed abuse patterns.

Monitoring Recommendations

  • Track aiohttp process metrics: open sockets, accepted connections per second, and current keepalive_timeout configuration.
  • Ingest reverse-proxy logs (nginx, HAProxy, Envoy) that sit in front of aiohttp to detect slow or empty client sessions upstream.
  • Alert on file-descriptor exhaustion events in systemd, container runtimes, or Kubernetes kubelet logs for aiohttp workloads.

How to Mitigate CVE-2026-111064

Immediate Actions Required

  • Upgrade aiohttp to version 3.14.4 or later across all server and client deployments.
  • Audit requirements.txt, pyproject.toml, and container images for pinned aiohttp versions below 3.14.4.
  • Place aiohttp services behind a reverse proxy or load balancer that enforces per-client idle timeouts if immediate patching is not possible.
  • Reduce the configured keepalive_timeout and tune OS-level tcp_keepalive settings to shorten idle socket lifetime.

Patch Information

The fix is available in aiohttp 3.14.4, released by the aio-libs maintainers. See the GitHub Release v3.14.4 and the upstream commit for details. The patch extends keepalive_timeout semantics so idle connections are closed before any request has been received.

Workarounds

  • Front aiohttp with nginx, HAProxy, or a cloud load balancer and set an aggressive client_header_timeout or equivalent.
  • Lower system ulimit -n per worker to bound maximum concurrent sockets and fail fast under abuse.
  • Apply connection-rate limits per source IP at the network edge or via a WAF to blunt mass idle-connection attacks.
bash
# Example nginx front-end timeouts for an aiohttp upstream
server {
    listen 443 ssl;
    client_header_timeout 5s;
    client_body_timeout   10s;
    keepalive_timeout     15s;

    location / {
        proxy_pass http://aiohttp_upstream;
        proxy_read_timeout 30s;
        proxy_send_timeout 30s;
    }
}

# Python: ensure aiohttp >= 3.14.4
pip install --upgrade 'aiohttp>=3.14.4'

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.