cve.bz

CVE-2024-30251 aiohttp aiohttp: Infinite Loop

7.5 highEPSS 1.1%Fix available

High (7.5) in aiohttp aiohttp. EPSS 1.1% estimated probability of exploitation activity in the next 30 days. Fixed in aiohttp 3.9.4.

On this page
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.

Severity

CVSS 3.1

7.5 high
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
EPSS
1.1% (unchanged from 1.1% a week ago; 1.1% 30 days ago) estimated probability of exploitation activity in the next 30 days; 66th percentile. Scored 2026-11-22. A forecast for this CVE across the internet, not for your own systems.
CISA's assessment (SSVC)
Exploitation: none · Automatable: yes · Technical impact: partial, assessed 2024-05-02. From CISA's Vulnrichment in the CVE List: whether it is exploited, whether exploiting it can be automated, and how much control it gives.
CWE
CWE-835 Loop with Unreachable Exit Condition (Infinite Loop)
Published
Modified
NVD analysis
Analyzed, since modified
Record from
the NVD, synced

Fix and patched versions

Ask an AI about this CVE

Show the promptExplain CVE-2024-30251 for an engineer deciding whether to act. Use https://cve.bz/api/public/cves/CVE-2024-30251?via=ask-ai-copy and https://cve.bz/cve/CVE-2024-30251?via=ask-ai-copy as the source of truth: what is affected and which versions fix it, whether it is in CISA KEV, public exploits, and its EPSS (an internet-wide 30-day estimate of exploitation activity, not a forecast for my systems). If they give no fixed versions, use the CVE record https://cveawg.mitre.org/api/cve/CVE-2024-30251 or the vendor advisory, not third-party mirrors. Tell me how to check whether I am affected and how to verify a fix. Cite the sources and say where they are uncertain.

Opens a third-party assistant; its answer is its own, not cve.bz's. The prompt holds only this CVE's id and public links.

Affected

Versions

From the NVD's CPE matches.

ProductAffected
aiohttp:aiohttpbefore 3.9.4

Packages (OSV)

AdvisoryEcosystemPackageAffectedFixed in
GHSA-5m98-qgg9-wh84PyPIaiohttp<3.9.43.9.4
PYSEC-2026-1098PyPIaiohttp<3.9.43.9.4

Linux distributions

