CVE-2026-111065
Max‑Age overflow in aiohttp ≤3.14.3 skips connection closure, allowing pool exhaustion.
- CVSS 6.9
- CWE-770
- Resource Management
- Remote
AIOHTTP is an asynchronous HTTP client/server framework for asyncio and Python. Prior to 3.14.4, Max-Age processing can overflow and skip closing a connection. An attacker can consequently exhaust the connection pool temporarily until garbage collection resolves the connections. This issue is fixed in version 3.14.4.
- CWE
- CWE-770
- CVSS base score
- 6.9
- Published
- 2026-10-19
- OWASP
- A06 Vulnerable and Outdated Components
- Orthogonal defect classification
- Timing/Serialization
- Code defect classification
- Timing Issues
- Category
- Resource Management
- Subcategory
- Resource Exhaustion
- Accessibility scope
- Remote
- Impact
- Denial of Service (DoS)
- Affected component
- AIOHTTP
- Fixed by upgrading
- Yes
Solution
Upgrade aiohttp to version 3.14.4 or later.
Vulnerable code sample
import aiohttp.web
async def handle(request: aiohttp.web.Request) -> aiohttp.web.Response:
# VULNERABLE: unchecked max-age can overflow internal counters
max_age = int(request.query.get('max_age', '0'))
return aiohttp.web.Response(
text='hello',
headers={'Cache-Control': f'max-age={max_age}'}
)Patched code sample
import aiohttp.web
async def handle(request: aiohttp.web.Request) -> aiohttp.web.Response:
# FIX: cap max-age to a safe limit to prevent overflow
raw = int(request.query.get('max_age', '0'))
max_age = min(raw, 2**31 - 1)
return aiohttp.web.Response(
text='hello',
headers={'Cache-Control': f'max-age={max_age}'}
)Published fix
Public sources link this CVE to the changes below. The code samples above were generated to illustrate the defect; these links lead to the code the project actually changed.
- [PR #13677/9e08ba02 backport][3.14] Fix cookie overflow (#13679) (aio-libs/aiohttp)
aiohttp/client.py · ClientSession._request,aiohttp/cookiejar.py · CookieJar.update_cookies
Cite this entry
@misc{vaitp:cve2026111065,
title = {{Max‑Age overflow in aiohttp ≤3.14.3 skips connection closure, allowing pool exhaustion.}},
author = {Bogaerts, Fr\'ed\'eric and Ivaki, Naghmeh and Fonseca, Jos\'e},
year = {2026},
note = {VAITP Python Vulnerability Dataset, entry CVE-2026-111065},
howpublished = {\url{https://netpack.pt/vaitp/vulnerability/CVE-2026-111065/}}
}
Introducing the "VAITP dataset": a specialized repository of Python vulnerabilities and patches, meticulously compiled for the use of the security research community. As Python's prominence grows, understanding and addressing potential security vulnerabilities become crucial. Crafted by and for the cybersecurity community, this dataset offers a valuable resource for researchers, analysts, and developers to analyze and mitigate the security risks associated with Python. Through the comprehensive exploration of vulnerabilities and corresponding patches, the VAITP dataset fosters a safer and more resilient Python ecosystem, encouraging collaborative advancements in programming security.
The supreme art of war is to subdue the enemy without fighting.
Sun Tzu – “The Art of War”
:: Shaping the future through research and ingenuity ::
