CVE-2024-23334: Directory Traversal in aiohttp Static File Handling
- Vendors
- AiohttpFedora Project
CVE-2024-23334 is a directory traversal vulnerability in aiohttp versions earlier than 3.9.2 when used as a web server with static routes configured with follow_symlinks=True. Static file handling fails to validate that requested files remain within the configured static root directory, allowing unauthenticated remote attackers to read files outside that directory. Exploitation does not require symbolic links to exist. The vulnerability is fixed in aiohttp 3.9.2.
Impact, mitigation & remediation
What it means and what to do now: patch path, interim mitigations, and the assume-compromise checklist.
Impact
What an attacker gets, and what they’ve been doing with it.
Successful exploitation compromises confidentiality by exposing arbitrary files outside the configured static root, subject to the aiohttp process's filesystem permissions. Sensitive application or system information may be disclosed. The vulnerability does not itself establish file modification or code execution.
Mitigation
If you can’t patch tonight, do this now.
Disable follow_symlinks by removing follow_symlinks=True or explicitly setting it to False on static routes. Prefer serving static resources directly through a properly configured reverse proxy rather than aiohttp in production.
Remediation
Patch, then assume compromise.
Upgrade aiohttp to version 3.9.2 or later, or install a vendor-supported package containing the backported fix. Update affected application dependencies and deployed artifacts, and verify that running services use the corrected package. For bundled deployments, apply the applicable product vendor's security update.
Exploits
9 exploits validated by Mallory's analysis. Hidden: 3 rejected by Mallory's analysis as not a working exploit; 1 not yet analyzed, such as Exploit-DB entries.
Affected products & vendors
Products and vendors Mallory has correlated with this vulnerability. Open in Mallory to drill down to specific CPE configurations and version ranges.
References
Frequently asked questions
- Is CVE-2024-23334 exploited in the wild?
- Yes. As of Nov 4, 2026, Mallory has reports of exploitation in the wild.
- Is there a public exploit for CVE-2024-23334?
- Yes. Mallory tracks 9 public exploits or proofs of concept for CVE-2024-23334, the earliest disclosed Mar 18, 2024.
- Is there a patch for CVE-2024-23334?
- Upgrade aiohttp to version 3.9.2 or later, or install a vendor-supported package containing the backported fix. Update affected application dependencies and deployed artifacts, and verify that running services use the corrected package.
- What products are affected by CVE-2024-23334?
- Aiohttp and Fedora Project Fedora.
- How severe is CVE-2024-23334?
- CVE-2024-23334 has a CVSS v3.1 score of 7.5 (High) and an EPSS score of 76.9% (100th percentile) as of Nov 4, 2026.
Recent activity
12 sources tracked across advisories, community write-ups, and news. New activity surfaces here as Mallory finds it.