CVE-2024-42367
published medium CVSS 3.1 · 4.8In aiohttp, compressed files as symlinks are not protected from path traversal
Package status and fixes
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| aio-libs | — | aiohttp>= 3.10.0b1, < 3.10.2 | Affected | Not stated | GitHub_M |
| SUSE / openSUSE | SLE-15-SP4 | python311-aiohttpaarch64 | Advisory build | 3.9.3-150400.10.24.1 | SUSE-SU-2024:3110-1 |
| SUSE / openSUSE | SLE-15-SP4 | python311-aiohttpppc64le | Advisory build | 3.9.3-150400.10.24.1 | SUSE-SU-2024:3110-1 |
| SUSE / openSUSE | SLE-15-SP4 | python311-aiohttps390x | Advisory build | 3.9.3-150400.10.24.1 | SUSE-SU-2024:3110-1 |
| SUSE / openSUSE | SLE-15-SP4 | python311-aiohttpx86_64 | Advisory build | 3.9.3-150400.10.24.1 | SUSE-SU-2024:3110-1 |
| SUSE / openSUSE | SLE-15-SP5 | python311-aiohttpaarch64 | Advisory build | 3.9.3-150400.10.24.1 | SUSE-SU-2024:3110-1 |
| SUSE / openSUSE | SLE-15-SP5 | python311-aiohttpppc64le | Advisory build | 3.9.3-150400.10.24.1 | SUSE-SU-2024:3110-1 |
| SUSE / openSUSE | SLE-15-SP5 | python311-aiohttps390x | Advisory build | 3.9.3-150400.10.24.1 | SUSE-SU-2024:3110-1 |
Show 41 more entries
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| SUSE / openSUSE | SLE-15-SP5 | python311-aiohttpx86_64 | Advisory build | 3.9.3-150400.10.24.1 | SUSE-SU-2024:3110-1 |
| SUSE / openSUSE | SLE-15-SP6 | python311-aiohttpaarch64 | Advisory build | 3.9.3-150400.10.24.1 | SUSE-SU-2024:3110-1 |
| SUSE / openSUSE | SLE-15-SP6 | python311-aiohttpppc64le | Advisory build | 3.9.3-150400.10.24.1 | SUSE-SU-2024:3110-1 |
| SUSE / openSUSE | SLE-15-SP6 | python311-aiohttps390x | Advisory build | 3.9.3-150400.10.24.1 | SUSE-SU-2024:3110-1 |
| SUSE / openSUSE | SLE-15-SP6 | python311-aiohttpx86_64 | Advisory build | 3.9.3-150400.10.24.1 | SUSE-SU-2024:3110-1 |
| SUSE / openSUSE | SLE-3-SP5 | python311-aiohttpaarch64 | Advisory build | 3.9.3-150400.10.24.1 | SUSE-SU-2024:3110-1 |
| SUSE / openSUSE | SLE-3-SP5 | python311-aiohttpppc64le | Advisory build | 3.9.3-150400.10.24.1 | SUSE-SU-2024:3110-1 |
| SUSE / openSUSE | SLE-3-SP5 | python311-aiohttps390x | Advisory build | 3.9.3-150400.10.24.1 | SUSE-SU-2024:3110-1 |
| SUSE / openSUSE | SLE-3-SP5 | python311-aiohttpx86_64 | Advisory build | 3.9.3-150400.10.24.1 | SUSE-SU-2024:3110-1 |
| SUSE / openSUSE | SLE-3-SP6 | python311-aiohttpaarch64 | Advisory build | 3.9.3-150400.10.24.1 | SUSE-SU-2024:3110-1 |
| SUSE / openSUSE | SLE-3-SP6 | python311-aiohttpppc64le | Advisory build | 3.9.3-150400.10.24.1 | SUSE-SU-2024:3110-1 |
| SUSE / openSUSE | SLE-3-SP6 | python311-aiohttps390x | Advisory build | 3.9.3-150400.10.24.1 | SUSE-SU-2024:3110-1 |
| SUSE / openSUSE | SLE-3-SP6 | python311-aiohttpx86_64 | Advisory build | 3.9.3-150400.10.24.1 | SUSE-SU-2024:3110-1 |
| SUSE / openSUSE | openSUSE-Leap-15.5 | python311-aiohttpaarch64 | Advisory build | 3.9.3-150400.10.24.1 | SUSE-SU-2024:3110-1 |
| SUSE / openSUSE | openSUSE-Leap-15.5 | python311-aiohttpppc64le | Advisory build | 3.9.3-150400.10.24.1 | SUSE-SU-2024:3110-1 |
| SUSE / openSUSE | openSUSE-Leap-15.5 | python311-aiohttps390x | Advisory build | 3.9.3-150400.10.24.1 | SUSE-SU-2024:3110-1 |
| SUSE / openSUSE | openSUSE-Leap-15.5 | python311-aiohttpx86_64 | Advisory build | 3.9.3-150400.10.24.1 | SUSE-SU-2024:3110-1 |
| SUSE / openSUSE | openSUSE-Leap-15.6 | python311-aiohttpaarch64 | Advisory build | 3.9.3-150400.10.24.1 | SUSE-SU-2024:3110-1 |
| SUSE / openSUSE | openSUSE-Leap-15.6 | python311-aiohttpppc64le | Advisory build | 3.9.3-150400.10.24.1 | SUSE-SU-2024:3110-1 |
| SUSE / openSUSE | openSUSE-Leap-15.6 | python311-aiohttps390x | Advisory build | 3.9.3-150400.10.24.1 | SUSE-SU-2024:3110-1 |
| SUSE / openSUSE | openSUSE-Leap-15.6 | python311-aiohttpx86_64 | Advisory build | 3.9.3-150400.10.24.1 | SUSE-SU-2024:3110-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | python310-aiohttpaarch64 | Advisory build | 3.10.5-1.1 | OPENSUSE-SU-2024:14280-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | python310-aiohttpppc64le | Advisory build | 3.10.5-1.1 | OPENSUSE-SU-2024:14280-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | python310-aiohttps390x | Advisory build | 3.10.5-1.1 | OPENSUSE-SU-2024:14280-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | python310-aiohttpx86_64 | Advisory build | 3.10.5-1.1 | OPENSUSE-SU-2024:14280-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | python311-aiohttpaarch64 | Advisory build | 3.10.5-1.1 | OPENSUSE-SU-2024:14280-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | python311-aiohttpppc64le | Advisory build | 3.10.5-1.1 | OPENSUSE-SU-2024:14280-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | python311-aiohttps390x | Advisory build | 3.10.5-1.1 | OPENSUSE-SU-2024:14280-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | python311-aiohttpx86_64 | Advisory build | 3.10.5-1.1 | OPENSUSE-SU-2024:14280-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | python312-aiohttpaarch64 | Advisory build | 3.10.5-1.1 | OPENSUSE-SU-2024:14280-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | python312-aiohttpppc64le | Advisory build | 3.10.5-1.1 | OPENSUSE-SU-2024:14280-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | python312-aiohttps390x | Advisory build | 3.10.5-1.1 | OPENSUSE-SU-2024:14280-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | python312-aiohttpx86_64 | Advisory build | 3.10.5-1.1 | OPENSUSE-SU-2024:14280-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 |
Description
aiohttp is an asynchronous HTTP client/server framework for asyncio and Python. In versions on the 3.10 branch prior to version 3.10.2, static routes which contain files with compressed variants (`.gz` or `.br` extension) are vulnerable to path traversal outside the root directory if those variants are symbolic links. The server protects static routes from path traversal outside the root directory when `follow_symlinks=False` (default). It does this by resolving the requested URL to an absolute path and then checking that path relative to the root. However, these checks are not performed when looking for compressed variants in the `FileResponse` class, and symbolic links are then automatically followed when performing the `Path.stat()` and `Path.open()` to send the file. Version 3.10.2 contains a patch for the 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
- 4.8 / 10
- Severity
- medium
- Provider
- GitHub_M · cna
- Vector string
- CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:L/I:L/A:N
Publisher product statements
Version ranges and default statuses as reported by each provider.
| Vendor | Product | Version status | Source |
|---|---|---|---|
| aio-libs | aiohttp | >= 3.10.0b1, < 3.10.2 (affected) | GitHub_M · cna |
Weaknesses
1- CWE-61 CWE-61: UNIX Symbolic Link (Symlink) Following
References
5- https://github.com/aio-libs/aiohttp/blob/e0ff5246e1d29b7710ab1a2bbc972b48169f1c05/aiohttp/web_fileresponse.py#L177
- https://github.com/aio-libs/aiohttp/blob/e0ff5246e1d29b7710ab1a2bbc972b48169f1c05/aiohttp/web_urldispatcher.py#L674
- https://github.com/aio-libs/aiohttp/commit/ce2e9758814527589b10759a20783fb03b98339f
- https://github.com/aio-libs/aiohttp/pull/8653
- https://github.com/aio-libs/aiohttp/security/advisories/GHSA-jwhx-xcg6-8xhj
Provider assertions
2GitHub_M · cna
In aiohttp, compressed files as symlinks are not protected from path traversal
CISA-ADP · adp
CISA ADP Vulnrichment
Provenance
- Schema
- 5.1
- Searchable
- yes
- Content hash
- 06fff871c1f723819c98d239bbbaab5db10e7683aaec6ff283e47b6a116d2656
- Ingested
- 23 Sep 2026, 08:26:31 UTC
- Source record
- Official CVE record