{"cve":"CVE-2024-42367","nvd":{"published":"2024-08-12T13:38:34.240","modified":"2026-06-17T07:49:20.270","status":"Analyzed","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.","cvss_v4":null,"cvss_v3":{"version":"3.1","vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:L/I:L/A:N","score":4.8},"cwes":["CWE-61"],"references":["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"],"products":["aiohttp:aiohttp"],"source":"nvd","synced_at":"2026-10-19T21:53:51.317825789+00:00"},"epss":{"cve":"CVE-2024-42367","score":0.0065,"percentile":0.51174,"date":"2026-10-31"},"kev":null,"osv":[{"id":"GHSA-jwhx-xcg6-8xhj","url":"https://osv.dev/vulnerability/GHSA-jwhx-xcg6-8xhj","summary":"In aiohttp, compressed files as symlinks are not protected from path traversal","modified":"2026-09-10T03:50:18.259191283Z","packages":[{"ecosystem":"PyPI","name":"aiohttp","purl":"pkg:pypi/aiohttp","ranges":[">=3.10.0b1 <3.10.2"],"fixed":["3.10.2"]}]},{"id":"PYSEC-2026-1108","url":"https://osv.dev/vulnerability/PYSEC-2026-1108","summary":"In aiohttp, compressed files as symlinks are not protected from path traversal","modified":"2026-07-07T17:46:11.097837758Z","packages":[{"ecosystem":"PyPI","name":"aiohttp","purl":"pkg:pypi/aiohttp","ranges":[">=3.10.0b1 <3.10.2"],"fixed":["3.10.2"]}]}],"attribution":["This product uses the NVD API but is not endorsed or certified by the NVD.","EPSS scores: FIRST Exploit Prediction Scoring System, https://www.first.org/epss","Known exploited vulnerabilities: CISA Known Exploited Vulnerabilities Catalog, https://www.cisa.gov/known-exploited-vulnerabilities-catalog","Package advisories: OSV (https://osv.dev), from the GitHub Advisory Database, PyPA, Go, RustSec and other ecosystem databases, under CC-BY 4.0 or CC0","CVE records: the CVE Program's CVE List (https://www.cve.org), under its terms of use (https://www.cve.org/Legal/TermsOfUse). CVE is a registered trademark of The MITRE Corporation; this product is not affiliated with the CVE Program."]}