Skip to main content
← All vulnerabilities
CVE-2024-23334PYSEC-2024-24GHSA-5H86-8MV2-JQ9F

aiohttp.web.static(follow_symlinks=True) is vulnerable to directory traversal

Published
Last modified
published
Not listed in CISA KEV
Fix
Fixed in 3.9.2
1 on Exploit-DB, 15 proofs of concept on GitHub, 1 Nuclei template
  • Exploitation: poc
  • Automatable: no
  • Technical impact: partial

Summary

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

  1. CVE published
  2. CISA SSVC assessment

    Exploitation: poc · Automatable: no · Technical impact: partial

  3. Public exploit on Exploit-DB

    EDB-52474

  4. Record last updated
  5. EPSS reached 10%

    FIRST estimates at least a 10% chance of exploitation in the next 30 days

Affected versions

  • aio-libs aiohttp

    fixed in 3.9.2

  • aiohttpPyPI

    From 1.0.5 · fixed in 3.9.2

References 22

GitHub · aio-libs/aiohttp

lists.fedoraproject.org

Exploit-DB

GitHub · projectdiscovery/nuclei-templates

GitHub · 0xR00/CVE-2024-23334

GitHub · Arc4he/CVE-2024-23334-PoC

GitHub · BestDevOfc/CVE-2024-23334-PoC

GitHub · Betan423/CVE-2024-23334-PoC

GitHub · JohnnyWang108/hdu-is-lab1-secure-api

GitHub · Sn0wBaall/CVE-2024-23334-PoC

GitHub · TheRedP4nther/LFI-aiohttp-CVE-2024-23334-PoC

GitHub · binaryninja/CVE-2024-23334

GitHub · brian-edgar-re/poc-cve-2024-23334

GitHub · jhonnybonny/CVE-2024-23334

GitHub · ox1111/CVE-2024-23334

GitHub · s4botai/CVE-2024-23334-PoC

GitHub · sxyrxyy/aiohttp-exploit-CVE-2024-23334-certstream

GitHub · wizarddos/CVE-2024-23334

GitHub · z3rObyte/CVE-2024-23334-PoC