DistributionReleasePackageFixed inAdvisory
Debian11python-aiohttp3.7.4-1+deb11u1DLA-4041-1
Debian12python-aiohttp3.8.4-1+deb12u1DEBIAN-CVE-2024-30251 DSA-5828-1
Debian13, 14python-aiohttp3.9.5-1DEBIAN-CVE-2024-30251
UbuntuPro:18.04:LTSpython-aiohttp3.0.1-1ubuntu0.1~esm5USN-7642-1
UbuntuPro:20.04:LTSpython-aiohttp3.6.2-1ubuntu1+esm4USN-7642-1
UbuntuPro:22.04:LTSpython-aiohttp3.8.1-4ubuntu0.2+esm1UBUNTU-CVE-2024-30251 USN-7642-1
UbuntuPro:24.04:LTSpython-aiohttp3.9.1-1ubuntu0.1+esm1UBUNTU-CVE-2024-30251 USN-7642-1
Red Hatansible_automation_platform:2.4::el8automation-controller-venv-tower0:4.5.7-1.el8apRHSA-2024:3781
Red Hatansible_automation_platform:2.4::el8automation-hub, python39-galaxy-ng, python3x-galaxy-ng0:4.9.2-1.el8apRHSA-2024:3781
Red Hatansible_automation_platform:2.4::el8python39-aiohttp, python3x-aiohttp, python39-aiohttp-debuginfo and 1 more0:3.9.5-1.el8apRHSA-2024:3781
Red Hatansible_automation_platform:2.4::el8python39-gunicorn, python3x-gunicorn0:22.0.0-1.el8apRHSA-2024:3781
Red Hatansible_automation_platform:2.4::el8python39-pillow, python3x-pillow, python39-pillow-debuginfo and 1 more0:10.3.0-1.el8apRHSA-2024:3781
Red Hatansible_automation_platform:2.4::el8python39-pydantic, python3x-pydantic0:1.10.15-1.el8apRHSA-2024:3781
Red Hatansible_automation_platform:2.4::el8python39-social-auth-app-django, python3x-social-auth-app-django0:5.4.1-1.el8apRHSA-2024:3781
Red Hatansible_automation_platform:2.4::el8python39-sqlparse, python3x-sqlparse0:0.5.0-1.el8apRHSA-2024:3781
Red Hatansible_automation_platform:2.4::el8, ansible_automation_platform_developer:2.4::el8python39-idna, python3x-idna0:3.7-1.el8apRHSA-2024:3781
Red Hatansible_automation_platform:2.4::el8, ansible_automation_platform_developer:2.4::el8python39-requests, python3x-requests0:2.32.2-1.el8apRHSA-2024:3781
Red Hatansible_automation_platform:2.4::el8, ansible_automation_platform_developer:2.4::el8, ansible_automation_platform_inside:2.4::el8python39-black, python3x-black0:22.8.0-2.el8apRHSA-2024:3781
Red Hatansible_automation_platform:2.4::el8, ansible_automation_platform_developer:2.4::el8, ansible_automation_platform_inside:2.4::el8python39-cryptography, python3x-cryptography, python39-cryptography-debuginfo and 1 more0:42.0.5-1.el8apRHSA-2024:3781
24 more for Red Hat in the JSON and on Red Hat's page.
SUSELinux Enterprise High Performance Computing 15 SP4-ESPOS, Linux Enterprise High Performance Computing 15 SP4-LTSS, Linux Enterprise Module for Public Cloud 15 SP4 and 4 morepython-aiohttp3.9.3-150400.10.30.1SUSE-SU-2024:4327-1
SUSELinux Enterprise Module for Public Cloud 15 SP2, Linux Enterprise Module for Public Cloud 15 SP3, Linux Enterprise Module for Public Cloud 15 SP4 and 2 morepython-aiohttp3.6.0-150100.3.21.1SUSE-SU-2024:4328-1
openSUSELeap 15.5python-aiohttp3.6.0-150100.3.21.1SUSE-SU-2024:4328-1
openSUSELeap 15.5, Leap 15.6python-aiohttp3.9.3-150400.10.30.1SUSE-SU-2024:4327-1
Azure Linux2python-aiohttpno fix listedAZL-43369
Azure Linux3python-aiohttpno fix listedAZL-43365

From the distributions' data via OSV.dev: the Debian Security Tracker; Ubuntu Security Notices © Canonical Ltd., CC BY-SA 4.0; Red Hat Security Data © Red Hat, Inc., CC BY 4.0; SUSE security data, CC BY 4.0; Microsoft's Azure Linux vulnerability data, MIT. Modified: reformatted and linked to CVE records. Credits. On the distributions' own pages: Debian · Ubuntu · Red Hat · SUSE · openSUSE.

Red Hat

Red Hat rates this Important.

Red Hat's statement

Red Hat rates the security impact of this vulnerability as Important due to the worst case scenario resulting in a denial of service. It is simple to exploit and could significantly impact availability. In order to exploit the bug, the attacker has to send a specially crafted POST request causing the server to go into an infinite loop.

Red Hat Satellite has set a moderate impact of this issue as invalid requests which could trigger this bug such as no authentication or wrong path are unlikely possible or going to happen.

ProductPackageStateAdvisory
Red Hat Ansible Automation Platform 2.4 for RHEL 8automation-controller-0:4.5.7-1.el8apFixed 2024-06-10RHSA-2024:3781
Red Hat Ansible Automation Platform 2.4 for RHEL 8python3x-aiohttp-0:3.9.5-1.el8apFixed 2024-06-10RHSA-2024:3781
Red Hat Ansible Automation Platform 2.4 for RHEL 9automation-controller-0:4.5.7-1.el9apFixed 2024-06-10RHSA-2024:3781
Red Hat Ansible Automation Platform 2.4 for RHEL 9python-aiohttp-0:3.9.5-1.el9apFixed 2024-06-10RHSA-2024:3781
RHUI 4 for RHEL 8python-aiohttp-0:3.9.4-1.el8uiFixed 2025-02-12RHSA-2025:1335
Red Hat Ansible Automation Platform 1.2ansible-towerOut of support scope
Red Hat Satellite 6python-aiohttpAffected

Contains Red Hat Security Data © Red Hat, Inc., licensed under CC BY 4.0. Source: https://access.redhat.com/security/data. Modified: reformatted. Red Hat's page for CVE-2024-30251.

References

Check your stackJSON