CVE-2024-23334 in Aiohttp and 1 more product
aiohttp is an asynchronous HTTP client/server framework for asyncio and Python. When using aiohttp as a web server and configuring static routes, it is necessary to specify the root path for static files. Additionally, the option 'follow_symlinks' can be used to determine whether to follow symbolic links outside the...
Affects 2 products from 2 vendors. Facts below cite their sources.
Remotely exploitable over the network, low complexity, no authentication required, no user interaction needed, impact contained to the vulnerable component, full confidentiality impact, no integrity impact, no availability impact.
Affected products and versions
| Vendor | Product | Affected versions |
|---|---|---|
| Aiohttp | Aiohttp | ≥ 1.0.5, < 3.9.2 |
| Fedoraproject | Fedora | 39 |
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 | Reported · reference |
Official description
aiohttp is an asynchronous HTTP client/server framework for asyncio and Python. When using aiohttp as a web server and configuring static routes, it is necessary to specify the root path for static files. Additionally, the option 'follow_symlinks' can be used to determine whether to follow symbolic links outside the static root directory. When 'follow_symlinks' is set to True, there is no validation to check if reading a file is within the root directory. This can lead to directory traversal vulnerabilities, resulting in unauthorized access to arbitrary files on the system, even when symlinks are not present. Disabling follow_symlinks and using a reverse proxy are encouraged mitigations. Version 3.9.2 fixes this issue.
Source: NIST NVD / MITRE CVE.
Record details
| CVE ID | CVE-2024-23334 |
|---|---|
| BreachSpider ID | BS-2024-GLOBAL-305303-H |
| CVSS vector | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N |
| Published | 2024-01-29 |
| Last modified | 2026-06-17 |
| Weakness (CWE) | |
| Source | NVD |
Weakness definitions
CWE-22: Path Traversal
Attacker manipulates file path inputs to access files outside the intended directory.
Related attack patterns (CAPEC)
CAPEC-64 Using Slashes and URL Encoding Combined to Bypass Validation Logic via CWE-22
CAPEC-76 Manipulating Web Input to File System Calls via CWE-22
CAPEC-78 Using Escaped Slashes in Alternate Encoding via CWE-22
CAPEC-79 Using Slashes in Alternate Encoding via CWE-22
CAPEC-126 Path Traversal via CWE-22
Mapping is CWE to CAPEC per MITRE CAPEC 3.9.
Analysis AI-written, not human-reviewed
CVE-2024-23334 affects aiohttp, an asynchronous HTTP client/server framework for asyncio and Python. The vulnerability arises when the 'follow_symlinks' option is set to True, leading to directory traversal and unauthorized file access. This can compromise the security of the system, especially in OT environments where file integrity and access control are critical. The CVSS score of 7.5 indicates a high severity, and the presence of a public PoC and exploit further increases the risk. Version 3.9.2 of aiohttp fixes this issue.
The vulnerability can be exploited remotely without authentication. An attacker can manipulate the 'follow_symlinks' option to traverse directories and access files outside the intended root directory, leading to unauthorized file access. This can result in the exposure of sensitive data and potential system compromise.
Compensating controls AI-drafted, review before use
Ensure that the 'follow_symlinks' option is set to False and use a reverse proxy to serve static files. Regularly monitor and audit file access logs to detect any unauthorized access attempts.
NERC CIP: CIP-007 CIP-007-R2
IEC 62443: SR 7.6
Not validated for your network. A compensating control does not replace the vendor fix.
Questions
What is CVE-2024-23334?
CVE-2024-23334 affects aiohttp, an asynchronous HTTP client/server framework for asyncio and Python. The vulnerability arises when the 'follow_symlinks' option is set to True, leading to directory traversal and unauthorized file access. This can compromise the security of the system, especially in OT environments where file integrity and access control are critical. The CVSS score of 7.5 indicates a high severity, and the presence of a public PoC and exploit further increases the risk. Version 3
What is the CVSS score for CVE-2024-23334?
CVE-2024-23334 has CVSS 7.5 (High). Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N. EPSS: 26.3%.
Is CVE-2024-23334 actively exploited?
Public exploit available for CVE-2024-23334. Exploitation risk elevated.
How do I remediate CVE-2024-23334?
Priority: IMMEDIATE. PSIRT: [email protected]
What systems are affected by CVE-2024-23334?
CVE-2024-23334 affects Aiohttp Aiohttp; Fedoraproject Fedora.
What NERC-CIP standard applies to CVE-2024-23334?
NERC CIP CIP-007 CIP-007-R2: This CVE violates CIP-007-R2 by allowing unauthorized access to system files, which can compromise the security and integrity of the control system environment.
What IEC 62443 requirement maps to CVE-2024-23334?
IEC 62443 SR 7.6: This CVE maps to SR 7.6, which requires the implementation of access control measures to prevent unauthorized access to system resources. The directory traversal vulnerability allows attackers to bypass these controls, leading to potential system compromise.
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.