Vulnerability · Published May 2, 2024 · Assigned by GitHub_M

CVE-2024-30251Denial of service when trying to parse malformed POST requests in aiohttp

High 7.5

In plain English

A high-severity infinite loop in aiohttp from aio-libs. There are no confirmed reports of exploitation so far. The chance it is exploited in the next 30 days is estimated at 1.1% (higher than 66% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.

Severity (CVSS 3.1)7.5High
Exploit odds (30 days)1.1%top 34.3% of all CVEs
Exploited in the wildNo reportsCISA SSVC: none
Attack toolingNoneno public tooling known

Official description

aiohttp is an asynchronous HTTP client/server framework for asyncio and Python. In affected versions an attacker can send a specially crafted POST (multipart/form-data) request. When the aiohttp server processes it, the server will enter an infinite loop and be unable to process any further requests. An attacker can stop the application from serving requests after sending a single request. This issue has been addressed in version 3.9.4. Users are advised to upgrade. Users unable to upgrade may manually apply a patch to their systems. Please see the linked GHSA for instructions.

Affected packages & fixed versions

EcosystemPackageFixed inAdvisory
Debian:12python-aiohttp3.8.4-1+deb12u1DEBIAN-CVE-2024-30251
Debian:12python-aiohttp3.8.4-1+deb12u1DSA-5828-1
Debian:13python-aiohttp3.9.5-1DEBIAN-CVE-2024-30251
Debian:14python-aiohttp3.9.5-1DEBIAN-CVE-2024-30251
PyPIaiohttp3.9.4GHSA-5m98-qgg9-wh84
PyPIaiohttp3.9.4PYSEC-2026-1098

Affected products (as reported)

VendorProductVersions
aio-libs aiohttp < 3.9.4

Weakness: CWE-835 · Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H

References