Skip to main content

aiohttp EUVDEUVD-2026-38314

| CVE-2026-54277 MEDIUM
Allocation of Resources Without Limits or Throttling (CWE-770)
2026-06-15 https://github.com/aio-libs/aiohttp GHSA-63hw-fmq6-xxg2
6.6
CVSS 4.0 · Vendor: https://github.com/aio-libs/aiohttp
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Access
    Send HTTP request with oversized target split across multiple TCP segments
  2. Delivery
    Each fragment individually passes max_line_size check in C parser
  3. Exploit
    C parser accumulates fragments in _buf without enforcing total limit
  4. Execution
    Server memory grows unbounded
  5. Persist
    aiohttp process exhausted or OOM-killed
  6. Impact
    Denial of service achieved

Vulnerability Assessment

Weakness
CWE
OWASP Top 10:2025
A06:2025 - Insecure Design
ASVS 5.0
V2 - Validation and Business Logic Resource allocation limits
MITRE ATT&CK

1 technique across 1 tactic: Impact

The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up.

Exploitation Conditions

Exploitation requires the target to be an aiohttp server (or client parsing responses) running aiohttp <= 3.14.0 installed from a pre-built PyPI wheel, which enables the C HTTP parser by default - this is the standard installation path for the overwhelming majority of aiohttp users. No authentication is required; the malicious request is processed before any application-layer authentication check. No special configuration is needed beyond the default: the C parser is active out of the box in pre-built wheels. The attack requires only the ability to send TCP data to the aiohttp server's listening port in multiple write calls, which is trivially achievable from any network-reachable host. Exploitation is blocked by: use of aiohttp installed from source without Cython (AIOHTTP_NO_EXTENSIONS=1), upgrading to aiohttp 3.14.1, or a fronting reverse proxy that enforces request URL length limits before data reaches aiohttp. The impact is strictly availability; no authentication bypass, data exfiltration, or code execution is possible through this vulnerability.

Impact

No CVSS score was provided by NVD or the vendor advisory at time of analysis; the assessed vector is independently derived (see assessed_cvss_vector). Independent assessment yields CVSS 3.1 AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H (7.5 High), reflecting trivial remote unauthenticated exploitation with no attack complexity beyond the ability to fragment TCP data, which is a normal network capability. The vulnerability is not listed in the CISA KEV catalog and no EPSS data was available in the provided intelligence, indicating no confirmed active exploitation at time of analysis. Impact is strictly limited to availability - no confidentiality or integrity impact is expected. Real-world risk is moderate-to-high for publicly exposed aiohttp HTTP servers using default pre-built wheel installations (the vast majority of deployments), since no authentication or special access is required. The severity is partially bounded by the fact that resource exhaustion is typically recoverable via process restart, and by the narrowness of impact to availability alone. However, any aiohttp-based service handling untrusted HTTP traffic without a fronting reverse proxy that enforces line-length limits should treat this as a priority upgrade.

Exploit ScenarioDerived

A remote unauthenticated attacker sends a crafted HTTP GET request to an aiohttp server with the request target (URL path) deliberately split across two or more TCP write calls - for example, GET / followed by 8000 bytes of path data in the first segment, then another 8000 bytes completing the path in the second segment. Each fragment is individually below the 8190-byte max_line_size limit, so no LineTooLong exception is raised, and the C parser accumulates the full 16000+ bytes in its internal buffer. By repeating or scaling this pattern, the attacker drives unbounded memory growth, eventually exhausting server memory and causing denial of service.

This Month Plan within 30 days. Why: MEDIUM severity (CVSS 4.0-6.9).
Patch available 0.3% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv1 – Jun 15, 2026

Memory exhaustion in aiohttp's optimised C HTTP parser allows remote unauthenticated attackers to bypass the max_line_size guard by fragmenting oversized request targets or response reason phrases across multiple TCP reads, potentially causing denial of service against any server using the default pre-built wheel configuration. The flaw is specific to the Cython-compiled C parser (the default in pre-built PyPI wheels); the pure-Python fallback correctly accumulated fragment lengths and is unaffected. No public exploit code has been identified at time of analysis, and a vendor-released patch is available in aiohttp 3.14.1.

RemediationAI

