# CVE-2024-42367: In aiohttp, compressed files as symlinks are not protected from path traversal

- Severity: Medium 4.8 (CVSS:3.1, scored by GitHub_M) `CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:L/I:L/A:N`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.79%, higher than 53% of CVEs (2026-11-30)
- Published: 2024-08-09T16:49:58.000Z
- Modified: 2026-09-10T03:50:18.259Z
- Also known as: GHSA-jwhx-xcg6-8xhj, PYSEC-2026-1108
- Weaknesses: CWE-61
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial
- Assigned by: GitHub_M

## 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.

(As written by CVE List.)

## Affected

- aio-libs aiohttp: >= 3.10.0b1, < 3.10.2
- aiohttp (PyPI): from 3.10.0b1 before 3.10.2
- aiohttp aiohttp: from 3.10.0 before 3.10.2

## Every score

- GitHub_M: CVSS:3.1 4.8 Medium `CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:L/I:L/A:N`
- GitHub: CVSS:3.1 4.8 Medium `CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:L/I:L/A:N`
- GitHub: CVSS:4.0 Medium `CVSS:4.0/AV:N/AC:H/AT:P/PR:N/UI:N/VC:L/VI:L/VA:N/SC:N/SI:N/SA:N`
- NVD: CVSS:3.1 4.8 Medium `CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:L/I:L/A:N`
- PyPA Advisory Database: CVSS:3.1 4.8 Medium `CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:L/I:L/A:N`
- PyPA Advisory Database: CVSS:4.0 `CVSS:4.0/AV:N/AC:H/AT:P/PR:N/UI:N/VC:L/VI:L/VA:N/SC:N/SI:N/SA:N`

## References

- <https://github.com/aio-libs/aiohttp/security/advisories/GHSA-jwhx-xcg6-8xhj> (vendor-advisory, web)
- <https://github.com/aio-libs/aiohttp/pull/8653> (issue-tracking, web)
- <https://github.com/aio-libs/aiohttp/commit/ce2e9758814527589b10759a20783fb03b98339f> (fix, patch, web)
- <https://github.com/aio-libs/aiohttp/blob/e0ff5246e1d29b7710ab1a2bbc972b48169f1c05/aiohttp/web_fileresponse.py#L177> (product, web)
- <https://github.com/aio-libs/aiohttp/blob/e0ff5246e1d29b7710ab1a2bbc972b48169f1c05/aiohttp/web_urldispatcher.py#L674> (product, web)
- <https://nvd.nist.gov/vuln/detail/CVE-2024-42367> (advisory)
- <https://github.com/aio-libs/aiohttp> (package)
- <https://pypi.org/project/aiohttp> (package)
- <https://github.com/advisories/GHSA-jwhx-xcg6-8xhj> (advisory)

## Sources

- CVE List: [CVE-2024-42367](https://www.cve.org/CVERecord?id=CVE-2024-42367), CVE Terms of Use, modified 2025-06-09
- GitHub Advisory Database: [GHSA-jwhx-xcg6-8xhj](https://github.com/advisories/GHSA-jwhx-xcg6-8xhj), CC-BY-4.0, modified 2026-09-10
- NVD: [CVE-2024-42367](https://nvd.nist.gov/vuln/detail/CVE-2024-42367), Public domain, modified 2026-06-17
- PyPA Advisory Database: [PYSEC-2026-1108](https://osv.dev/vulnerability/PYSEC-2026-1108), CC-BY-4.0, modified 2026-07-07

---

Page: https://cve.day/CVE-2024-42367 · Whole record: https://cve.day/CVE-2024-42367.json · Rebuilt by cve.day 2026-11-25T22:58:44.177Z
