cve.bz

CVE-2024-23334 Path traversal

7.5 highExploitEPSS 77%Fix available

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

On this page
aiohttp is an asynchronous HTTP client/server framework for asyncio and Python. When using aiohttp as a web server and configuring static routes, it is necessary to specify the root path for static files. Additionally, the option 'follow_symlinks' can be used to determine whether to follow symbolic links outside the static root directory. When 'follow_symlinks' is set to True, there is no validation to check if reading a file is within the root directory. This can lead to directory traversal vulnerabilities, resulting in unauthorized access to arbitrary files on the system, even when symlinks are not present. Disabling follow_symlinks and using a reverse proxy are encouraged mitigations. Version 3.9.2 fixes this issue.

Severity

CVSS 3.1

7.5 high
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N
EPSS
77% (unchanged from 77% a week ago; 77% 30 days ago) estimated probability of exploitation activity in the next 30 days; 100th percentile. Scored 2026-11-22. A forecast for this CVE across the internet, not for your own systems.
CISA's assessment (SSVC)
Exploitation: PoC · Automatable: no · Technical impact: partial, assessed 2025-05-30. 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-22 Improper Limitation of a Pathname to a Restricted Directory (Path traversal)
OWASP Top 10
A01:2025 Broken Access Control
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-23334 for an engineer deciding whether to act. Use https://cve.bz/api/public/cves/CVE-2024-23334?via=ask-ai-copy and https://cve.bz/cve/CVE-2024-23334?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-23334 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:aiohttpfrom 1.0.5 before 3.9.2
fedoraproject:fedora39

Packages (OSV)

AdvisoryEcosystemPackageAffectedFixed in
GHSA-5h86-8mv2-jq9fPyPIaiohttp>=1.0.5 <3.9.23.9.2
PYSEC-2024-24PyPIaiohttp>=1.0.5 <3.9.23.9.2

Linux distributions

DistributionReleasePackageFixed inAdvisory
Debian11python-aiohttp3.7.4-1+deb11u1DLA-4041-1
Debian12python-aiohttp3.8.4-1+deb12u1DEBIAN-CVE-2024-23334 DSA-5828-1
Debian13, 14python-aiohttp3.9.5-1DEBIAN-CVE-2024-23334
Ubuntu22.04:LTSpython-aiohttp3.8.1-4ubuntu0.2UBUNTU-CVE-2024-23334 USN-6991-1
Ubuntu24.04:LTSpython-aiohttp3.9.1-1ubuntu0.1UBUNTU-CVE-2024-23334 USN-6991-1
Ubuntu25.10, 26.10, Pro:16.04:LTS and 1 morepython-aiohttpno fix listedUBUNTU-CVE-2024-23334
UbuntuPro:18.04:LTSpython-aiohttp3.0.1-1ubuntu0.1~esm4UBUNTU-CVE-2024-23334 USN-6991-1
UbuntuPro:20.04:LTSpython-aiohttp3.6.2-1ubuntu1+esm3UBUNTU-CVE-2024-23334 USN-6991-1
Red Hatansible_automation_platform:2.4::el8automation-controller-venv-tower0:4.5.5-2.el8apRHSA-2024:1640
Red Hatansible_automation_platform:2.4::el8python39-aiohttp, python3x-aiohttp, python39-aiohttp-debuginfo and 1 more0:3.9.3-1.el8apRHSA-2024:1640
Red Hatansible_automation_platform:2.4::el8python39-django, python3x-django0:4.2.11-1.el8apRHSA-2024:1640
Red Hatansible_automation_platform:2.4::el8, ansible_automation_platform_developer:2.4::el8, ansible_automation_platform_inside:2.4::el8receptor, receptorctl0:1.4.5-1.el8apRHSA-2024:1640
Red Hatansible_automation_platform:2.4::el9automation-controller-venv-tower0:4.5.5-2.el9apRHSA-2024:1640
Red Hatansible_automation_platform:2.4::el9python-aiohttp, python3-aiohttp, python3-aiohttp-debuginfo and 1 more0:3.9.3-1.el9apRHSA-2024:1640
Red Hatansible_automation_platform:2.4::el9python-django, python3-django0:4.2.11-1.el9apRHSA-2024:1640
Red Hatansible_automation_platform:2.4::el9, ansible_automation_platform_developer:2.4::el9, ansible_automation_platform_inside:2.4::el9receptor, receptorctl0:1.4.5-1.el9apRHSA-2024:1640
Red Hatrhui:4::el8python-aiohttp, python3.11-aiohttp, python-aiohttp-debugsource and 1 more0:3.9.2-1.el8uiRHSA-2024:1878
Red Hatrhui:4::el8python-cryptography, python3.11-cryptography, python-cryptography-debugsource and 1 more0:41.0.6-1.el8uiRHSA-2024:1878
Red Hatrhui:4::el8python-django, python3.11-django0:4.2.11-1.el8uiRHSA-2024:1878
Red Hatrhui:4::el8python-ecdsa, python3.11-ecdsa0:0.18.0-4.el8uiRHSA-2024:1878
18 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 Python 3 15 SP5 and 2 morepython-aiohttp3.9.3-150400.10.14.1SUSE-SU-2024:0577-1
openSUSELeap 15.5python-aiohttp3.9.3-150400.10.14.1SUSE-SU-2024:0577-1
openSUSETumbleweedpython-aiohttp3.14.3-1.1openSUSE-SU-2026:11467-1
openSUSETumbleweedpython-aiohttp3.9.3-1.1openSUSE-SU-2024:13642-1
Alpinev3.20, v3.21, v3.22 and 2 morepy3-aiohttp3.9.3-r0ALPINE-CVE-2024-23334
Azure Linux2python-aiohttpno fix listedAZL-43552
Azure Linux3python-aiohttpno fix listedAZL-44319

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; the Alpine secdb, CC BY-SA 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 · Alpine.