Upgrade aiohttp to version 3.14.1 or later via pip install --upgrade aiohttp; this version contains the upstream fix at commit 5ab61bb4cd88f19b712f12c7c9295fe262bf804d (https://github.com/aio-libs/aiohttp/commit/5ab61bb4cd88f19b712f12c7c9295fe262bf804d). If immediate upgrade is not possible, a compensating control is to force use of the pure-Python parser by reinstalling aiohttp from source without Cython: AIOHTTP_NO_EXTENSIONS=1 pip install --force-reinstall aiohttp; this brings correct accumulated-length checking at the cost of reduced HTTP parsing throughput. Alternatively, placing a reverse proxy such as nginx in front of aiohttp with an enforced large_client_header_buffers limit and client_max_body_size constraint can block excessively long request lines before they reach the vulnerable parser, though this does not eliminate the underlying flaw and does not protect response reason phrase parsing in client use cases. See https://github.com/aio-libs/aiohttp/security/advisories/GHSA-63hw-fmq6-xxg2 for the authoritative advisory.

Affected VersionsENISA

aiohttp < 3.14.1

Affected Packages

pypi aiohttp fix: 3.14.1

Source: OSV (Open Source Vulnerabilities)

Affects your stack

Affects 1 package in pypi

Checking this CVE against your own stacks and servers is part of the Basic plan and up.

Technical ContextAI · show details

aiohttp is an asynchronous HTTP client/server framework for Python, distributed as pip package pkg:pip/aiohttp. Pre-built PyPI wheels ship an optimised C HTTP parser implemented in Cython (aiohttp/_http_parser.pyx), backed by llhttp - the same HTTP parser used by Node.js. The parser enforces a max_line_size limit (default 8190 bytes) via two llhttp callbacks: cb_on_url (for HTTP request targets) and cb_on_status (for HTTP response reason phrases). The root cause is CWE-770 (Allocation of Resources Without Limits or Throttling): each callback invocation checked only the current fragment's byte count (if length > max_line_size) rather than the total accumulated buffer length (if len(buf) + length > max_line_size). Because TCP is a stream protocol, data for a single logical HTTP line can arrive across multiple read() calls, each invoking the callback independently. An attacker can deliberately fragment an overlong URL or reason phrase so that no individual fragment exceeds the limit, while the accumulated buffer grows without bound. The one-line fix per callback - adding len(pyparser._buf) to the comparison - brings the C parser into alignment with the pure-Python implementation that was already correct.

Know when the next one hits your stack

  • Watch products and get an email when something new is published
  • Check this CVE against your own stack and servers
  • Exploit and PoC references, threat intelligence from 22 sources

No credit card · 7-day full trial

Severity by source

Vendor (https://github.com/aio-libs/aiohttp) PRIMARY 6.6 MEDIUM
CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N/E:U
vuln.today AI 7.5 HIGH

Network-reachable with no authentication or complexity required; sole impact is memory exhaustion (availability), so A:H with C:N and I:N.

3.1 AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
4.0 AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N
SUSE 7.5 HIGH
AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
Red Hat 5.9 MEDIUM

Primary rating from Vendor (https://github.com/aio-libs/aiohttp).

CVSS VectorVendor: https://github.com/aio-libs/aiohttp

Attack Vector
Network
Attack Complexity
Low
Attack Requirements
None
Privileges Required
None
User Interaction
None
Vulnerable system: Confidentiality
None
Vulnerable system: Integrity
None
Vulnerable system: Availability
High
Subsequent system: Confidentiality
None
Subsequent system: Integrity
None
Subsequent system: Availability
None

Lifecycle Timeline

1
CVSS changed
Jun 22, 2026 - 18:23 NVD
6.6 (MEDIUM)

DescriptionCVE.org

Summary

It is possible to bypass the max_line_size check in parts of an HTTP request in the C parser.

Impact

If using the optimised C parser (the default in pre-built wheels), then an attacker may be able to send oversized lines through the HTTP parser and use an excessive amount of memory, potentially leading to DoS.

-----

Patch: https://github.com/aio-libs/aiohttp/commit/5ab61bb4cd88f19b712f12c7c9295fe262bf804d

Blast Radius

ecosystem impact
† from your stack dependencies † transitive graph · vuln.today resolves 4-path depth
  • 85 pypi packages depend on aiohttp (45 direct, 41 indirect)

Ecosystem-wide dependent count for version 3.14.1.

Threat Intelligence Overview

EPSS Score
0.3%
Top 81% exploitable
Threat Intel
1
1 source
Data Quality
8 sources
Confidence: High
EUVD NVD CVE.org EPSS Vulnrichment GHSA Vendor GitHub VulDB

How this decision was reached

The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.

SignalValue
Severity MEDIUM
CISA KEV No
Public POC No
EPSS 0.3%
Patch available Yes
Active threat No
Deciding rule
MEDIUM severity (CVSS 4.0-6.9)
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision· derived
Scheduled
Exploitation
None
System Exposure· derived
Open
Automatable
Yes
Human Impact· derived
Medium
Technical Impact
Partial

Priority Score

33
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +33
PoC: 0
Weaponized: 0
Threat intel: 0
Gov advisory: 0

Attack Technique

Denial of Service attacks render applications or systems unavailable by overwhelming resources or triggering failure conditions.

Vendor StatusVendor

SUSE

Severity: Important
Product Status
openSUSE Tumbleweed Fixed
SUSE Linux Enterprise Desktop 15 SP7 Affected
SUSE Linux Enterprise High Performance Computing 15 SP7 Affected
SUSE Linux Enterprise Module for Public Cloud 15 SP7 Affected
SUSE Linux Enterprise Module for Python 3 15 SP7 Affected

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy