CVE-2024-23334
aiohttp.web.static(follow_symlinks=True) is vulnerable to directory traversal
CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:N/A:N
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.
Official description from the CVE record, published by GitHub_M. Copyright © 1999-2026 The MITRE Corporation. See /security/cve/legal for the CVE license. View the record on cve.org
Key data
CVSS 3.1 Medium 5.9
CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:N/A:N
Attack vector: Network
The vulnerable component can be reached over a network, possibly from the Internet.
Attack complexity: High
The attack depends on conditions outside the attacker's control, so it takes preparation.
Privileges required: None
No account or privileges are needed.
User interaction: None
No action from any user is needed.
Scope: Unchanged
The impact stays within the vulnerable component.
Confidentiality impact: High
Serious or total effect on the secrecy of data.
Integrity impact: None
No effect on the trustworthiness of data.
Availability impact: None
No effect on availability.
| Metric | Value | What it means |
|---|---|---|
| Attack vector | Network | The vulnerable component can be reached over a network, possibly from the Internet. |
| Attack complexity | High | The attack depends on conditions outside the attacker's control, so it takes preparation. |
| Privileges required | None | No account or privileges are needed. |
| User interaction | None | No action from any user is needed. |
| Scope | Unchanged | The impact stays within the vulnerable component. |
| Confidentiality impact | High | Serious or total effect on the secrecy of data. |
| Integrity impact | None | No effect on the trustworthiness of data. |
| Availability impact | None | No effect on availability. |
CVSS is owned and managed by FIRST.Org, Inc. (FIRST) and is used by permission. Each CVSS score on this site is shown together with its vector string, as published in the CVE record by the source named next to it. Learn more at first.org/cvss.
EPSS
- Score
- 0.76875 (76.9% probability)
- Percentile
- 99.6%
- Scores of
- Nov 10, 2026
- Model
- v2026.06.15
CISA assessment as of May 30, 2025
- Exploitation
- Public proof of concept recorded by CISA
- Automatable
- no
- Technical impact
- partial
Weakness (CWE)
- CWE-22Improper Limitation of a Pathname to a Restricted Directory
Affected products
aio-libs aiohttp
- affected: < 3.9.2
References
- github.com/aio-libs/aiohttp/security/advisories/GHSA-5h86-8…
- github.com/aio-libs/aiohttp/pull/8079
- github.com/aio-libs/aiohttp/commit/1c335944d6a8b1298baf179b…
- lists.fedoraproject.org/archives/list/package-announce@list…
- lists.fedoraproject.org/archives/list/package-announce@list…
- lists.debian.org/debian-lts-announce/2025/02/msg00002.html
- exploit-db.com/exploits/52474
Timeline
- ID reserved
- Record published
- Record last updated
Look up another CVE
About CubePath
Data from the CVE Program (MITRE), CISA KEV and FIRST EPSS. CVSS is owned by FIRST and used by permission. Not affiliated with or endorsed by MITRE, CISA or FIRST. Data as of Nov 10, 2026, 19:51 UTC. Sources and licenses