CVE-2024-23334
published medium CVSS 3.1 · 5.9aiohttp.web.static(follow_symlinks=True) is vulnerable to directory traversal
Package status and fixes
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| aio-libs | — | aiohttp< 3.9.2 | Affected | Not stated | GitHub_M |
| Alpine Linux | edge | py3-aiohttp | Fixed | 3.9.3-r0 | Package fix record |
| Debian | bookworm | python-aiohttp | Advisory build | 3.8.4-1+deb12u1 | DSA-5828-1 |
| SUSE / openSUSE | SLE-15-SP4 | python311-aiohttpaarch64 | Advisory build | 3.9.3-150400.10.14.1 | SUSE-SU-2024:0577-1 |
| Ubuntu | bionic | python-aiohttp | Advisory build | 3.0.1-1ubuntu0.1~esm4 | USN-6991-1 |
| Alpine Linux | v3.20 | py3-aiohttp | Fixed | 3.9.3-r0 | Package fix record |
| Alpine Linux | v3.21 | py3-aiohttp | Fixed | 3.9.3-r0 | Package fix record |
| Alpine Linux | v3.22 | py3-aiohttp | Fixed | 3.9.3-r0 | Package fix record |
Show 45 more entries
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| Alpine Linux | v3.23 | py3-aiohttp | Fixed | 3.9.3-r0 | Package fix record |
| Alpine Linux | v3.24 | py3-aiohttp | Fixed | 3.9.3-r0 | Package fix record |
| Debian | bullseye | python-aiohttp | Advisory build | 3.7.4-1+deb11u1 | DLA-4041-1 |
| SUSE / openSUSE | SLE-15-SP4 | python311-aiohttpppc64le | Advisory build | 3.9.3-150400.10.14.1 | SUSE-SU-2024:0577-1 |
| SUSE / openSUSE | SLE-15-SP4 | python311-aiohttps390x | Advisory build | 3.9.3-150400.10.14.1 | SUSE-SU-2024:0577-1 |
| SUSE / openSUSE | SLE-15-SP4 | python311-aiohttpx86_64 | Advisory build | 3.9.3-150400.10.14.1 | SUSE-SU-2024:0577-1 |
| SUSE / openSUSE | SLE-15-SP5 | python311-aiohttpaarch64 | Advisory build | 3.9.3-150400.10.14.1 | SUSE-SU-2024:0577-1 |
| SUSE / openSUSE | SLE-15-SP5 | python311-aiohttpppc64le | Advisory build | 3.9.3-150400.10.14.1 | SUSE-SU-2024:0577-1 |
| SUSE / openSUSE | SLE-15-SP5 | python311-aiohttps390x | Advisory build | 3.9.3-150400.10.14.1 | SUSE-SU-2024:0577-1 |
| SUSE / openSUSE | SLE-15-SP5 | python311-aiohttpx86_64 | Advisory build | 3.9.3-150400.10.14.1 | SUSE-SU-2024:0577-1 |
| SUSE / openSUSE | SLE-3-SP5 | python311-aiohttpaarch64 | Advisory build | 3.9.3-150400.10.14.1 | SUSE-SU-2024:0577-1 |
| SUSE / openSUSE | SLE-3-SP5 | python311-aiohttpppc64le | Advisory build | 3.9.3-150400.10.14.1 | SUSE-SU-2024:0577-1 |
| SUSE / openSUSE | SLE-3-SP5 | python311-aiohttps390x | Advisory build | 3.9.3-150400.10.14.1 | SUSE-SU-2024:0577-1 |
| SUSE / openSUSE | SLE-3-SP5 | python311-aiohttpx86_64 | Advisory build | 3.9.3-150400.10.14.1 | SUSE-SU-2024:0577-1 |
| SUSE / openSUSE | openSUSE-Leap-15.5 | python311-aiohttpaarch64 | Advisory build | 3.9.3-150400.10.14.1 | SUSE-SU-2024:0577-1 |
| SUSE / openSUSE | openSUSE-Leap-15.5 | python311-aiohttpppc64le | Advisory build | 3.9.3-150400.10.14.1 | SUSE-SU-2024:0577-1 |
| SUSE / openSUSE | openSUSE-Leap-15.5 | python311-aiohttps390x | Advisory build | 3.9.3-150400.10.14.1 | SUSE-SU-2024:0577-1 |
| SUSE / openSUSE | openSUSE-Leap-15.5 | python311-aiohttpx86_64 | Advisory build | 3.9.3-150400.10.14.1 | SUSE-SU-2024:0577-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | python310-aiohttpaarch64 | Advisory build | 3.9.3-1.1 | OPENSUSE-SU-2024:13642-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | python310-aiohttpppc64le | Advisory build | 3.9.3-1.1 | OPENSUSE-SU-2024:13642-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | python310-aiohttps390x | Advisory build | 3.9.3-1.1 | OPENSUSE-SU-2024:13642-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | python310-aiohttpx86_64 | Advisory build | 3.9.3-1.1 | OPENSUSE-SU-2024:13642-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | python311-aiohttpaarch64 | Advisory build | 3.9.3-1.1 | OPENSUSE-SU-2024:13642-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | python311-aiohttpppc64le | Advisory build | 3.9.3-1.1 | OPENSUSE-SU-2024:13642-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | python311-aiohttps390x | Advisory build | 3.9.3-1.1 | OPENSUSE-SU-2024:13642-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | python311-aiohttpx86_64 | Advisory build | 3.9.3-1.1 | OPENSUSE-SU-2024:13642-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | python313-aiohttpaarch64 | Advisory build | 3.14.3-1.1 | OPENSUSE-SU-2026:11467-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | python313-aiohttpppc64le | Advisory build | 3.14.3-1.1 | OPENSUSE-SU-2026:11467-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | python313-aiohttps390x | Advisory build | 3.14.3-1.1 | OPENSUSE-SU-2026:11467-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | python313-aiohttpx86_64 | Advisory build | 3.14.3-1.1 | OPENSUSE-SU-2026:11467-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | python314-aiohttpaarch64 | Advisory build | 3.14.3-1.1 | OPENSUSE-SU-2026:11467-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | python314-aiohttpppc64le | Advisory build | 3.14.3-1.1 | OPENSUSE-SU-2026:11467-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | python314-aiohttps390x | Advisory build | 3.14.3-1.1 | OPENSUSE-SU-2026:11467-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | python314-aiohttpx86_64 | Advisory build | 3.14.3-1.1 | OPENSUSE-SU-2026:11467-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | python39-aiohttpaarch64 | Advisory build | 3.9.3-1.1 | OPENSUSE-SU-2024:13642-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | python39-aiohttpppc64le | Advisory build | 3.9.3-1.1 | OPENSUSE-SU-2024:13642-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | python39-aiohttps390x | Advisory build | 3.9.3-1.1 | OPENSUSE-SU-2024:13642-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | python39-aiohttpx86_64 | Advisory build | 3.9.3-1.1 | OPENSUSE-SU-2024:13642-1 |
| Ubuntu | bionic | python3-aiohttp | Advisory build | 3.0.1-1ubuntu0.1~esm4 | USN-6991-1 |
| Ubuntu | focal | python-aiohttp | Advisory build | 3.6.2-1ubuntu1+esm3 | USN-6991-1 |
| Ubuntu | focal | python3-aiohttp | Advisory build | 3.6.2-1ubuntu1+esm3 | USN-6991-1 |
| Ubuntu | jammy | python-aiohttp | Advisory build | 3.8.1-4ubuntu0.2 | USN-6991-1 |
| Ubuntu | jammy | python3-aiohttp | Advisory build | 3.8.1-4ubuntu0.2 | USN-6991-1 |
| Ubuntu | noble | python-aiohttp | Advisory build | 3.9.1-1ubuntu0.1 | USN-6991-1 |
| Ubuntu | noble | python3-aiohttp | Advisory build | 3.9.1-1ubuntu0.1 | USN-6991-1 |
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.
Related advisories
Vendor advisories explicitly linked to this CVE.
Assessment
CVSS risk assessment and additional context for this vulnerability.
- CVSS version
- 3.1
- Base score
- 5.9 / 10
- Severity
- medium
- Provider
- GitHub_M · cna
- Vector string
- CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:N/A:N
Publisher product statements
Version ranges and default statuses as reported by each provider.
| Vendor | Product | Version status | Source |
|---|---|---|---|
| aio-libs | aiohttp | < 3.9.2 (affected) | GitHub_M · cna |
Weaknesses
1- CWE-22 CWE-22: Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal')
References
7- https://github.com/aio-libs/aiohttp/commit/1c335944d6a8b1298baf179b7c0b3069f10c514b
- https://github.com/aio-libs/aiohttp/pull/8079
- https://github.com/aio-libs/aiohttp/security/advisories/GHSA-5h86-8mv2-jq9f
- https://lists.debian.org/debian-lts-announce/2025/02/msg00002.html
- https://lists.fedoraproject.org/archives/list/[email protected]/message/ICUOCFGTB25WUT336BZ4UNYLSZOUVKBD/
- https://lists.fedoraproject.org/archives/list/[email protected]/message/XXWVZIVAYWEBHNRIILZVB3R3SDQNNAA7/
- https://www.exploit-db.com/exploits/52474
Provider assertions
3GitHub_M · cna
aiohttp.web.static(follow_symlinks=True) is vulnerable to directory traversal
CISA-ADP · adp
CISA ADP Vulnrichment
CVE · adp
CVE Program Container
Provenance
- Schema
- 5.2
- Searchable
- yes
- Content hash
- 1da6b3b7d1d51278aaec93336adb90377cbe6f7929cc593e09bab317c6bc1c92
- Ingested
- 23 Sep 2026, 08:19:29 UTC
- Source record
- Official CVE record