CVE-2024-23334: aiohttp - Path Traversal
- Cve: CVE-2024-23334
- Name: aiohttp - Path Traversal
- 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.
- Impact: Attackers can access arbitrary files on the system, potentially leading to information disclosure or system compromise.
- Remediation: Update to version 3.9.2 or later.
- Vulnerability type: path_traversal
- Vulnerability impact: information_disclosure, file_system_read
- Requirement type: none
- Labels source: projectdiscovery
- Severity: high
- Cvss score: 7.5
- Cvss vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N
- Epss score: 0.76875
- Epss percentile: 0.99558
- Assignee: [email protected]
- Published at: 2024-01-29T23:15:08Z
- Age in days: 1030
- Modified at: 2026-06-17T07:12:37Z
- Patch available: yes
- Public exploits total: 27
- References total: 10
- Products total: 2
- Oss: yes
- Projects total: 1
- Advisory url: https://nvd.nist.gov/vuln/detail/CVE-2024-23334
- Nvd status: modified
- Checked, none or zero: public exploits capped, rejected by nvd
- Not known: requirements, hackerone
Cwe
| Id | Name |
|---|---|
| CWE-22 | Improper Limitation of a Pathname to a Restricted Directory |
Known exploited entries
| List | Added date | Due date | Ransomware use |
|---|---|---|---|
| vulncheck | 2024-03-15 | — | no |
Nuclei templates
| Id | Url |
|---|---|
| CVE-2024-23334 | https://github.com/projectdiscovery/nuclei-templates/blob/main/http/cves/2024/CVE-2024-23334.yaml |
Public exploits
| Url | Source | Added date |
|---|---|---|
| https://github.com/aio-libs/aiohttp/security/advisories/GHSA-5h86-8mv2-jq9f | nvd | 2024-01-29 |
| https://github.com/JohnnyWang108/hdu-is-lab1-secure-api | poc-in-github | 2026-10-19 |
| https://github.com/Sn0wBaall/CVE-2024-23334-PoC | poc-in-github | 2026-01-27 |
| https://github.com/BestDevOfc/CVE-2024-23334-PoC | poc-in-github | 2024-12-25 |
| https://github.com/BestDevOfc/CVE-2024-23334-PoC.git | vulncheck-xdb | 2024-12-25 |
References
Products
| Product | Affected | Platform bound | Sources | Url |
|---|---|---|---|---|
| aiohttp:aiohttp | >= 1.0.5, < 3.9.2 | no | nvd | /v1/products/aiohttp/aiohttp |
| fedoraproject:fedora | = 39 | no | nvd | /v1/products/fedoraproject/fedora |
Projects
| Repository | Link kinds | Indexed | Url |
|---|---|---|---|
| aio-libs/aiohttp | commit, fix, package, pull, security_advisory | yes | /v1/repositories/aio-libs/aiohttp |
Index
- Repositories: 553
- Repositories high signal: 301
- Packages: 1
Exploitation
- Known exploited by: vulncheck
- Vulncheck known exploited since: 2024-03-15
- Exploitation seen: yes
- Public exploit: yes
- Public exploit count: 27
- Public exploit first date: 2024-01-29
- Remote: yes
- Exposed hosts: 49161
- Checked, none or zero: known exploited, initial access, authentication required
- Not known: known exploited since, initial access since, hackerone reports