CVEfocus › CVE database › CVE-2024-42367

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

CVSS 4.8 MediumEPSS 0.8% (higher than 53% of CVEs)Published 2024-08-09Updated 2025-06-09Assigner: GitHub_M

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.

CWE-61

What to do

Fixed builds are available from Debian, PyPI: see the table below for the fixed version per release.

Debian has not shipped a fix for every release yet.

Is your server affected? One read-only command checks every installed package against this CVE and all others, using each vendor's fixed versions. Get started or get a free API key.

curl -sS "https://api.cvefocus.com/v1/check?format=text" -H "Authorization: Bearer $CVEFOCUS_KEY" \
  -H "Content-Type: text/plain" --data-binary @inventory.txt

Vendor status at a glance

3Fixed
1Fix pending

Status by vendor and release

From each vendor's own security data and VEX statements. "Fixed" means a fixed build is published for that release.

ReleasePackageStatusFixed versionAdvisory
Debian 14python-aiohttpFixed3.10.3-2DEBIAN-CVE-2024-42367
Debian 13python-aiohttpFixed3.10.3-2DEBIAN-CVE-2024-42367
Debian 12python-aiohttpFix pendingDEBIAN-CVE-2024-42367
PyPI libraryaiohttpFixed3.10.2GHSA-jwhx-xcg6-8xhj

What the vendor says

As published in the CVE record by GitHub_M, the CVE's assigner (usually the vendor). Check the vendor's advisory before acting.

References

About this page

Compiled by CVEfocus from the CVE List, the security data and VEX statements of Ubuntu, Debian, Red Hat, AlmaLinux, Rocky Linux and Microsoft, CISA's Known Exploited Vulnerabilities catalog and FIRST EPSS, refreshed several times a day (data status). Information only; see the disclaimer. Official record: cve.org · NVD.