Skip to content
Fencer Vulns
high 7.5

CVE-2024-30251 json

Denial of service when trying to parse malformed POST requests in aiohttp

published 2024-05-02 2 y ago modified 2026-09-10 1 mo ago also EUVD-2024-1442 , GHSA-5m98-qgg9-wh84 , PYSEC-2026-1098

cvss
7.5
version 3.1, CNA
cisa kev
Not listed
not in CISA's catalog
epss
1.1%
EPSS 1.1% chance of exploitation in 30 days, percentile 65%
public exploits
0
none known

Summary

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.

Patch / fix

  • pypi aiohttp 3.9.4
  • aio-libs_project aiohttp 3.9.4
  • python-aiohttp Debian 12 3.8.4-1+deb12u1
  • python-aiohttp Debian 14, Debian 13 3.9.5-1

debian advisories DEBIAN-CVE-2024-30251

  • python-aiohttp Ubuntu Pro 22.04 LTS 3.8.1-4ubuntu0.2+esm1
  • python-aiohttp Ubuntu Pro 24.04 LTS 3.9.1-1ubuntu0.1+esm1

ubuntu advisories UBUNTU-CVE-2024-30251

Ubuntu security data © Canonical Ltd., from https://github.com/canonical/ubuntu-security-notices via OSV; changed: normalised to fixed package versions per release. CC BY-SA 4.0

  • python-django rhui 4 4.2.15-1.el8ui
  • python-grpcio rhui 4 1.65.4-1.el8ui
  • python-jinja2 rhui 4 3.1.4-1.el8ui
  • python-aiohttp rhui 4 3.9.4-1.el8ui
  • python-gunicorn rhui 4 22.0.0-1.0.1.el8ui
  • python-requests rhui 4 2.32.3-2.el8ui
  • python-sqlparse rhui 4 0.5.0-1.el8ui
  • python3.11-django rhui 4 4.2.15-1.el8ui

red hat advisories RHSA-2025:1335RHSA-2024:3781

  • python-aiohttp SLE Module for Public Cloud 15 SP6, SLE Module for Public Cloud 15 SP5, SLE Module for Public Cloud 15 SP4 +3 more 3.6.0-150100.3.21.1
  • python-aiohttp SLES for SAP 15 SP4, SLES 15 SP4-LTSS, SLE Module for Python 3 15 SP6 +6 more 3.9.3-150400.10.30.1

suse advisories SUSE-SU-2024:4328-1SUSE-SU-2024:4327-1

Vendor advisories

What the vendors themselves say about their products: affected, fixed or not affected, and what to do.

red hat product security vex CVE-2024-30251 updated cvss 7.5

aiohttp: DoS when trying to parse malformed POST requests

  • Red Hat Ansible Automation Platform 1.2 ansible-tower
    affected: no fix planned “Out of support scope”
  • Red Hat Satellite 6 python-aiohttp, python3-aiohttp
    affected: no fix available
  • Red Hat Ansible Automation Platform 2.4 for RHEL 8 python39-aiohttp 3.9.5-1.el8ap, python3x-aiohttp 3.9.5-1.el8ap, automation-controller-venv-tower 4.5.7-1.el8ap Red Hat Ansible Automation Platform 2.4 for RHEL 9 python-aiohttp 3.9.5-1.el9ap, python3-aiohttp 3.9.5-1.el9ap, automation-controller-venv-tower 4.5.7-1.el9ap
    fixed: vendor fix RHSA-2024:3781
  • Red Hat RHUI 4 for RHEL 8 python-aiohttp 3.9.4-1.el8ui, python3.11-aiohttp 3.9.4-1.el8ui
    fixed: vendor fix RHSA-2025:1335
  • Red Hat Ansible Automation Platform 2.4 for RHEL 8 receptor 1.4.8-1.el8ap, python39-idna 3.7-1.el8ap, python3x-idna 3.7-1.el8ap, receptorctl 1.4.8-1.el8ap, ansible-core 2.15.11-1.el8ap, ansible-test 2.15.11-1.el8ap, +36 more Red Hat Ansible Automation Platform 2.4 for RHEL 9 receptor 1.4.8-1.el9ap, python-idna 3.7-1.el9ap, python3-idna 3.7-1.el9ap, receptorctl 1.4.8-1.el9ap, python-black 22.8.0-2.el9ap, python-jinja2 3.1.4-1.el9ap, +36 more Red Hat RHUI 4 for RHEL 8 libcomps 0.1.21-1.el8ui, python-jq 1.6.0-4.el8ui, python-xlrd 2.0.1-9.el8ui, python-xlwt 1.3.0-7.el8ui, python-yarl 1.8.2-5.el8ui, python-zipp 3.4.0-8.el8ui, +196 more
    not affected: vulnerable code not present

Red Hat CSAF VEX © Red Hat, Inc., from https://security.access.redhat.com/data/csaf/v2/vex/; changed: reduced to product statuses and remediations. CC BY 4.0 · csaf

CISA SSVC

Exploitation
none
Automatable
yes
Technical impact
partial
Assessed
2 y ago

Exploit prediction

1.09% chance of exploitation in the next 30 days, higher than 65% of all scored CVEs (FIRST EPSS, 2026-11-08).

CVSS scores

assigned by version score vector
CNA 3.1 7.5 CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
GitHub 3.1 7.5 CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
OSV 3.1 7.5 CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H

Affected packages

ecosystem package affected fixed in
pypi aiohttp
<3.9.4
3.9.4

Affected products

  • aio-libs aiohttp
  • aio-libs_project aiohttp

Classification

Weakness
  • CWE-835 Loop with Unreachable Exit Condition

References

Sources

Fencer Vulns keeps one entry per vulnerability: the CVE id wins, then GHSA, and records that alias each other are merged, except that two CVEs always keep separate entries. The same data is available as JSON.

CPEs and fixed versions use Anchore's correction of NVD's data: Added CPE configurations because not yet analyzed by NVD.