Directory Traversal in aiohttp Static File Handling
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.
What it means and what to do now: patch path, interim mitigations, and the assume-compromise checklist.
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.
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.
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.
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.
Products and vendors Mallory has correlated with this vulnerability. Open in Mallory to drill down to specific CPE configurations and version ranges.
12 sources tracked across advisories, community write-ups, and news. New activity surfaces here as Mallory finds it.