CVE-2024-42367 in Aiohttp
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 link...
Affects 1 product from 1 vendor. Facts below cite their sources.
Remotely exploitable over the network, high complexity, no authentication required, no user interaction needed, impact contained to the vulnerable component, no availability impact.
Affected products and versions
| Vendor | Product | Affected versions |
|---|---|---|
| Aiohttp | Aiohttp | ≥ 3.10.0, < 3.10.2 |
A product listed here is affected only at the versions shown. Use the free check to test the exact version you run.
Fix and vendor advisory
No official vendor advisory link on record. See the CVE record.
Vendor PSIRT: [email protected]
Exploitation
| CISA known-exploited | Not in the CISA KEV catalog |
|---|---|
| Public exploit | Not confirmed |
Official 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.
Source: NIST NVD / MITRE CVE.
Record details
| CVE ID | CVE-2024-42367 |
|---|---|
| BreachSpider ID | BS-2024-GLOBAL-203515-M |
| CVSS vector | CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:L/I:L/A:N |
| Published | 2024-08-12 |
| Last modified | 2026-06-17 |
| Weakness (CWE) | |
| Source | NVD |
Weakness definitions
CWE-61: CWE-61
Related attack patterns (CAPEC)
CAPEC-27 Leveraging Race Conditions via Symbolic Links via CWE-61
Mapping is CWE to CAPEC per MITRE CAPEC 3.9.
Analysis AI-written, not human-reviewed
aiohttp versions on the 3.10 branch prior to 3.10.2 are vulnerable to path traversal attacks due to improper handling of symbolic links for compressed static files.
An attacker can exploit this vulnerability by crafting requests to access files outside the intended root directory via symbolic links to compressed files (.gz or .br).
Questions
What is CVE-2024-42367?
aiohttp versions on the 3.10 branch prior to 3.10.2 are vulnerable to path traversal attacks due to improper handling of symbolic links for compressed static files.
What is the CVSS score for CVE-2024-42367?
CVE-2024-42367 has CVSS 4.8 (Medium). Vector: CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:L/I:L/A:N. EPSS: 0.8%.
Is CVE-2024-42367 actively exploited?
No confirmed active exploitation of CVE-2024-42367 as of 2026-09-25.
How do I remediate CVE-2024-42367?
Priority: HIGH. PSIRT: [email protected]
What systems are affected by CVE-2024-42367?
CVE-2024-42367 affects Aiohttp Aiohttp.
For developers and AI agents
Run this check from your own code or agent
REST API
curl -s https://breachspider.com/api/v1/assets/correlate-cves \
-H "Authorization: Bearer $BREACHSPIDER_API_KEY" \
-H "Content-Type: application/json" \
-d '{"assets":[{"asset_id":"dev-1","vendor":"Aiohttp","product":"Aiohttp","version":"1.0"}]}'
MCP for AI agents
# hosted: add as a connector
https://mcp.breachspider.com/mcp
# local
pipx install breachspider-mcp
Free trial: 14 days, 750 device checks, no card.
Page facts from NVD, MITRE, CISA and vendor advisories, record last modified 2026-06-17.