Red Hat

Red Hat rates this Moderate.

Red Hat's statement

This vulnerability has been rated as having a moderate impact. There is a non-default precondition which is required to exploit it: the follow_symlinks setting needs to be enabled.

Red Hat's mitigation

If using follow_symlinks=True outside of a restricted local development environment, disable the option immediately. This option is NOT needed to follow symlinks that point to a location within the static root directory; it is only intended to allow a symlink to break out of the static directory. Even with this CVE fixed, there is still a substantial risk of misconfiguration when using this option on a server that accepts requests from remote users.

Additionally, aiohttp has always recommended using a reverse proxy server (such as nginx) to handle static resources and not to use these static resources in aiohttp for production environments. Doing so also protects against this vulnerability, and is why we expect the number of affected users to be very low.

ProductPackageStateAdvisory
Red Hat Ansible Automation Platform 2.4 for RHEL 8automation-controller-0:4.5.5-2.el8apFixed 2024-04-02RHSA-2024:1640
Red Hat Ansible Automation Platform 2.4 for RHEL 8python3x-aiohttp-0:3.9.3-1.el8apFixed 2024-04-02RHSA-2024:1640
Red Hat Ansible Automation Platform 2.4 for RHEL 9automation-controller-0:4.5.5-2.el9apFixed 2024-04-02RHSA-2024:1640
Red Hat Ansible Automation Platform 2.4 for RHEL 9python-aiohttp-0:3.9.3-1.el9apFixed 2024-04-02RHSA-2024:1640
Red Hat Satellite 6.14 for RHEL 8python-aiohttp-0:3.9.2-0.1.el8pcFixed 2024-03-27RHSA-2024:1536
Red Hat Satellite 6.15 for RHEL 8python-aiohttp-0:3.9.2-1.el8pcFixed 2024-04-23RHSA-2024:2010
RHUI 4 for RHEL 8python-aiohttp-0:3.9.2-1.el8uiFixed 2024-04-18RHSA-2024:1878
Red Hat Ansible Automation Platform 1.2ansible-towerOut of support scope
Red Hat Ansible Automation Platform 2ansible-automation-platform-24/ansible-builder-rhel8Not affected
Red Hat Ansible Automation Platform 2ansible-automation-platform-24/ee-dellemc-openmanage-rhel8Not affected
Red Hat Ansible Automation Platform 2ansible-automation-platform-24/ee-minimal-rhel9Not affected
Red Hat Ansible Automation Platform 2ansible-automation-platform-25/ee-cloud-services-rhel9Not affected
Red Hat Ansible Automation Platform 2ansible-automation-platform-25/ee-supported-rhel9Not affected
Red Hat Ansible Automation Platform 2ansible-automation-platform-25/platform-resource-runner-rhel8Not affected

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-23334.

Public exploits

GitHub PoC

Repositories on GitHub named after this CVE or listed for it by the PoC-in-GitHub index. For those marked Harbor Check: matches CVE, Flawharbor read the code and found it implements this CVE's exploitation technique: read, not run, and its dependencies only checked for warning signs, so a pointer and no guarantee. The rest are unverified: some hold a working proof of concept, some nothing useful, and some malware made to look like one. Read the code before you run any of it. How Harbor Check reads them, and what it found.

Detection rules

Ways to detect this CVE, not exploit code: the nuclei template that checks a system for it, and the Suricata and Snort rules that name it. A rule set may ship a rule turned off, so check yours by its sid.

  • Nuclei template aiohttp - Directory Traversal
  • Emerging Threats Open ET WEB_SPECIFIC_APPS Vulnerable aiohttp Server Version Response (CVE-2024-23334) sid 2056093
  • Emerging Threats Open ET EXPLOIT aiohttp Directory Traversal in Static Routing (CVE-2024-23334) sid 2056166

Attack patterns (CAPEC)

  • CAPEC-64 Using Slashes and URL Encoding Combined to Bypass Validation Logic Likelihood: High · Severity: High
  • CAPEC-76 Manipulating Web Input to File System Calls Likelihood: High · Severity: Very High
  • CAPEC-78 Using Escaped Slashes in Alternate Encoding Likelihood: High · Severity: High
  • CAPEC-79 Using Slashes in Alternate Encoding Likelihood: High · Severity: High
  • CAPEC-126 Path Traversal Likelihood: High · Severity: Very High

The attack patterns MITRE's CAPEC relates to this record's weaknesses, as MITRE names them. Credits.

References

Check your stackJSON