Skip to main content
Public proof of conceptFix available

CVE-2024-23334

A public proof of concept exists; no exploitation attested.

  • Published2024-01-29
  • Fixed in3.9.2
  • WeaknessCWE-22

Am I affected?

With a domain, we read the version its public headers and pages expose. A distribution build can carry the fix under an older number.

Description

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.

Timeline

dates in UTC
  1. 2024-01-2923:15CVE publishedNVD
  2. 2026-02-04Exploit-DB entryExploit-DB

Versions per branch

NVD · OSV
Aiohttp
BranchAffectedFixed in
3.9≥ 1.0.5, < 3.9.23.9.2
Fedoraproject fedora
BranchAffectedFixed in
39.x= 39no fix published

as publishedRanges as NVD and OSV publish them; a distribution’s build can be fixed under an older number.

Products declared by the CNA1 product

As GitHub_M, the CNA that assigned this CVE, declared them in the CVE record; versions as written.

  • aio-libs aiohttp
    Affected
    • = < 3.9.2no fix stated

Source: the CNA record (CVE Program), © The MITRE Corporation,CVE Terms of UseCVE recordupdated 2024-02-09

Distribution builds and vendor advisories

Packages from OSV.dev and products from the vendors' CSAF advisories.

version not verifiedVersions not verified: read as OSV.dev and the vendors publish them, not checked against each vendor's release list.

Packages

  • aiohttpTuxCare:PyPIfrom 3.8.1.post0 · fixed in 3.8.1.post7+tuxcare
  • aiohttpTuxCare:PyPIfrom 3.8.4.post0 · fixed in 3.8.4.post8+tuxcare
  • aiohttpTuxCare:PyPIfrom 3.8.5.post0 · fixed in 3.8.5.post3+tuxcare
  • aiohttpTuxCare:PyPIfrom 3.8.6.post0 · fixed in 3.8.6.post12+tuxcare
  • aiohttpRoot:PyPIall versions · fixed in 3.9.1+aikido.7
  • aiohttpRoot:PyPIall versions · fixed in 3.8.6+aikido.10
  • aiohttpRoot:PyPIall versions · fixed in 3.8.6+aikido.11
  • aiohttpRoot:PyPIall versions · fixed in 3.8.6+aikido.12

105 more package ranges on OSV.dev

Vendor advisories

  • CVE-2024-23334 Red Hat Product Security46 products fixed · 1 known affected

    aiohttp: follow_symlinks directory traversal vulnerability

    ansible-tower.src as a component of Red Hat Ansible Automation Platform 1.2

  • RHSA-2024:2010 Red Hat Product Security4 products fixed

    Red Hat Security Advisory: Satellite 6.15.0 release

  • RHSA-2024:1878 Red Hat Product Security4 products fixed

    Red Hat Security Advisory: RHUI 4.8 Release - Security Updates, Bug Fixes, and Enhancements

  • RHSA-2024:1640 Red Hat Product Security34 products fixed

    Red Hat Security Advisory: Red Hat Ansible Automation Platform 2.4 Product Security and Bug Fix Update

  • RHSA-2024:1536 Red Hat Product Security4 products fixed

    Red Hat Security Advisory: Satellite 6.14.3 Async Security Update

Full record on NVD

Fix

  1. Update Aiohttp to 3.9.2
  2. Vendor fix Red Hat Product Security RHSA-2024:2010 · 8 productsFor details on how to apply this update, refer to: * For upgrading connected Satellite: https://access.redhat.com/documentation/en-us/red_hat_satellite/6.15/html-single/upgrading_connected_red_hat_satellite_to_6.15 * For upgrading disconnected Satellite: https://access.redhat.com/documentation/en-u…
  3. Vendor fix Red Hat Product Security RHSA-2024:1878 · 4 productsBefore applying this update, make sure all previously released errata relevant to your system have been applied. For detailed instructions on how to apply this update, see: https://access.redhat.com/documentation/en-us/red_hat_update_infrastructure/4/html/migrating_red_hat_update_infrastructure/as…
  4. Vendor fix Red Hat Product Security RHSA-2024:1640 · 34 productsRed Hat Ansible Automation Platform
  5. Vendor fix Red Hat Product Security RHSA-2024:1536 · 8 productsBefore applying this update, make sure all previously released errata relevant to your system have been applied. For detailed instructions how to apply this update, refer to: https://access.redhat.com/documentation/en-us/red_hat_satellite/6.14/html/upgrading_and_updating_red_hat_satellite/index
  6. Workaround from the vendor Red Hat Product Security RHSA-2024:2010 · 1,864 productsIf 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. E…
  7. No fix planned, says the vendor Red Hat Product Security CVE-2024-23334 · 1 productOut of support scope

Advisories and patches

Detection

read 2026-11-01 01:02 UTC
Nuclei template
available
ProjectDiscovery
Exploit-DB
EDB-52474
Exploit-DB
Metasploit modules
none listed
Metasploit Framework

Sources

Identifiers

Technical details

CVSS v3 Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N
Published
2024-01-29
Last Modified
2026-06-17
NVD status
Modified
GitHub Advisory
GHSA-5h86-8mv2-jq9f

Frequently asked questions

What is CVE-2024-23334?

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.

Is CVE-2024-23334 actively exploited?

A proof-of-concept exploit exists for CVE-2024-23334, but active exploitation has not been confirmed at this time.

What is the CVSS score for CVE-2024-23334?

CVE-2024-23334 has a CVSS v3 base score of 7.5 (HIGH severity), with vector string CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N.

Running aiohttp? Hear about its next vulnerability

Surveillance reads the versions in your stack — a domain, a lockfile or a list — checks each CVE against the ranges its sources publish, and alerts you when one you run is exploited or enters CISA KEV. A version it cannot read stays « version not verified ».

No credit card required · No monthly cap on website lookups · 250 API requests/month

Sources for this record