VAITP Dataset

← Back to the dataset

CVE-2026-111066

Unbounded file descriptor leak via multipart requests in aiohttp 2.0.0‑3.14.4.

  • CVSS 8.2
  • CWE-400
  • Resource Management
  • Remote

AIOHTTP is an asynchronous HTTP client/server framework for asyncio and Python. From 2.0.0 until 3.14.4, multipart request processing can retain an unbounded number of open file descriptors. An unauthenticated attacker can consequently exhaust file descriptors with specially crafted multipart requests when a handler uses Request.post(). This issue is fixed in version 3.14.4.

CVSS base score
8.2
Published
2026-10-19
OWASP
A04 Insecure Design
Orthogonal defect classification
Timing/Serialization
Code defect classification
Timing Issues
Category
Resource Management
Subcategory
File Handle Leaks
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
from aiohttp import web

async def handle(request: web.Request) -> web.Response:
    # VULNERABLE: unbounded multipart processing can leak file descriptors
    data = await request.post()
    # Process fields (placeholder)
    _ = data.get('file')
    return web.Response(text="OK")

app = web.Application()
app.router.add_post('/upload', handle)

Patched code sample

import aiohttp
from aiohttp import web

async def handle(request: web.Request) -> web.Response:
    # FIX: limit multipart fields to prevent descriptor exhaustion
    data = await request.post(max_fields=10)
    # Process fields (placeholder)
    _ = data.get('file')
    return web.Response(text="OK")

app = web.Application()
app.router.add_post('/upload', handle)

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.

Cite this entry

@misc{vaitp:cve2026111066,
  title        = {{Unbounded file descriptor leak via multipart requests in aiohttp 2.0.0‑3.14.4.}},
  author       = {Bogaerts, Fr\'ed\'eric and Ivaki, Naghmeh and Fonseca, Jos\'e},
  year         = {2026},
  note         = {VAITP Python Vulnerability Dataset, entry CVE-2026-111066},
  howpublished = {\url{https://netpack.pt/vaitp/vulnerability/CVE-2026-111066/}}
}

Download this entry as JSON Download the whole dataset

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 ::

Before you use the VAITP AI models

Please read and accept the following disclaimer:

By choosing "I understand and accept", you acknowledge that you understand and agree to these terms.