CVE-2024-23334

Aliases:GHSA-5h86-8mv2-jq9fPYSEC-2024-24
Advisory lineage Upstream: 0 Downstream: 12
Modified
Published: 29 Jan 2024, 22:41
Last modified:04 Feb 2026, 19:22

Vulnerability Summary

Overall Risk (default)
high
59/100
CVSS Score
7.5 HIGH
v3.1 (nvd)
EPSS Score
93.53% CRITICAL
94% probability -0.05%
KEV
Not listed
Ransomware
No reports
Public exploits
2 found
Dark Web
Not detected

Timeline

29 Jan 2024, 22:41
Published
Vulnerability first disclosed
04 Feb 2026, 19:22
Last Modified
Vulnerability information updated

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.

CVSS Metrics

  • v4.0HIGHScore: 8.2CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:N/VC:H/VI:N/VA:N/SC:N/SI:N/SA:N
  • v3.1MEDIUMScore: 5.9CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:N/A:N
  • v3.1HIGHScore: 7.5CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N

EPSS Trends

Current EPSS score: 93.53% Percentile: 100%

Techniques & Countermeasures

  • CWE-22Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal')

    The product uses external input to construct a pathname that is intended to identify a file or directory that is located underneath a restricted parent directory, but the product does not properly neutralize special elements within the pathname that can cause the pathname to resolve to a location that is outside of the restricted directory.

Affected Systems

  • aio-libsaiohttp

    < 3.9.2

  • aiohttpaiohttp

    ≥ 1.0.5, < 3.9.2

  • fedoraprojectfedora

    39

  • PyPIaiohttp

    < 1c335944d6a8b1298baf179b7c0b3069f10c514b | ≥ 1.0.5, < 3.9.2

References (13)