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

- Priority: **Routine**
- Reason: Not severe (CVSS 4.8, network access); no exploitation reported by the 5 checked sources
- Next step: Fix in the normal cadence
- Status: published
- Published: 2024-08-09 · Modified: 2025-06-09
- Aliases: SUSE-SU-2024:3110-1, GHSA-jwhx-xcg6-8xhj, PYSEC-2026-1108, UBUNTU-CVE-2024-42367, DEBIAN-CVE-2024-42367, CGA-2cpr-mf8j-7rfj, CGA-3gg9-38vf-v62f, CGA-3jf8-7563-vf9m, CGA-3wm4-w7w2-75f4, CGA-46vc-hg34-r2gw, CGA-668c-cqpr-whqh, CGA-7gw8-w26r-8q3g, CGA-98cj-mjcp-6842, CGA-9pgx-7qq2-q6j9, CGA-c6gv-f9f6-5pcw, CGA-c7w9-r87m-8jqv, CGA-cc6x-ch94-4mgp, CGA-cm78-g79w-c733, CGA-f3r8-r9mg-ppgw, CGA-fc2q-r5j4-vx9v, CGA-ffh4-3vh7-wx5f, CGA-fjjq-72r5-mgfv, CGA-fmcm-2mhp-x76m, CGA-gj55-379h-225m, CGA-gm4h-xhm4-jv89, CGA-gv7c-g7h3-fcq2, CGA-hpx5-hpch-2g3x, CGA-jmpw-679x-v8w3, CGA-m96h-5wmg-5347, CGA-mg6m-8rg2-rvjv, CGA-ppwj-pf6p-279g, CGA-q4v7-6m94-92cf, CGA-qq4f-f67v-3xv3, CGA-qwwr-cvgg-32wm, CGA-qxm2-94v7-7p7h, CGA-rc3g-q6m6-25jg, CGA-rvr6-m65c-jq77, CGA-v8h3-35m9-wxgp, CGA-xg2m-rq23-qjcv, openSUSE-SU-2024:14280-1, CGA-94rc-x35g-54wg, CGA-9fhr-hpch-gf43, CGA-hq43-jp7p-q9qr, CGA-hrqr-26hh-3gr6, CGA-jfw4-pgfg-vm77
- Record: https://cvemate.com/vulnerability/CVE-2024-42367 · JSON: https://cvemate.com/vulnerability/CVE-2024-42367/json

## Description

```text
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.
```

## Signals

- CVSS: 4.8 medium (v3.1, CVE.org) CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:L/I:L/A:N
- EPSS: 0.645%, percentile 52.339%, as of 2026-12-04
- Known exploited (KEV): CISA not listed, ENISA not listed, CIRCL not listed
- Ransomware use: none recorded
- Public exploits: 0

## Affected (first 20 of 48)

- aio-libs aiohttp: ≥ 3.10.0b1, \< 3.10.2
- aiohttp aiohttp: ≥ 3.10.0, \< 3.10.2
- chainguard airflow (Chainguard): \< 2.9.3-r2
- chainguard airflow-bitnami-compat (Chainguard): \< 2.9.3-r2
- chainguard checkov (Chainguard): \< 3.0.34-r1
- chainguard dask-gateway (Chainguard): \< 2024.1.0-r9
- chainguard dask-gateway-server (Chainguard): \< 2024.1.0-r9
- chainguard kserve (Chainguard): \< 0.13.1-r3
- chainguard kserve-agent (Chainguard): \< 0.13.1-r3
- chainguard kserve-agent-compat (Chainguard): \< 0.13.1-r3
- chainguard kserve-manager (Chainguard): \< 0.13.1-r3
- chainguard kserve-manager-compat (Chainguard): \< 0.13.1-r3
- chainguard kserve-qpext (Chainguard): \< 0.13.1-r3
- chainguard kserve-qpext-compat (Chainguard): \< 0.13.1-r3
- chainguard kserve-router (Chainguard): \< 0.13.1-r3
- chainguard kserve-router-compat (Chainguard): \< 0.13.1-r3
- chainguard kserve-storage-controller (Chainguard): \< 0.13.1-r3
- chainguard nemo (Chainguard): \< 1.23.0-r12
- chainguard py3-cassandra-medusa (Chainguard): \< 0.22.3-r1
- chainguard py3-cassandra-medusa-compat (Chainguard): \< 0.22.3-r1

## References

- <https://github.com/aio-libs/aiohttp/security/advisories/GHSA-jwhx-xcg6-8xhj>
- <https://github.com/aio-libs/aiohttp/pull/8653>
- <https://github.com/aio-libs/aiohttp/commit/ce2e9758814527589b10759a20783fb03b98339f>
- <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://www.suse.com/support/update/announcement/2024/suse-su-20243110-1/>
- <https://bugzilla.suse.com/1229226>
- <https://www.suse.com/security/cve/CVE-2024-42367>
- <https://nvd.nist.gov/vuln/detail/CVE-2024-42367>
- <https://github.com/aio-libs/aiohttp>
- <https://pypi.org/project/aiohttp>
- <https://github.com/advisories/GHSA-jwhx-xcg6-8xhj>
- <https://ubuntu.com/security/CVE-2024-42367>
- <https://www.cve.org/CVERecord?id=CVE-2024-42367>
- <https://security-tracker.debian.org/tracker/CVE-2024-42367>
- <https://github.com/CVEProject/cvelistV5/tree/main/cves/2024/42xxx/CVE-2024-42367.json>

---

Data as of 2026-12-05T11:13:41.275Z. The priority label is CveMate's own model from public evidence, not an official rating, and it knows nothing about your assets. How labels are decided: https://cvemate.com/faq#priority
