CVE-2024-23334

CVE-2024-23334 is a medium-severity vulnerability in Aiohttp with a CVSS 3.x base score of 5.9. Its EPSS exploit-prediction score of 77% places it in the 99th percentile, indicating an elevated likelihood of exploitation. The underlying weakness is classified as CWE-22.

Key facts

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.

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.
How severe is CVE-2024-23334?
CVE-2024-23334 has a CVSS 3.x base score of 5.9, rated medium severity. It is exploitable over network with high attack complexity, requires no privileges and no user interaction. Impact on confidentiality is high, integrity none, and availability none.
Is CVE-2024-23334 being actively exploited?
It is not currently listed in CISA's KEV catalog. Its EPSS exploit-prediction score is 77% (99th percentile), an estimate of the probability of exploitation in the next 30 days.
What products are affected by CVE-2024-23334?
CVE-2024-23334 primarily affects Aiohttp. In total, 2 product configurations (CPEs) are listed as vulnerable; see the affected-products list for the exact versions.
How do I fix CVE-2024-23334?
Review the linked vendor and NVD advisories for patched versions and mitigations, then upgrade or apply the recommended workaround.
Does CVE-2024-23334 have an EU (EUVD) identifier?
Yes. CVE-2024-23334 is tracked in the ENISA EU Vulnerability Database (EUVD) as EUVD-2024-0001.
When was CVE-2024-23334 published?
CVE-2024-23334 was published on 2024-01-29 and last updated on 2026-06-17.

References

Affected products (2)

More vulnerabilities in Aiohttp

All CVEs affecting Aiohttp →

Other CWE-22 (Path Traversal) vulnerabilities

Browse all CWE-22 (Path Traversal) vulnerabilities →