Skip to main content
Mallory
HighPublic exploitVulnerability

CVE-2024-23334: Directory Traversal in aiohttp Static File Handling

Published Jan 29, 2024 · Updated 18 days ago
Trending this weekNot trendingOutside this week’s top 100
Mention activity · 30 days1 mention · peak 1 in a dayToday
CVSS7.5High · v3.1
EPSS76.9%100th percentile
CISA KEVNoNot listed
In the wildReported1 exploitation record in Mallory
Vendors
AiohttpFedora Project
IdentifiersCVE-2024-23334CWE-22 · Improper Limitation of a Pathname…

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.

Do you run this?See affected versions in your environment and whether adversaries are exploiting this vulnerability against assets like yours.
Check your exposure
Analyst brief

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.

Public exploits

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.

View more in app →
CVE-2024-23334-PoCThis repository is a proof-of-concept (PoC) exploit for CVE-2024-23334, a path traversal vulnerability in the Python aiohttp library (versions <= 3.9.1). The repository contains a minimal vulnerable server (server.py) that serves static files using aiohttp's add_static method, and an exploit script (exploit.sh) that attempts to read arbitrary files from the server by exploiting the path traversal flaw. The exploit.sh script iteratively crafts HTTP requests with increasing numbers of '../' sequences in the path to traverse directories and access files such as /etc/passwd. The server is configured to run on localhost:8081, and the exploit targets this endpoint. The repository also includes a requirements.txt specifying the vulnerable aiohttp version and a static test file. The exploit demonstrates the vulnerability but does not provide weaponized or automated post-exploitation capabilities.z3rObyte · Disclosed Mar 18, 2024 · python · bash · networkPoCCVE-2024-23334This repository is a Proof of Concept (PoC) for CVE-2024-23334, a Local File Inclusion (LFI) vulnerability in aiohttp (version 3.9.1). The repository contains: - 'server.py': A minimal aiohttp server configured to serve static files from a 'static/' directory with 'follow_symlinks=True', exposing the LFI vulnerability. - 'exploit.py': The main exploit script, which attempts to retrieve '/etc/passwd' from a target server by sending GET requests to '/static/../../.../etc/passwd' with increasing directory traversal depth. It stops when a successful (HTTP 200) response is received and prints the file contents. - 'aiohttp.yaml': A nuclei scanner template for automated detection of the LFI vulnerability, using similar traversal payloads and matching on the presence of 'root:' in the response body. - 'requirements.txt': Specifies 'aiohttp==3.9.1' for the PoC server. - 'README.md': Provides setup instructions, usage examples, and screenshots. The exploit demonstrates the ability to read arbitrary files from the server filesystem via HTTP requests, specifically targeting the '/etc/passwd' file as a proof. The PoC is intended for educational and testing purposes, and the vulnerability is exploitable over the network on any aiohttp server with a similar static file configuration.jhonnybonny · Disclosed Mar 19, 2024 · python · yaml · networkPoCCVE-2024-23334-PoCThis repository contains a proof-of-concept exploit for CVE-2024-23334, a local file inclusion (LFI) vulnerability in aiohttp 3.9.1 when the 'follow_symlinks' option is enabled. The exploit is implemented as a Bash script ('lfi.sh') that takes a target URL and a file path as arguments. It attempts to read arbitrary files from the target server by constructing URLs with increasing numbers of '../' directory traversal sequences and appending the user-supplied file path. The script uses curl to send requests and checks for HTTP 200 responses to determine if the file was successfully read. The README provides usage instructions and describes the vulnerability. No hardcoded endpoints are present; the script is generic and requires user-supplied targets and file paths. The exploit demonstrates the vulnerability but does not provide weaponized or automated post-exploitation capabilities.s4botai · Disclosed Sep 8, 2024 · bash · networkPoCCVE-2024-23334This repository contains a proof-of-concept exploit for CVE-2024-23334, a Local File Inclusion (LFI) and path traversal vulnerability in aiohttp versions <= 3.9.1. The exploit is implemented in Python (exploit.py) and allows an attacker to read arbitrary files from a vulnerable aiohttp server by abusing the static file serving mechanism when 'follow_symlinks=True' is set. The exploit works by sending HTTP GET requests with crafted paths containing multiple '/../' sequences to traverse directories and access files outside the intended static directory. The README.md provides usage instructions, background on the vulnerability, and references. The exploit requires the attacker to specify the target URL, the file to read, and the static directory route. The main entry point is exploit.py, which is a standalone script and not part of any exploit framework.wizarddos · Disclosed Oct 20, 2024 · python · markdown · networkPoCCVE-2024-23334Repository contains a minimal Bash proof-of-concept for CVE-2024-23334 (aiohttp static route path traversal). Structure: (1) README.md with brief usage notes and screenshots; (2) exploit.sh which takes three arguments (host, port, file) and issues a crafted HTTP GET using curl --path-as-is to prevent client-side path normalization. The exploit concatenates a static route folder (default 'static'), a long '../' traversal string, and a user-supplied file path to attempt arbitrary file read from the server. Notable issue: the script includes a status check using curl against "$URL:$PORT" but URL/PORT variables are undefined (should likely be $host/$port), so the check may not work as intended; however, the core exploit request is the final curl to http://$host:$port/$folder/$string/$file.0xR00 · Disclosed Nov 7, 2024 · bash · markdown · networkPoCCVE-2024-23334This repository contains a proof-of-concept exploit for CVE-2024-23334, targeting a directory traversal vulnerability in aiohttp servers that serve static files. The exploit is implemented as a Bash script ('exploit.sh') which takes three arguments: the target host, port, and the file to retrieve. It constructs a URL with a traversal string to access files outside the intended static directory. The script first checks if the server is accessible, then attempts to retrieve the specified file using a crafted HTTP request. The README provides usage instructions and notes that the static folder may need to be adjusted depending on server configuration. No hardcoded endpoints are present; the script is designed to be run against user-specified targets. The exploit demonstrates the vulnerability but does not provide weaponized or automated post-exploitation capabilities.Pylonet · Disclosed Nov 7, 2024 · bash · networkPoCCVE-2024-23334-PoCThis repository is a proof-of-concept (PoC) exploit for CVE-2024-23334, a path traversal vulnerability. The main file, 'exploit.py', is a Python script that automates sending HTTP requests with crafted payloads to a web service running at 'http://localhost:8081/assets/'. The script attempts to access files outside the intended directory by prepending '../' sequences to the file path (e.g., 'root/root.txt'). It uses the 'curl' command with the '--path-as-is' option to avoid URL normalization, and iterates through increasing numbers of '../' to bypass directory restrictions. The exploit checks for a successful HTTP 200 response to determine if the file was accessed. The repository also includes a 'requirements.txt' for Python dependencies ('requests' and 'colorama'), though the exploit itself uses 'subprocess' to call 'curl' rather than the 'requests' library. The README provides usage instructions and context. No hardcoded credentials or external IPs are present; the exploit targets a local or test instance by default. The structure is simple, with a single exploit script, a README, and a requirements file.Arc4he · Disclosed Nov 9, 2024 · python · bash · networkPoCLFI-aiohttp-CVE-2024-23334-PoCThis repository provides a Bash proof-of-concept exploit for CVE-2024-23334, a Local File Inclusion (LFI) vulnerability in the aiohttp Python web server framework (versions prior to 3.9.2). The exploit automates directory traversal attacks against misconfigured static file routes, allowing an attacker to read arbitrary files from the server's filesystem. The main script, 'lfi_aiohttp.sh', takes a file path as input and constructs HTTP requests with increasing levels of '../' traversal to access the specified file. The script uses curl to interact with the target server, whose URL and static file route must be set in the script variables. The README provides detailed usage instructions, configuration notes, and an example output showing the dumping of /etc/passwd. The exploit is network-based, requiring access to the vulnerable server, and is intended for educational or authorized penetration testing purposes only. No hardcoded payloads or weaponization features are present; the script is a straightforward POC for file read via LFI.TheRedP4nther · Disclosed Nov 14, 2024 · bash · networkPoCCVE-2024-23334-PoCRepository contains a single Python proof-of-concept exploit script for CVE-2024-23334 (aiohttp path traversal) plus a README and requirements. - Structure: - CVE-2024-23334.py: CLI PoC that takes <target> <file> [port] and performs an HTTP GET to a presumed static route /assets with a traversal sequence to read arbitrary files. - README.md: Explains the vulnerability and notes it was used for HTB Chemistry; states the vulnerable condition is aiohttp static file serving with follow_symlinks=True. - requirements.txt: pwn, termcolor, requests. - Exploit behavior/capabilities: - Network-based arbitrary file read: constructs path "/assets/../../../../../" + user-supplied file (e.g., /etc/passwd) and requests it via http.client.HTTPConnection. - Minimal validation: first checks reachability with requests.get("http://{target}") and then sends the traversal request; prints response body decoded with errors ignored. - No post-exploitation/persistence: does not write files, execute commands, or open shells; it only retrieves and displays file contents. - Notable implementation details: - Assumes the vulnerable static route is /assets (hardcoded), which is a fingerprintable indicator and may need adjustment for other deployments. - Port defaults to 80; the script passes port as a string to HTTPConnection (works in many cases but is slightly sloppy). - Uses pwntools logging for output formatting; termcolor for banner styling.Sn0wBaall · Disclosed Jan 27, 2026 · python · networkPoC
Exposure surface

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.

VendorProductType
AiohttpAiohttpapplication
Fedora ProjectFedoraoperating_system
FAQ

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.
Mallory platform

The version that knows your environment.

This page is what’s public. Mallory adds the parts that aren’t: which of your assets are affected, which adversaries are exploiting it right now, and which detections to deploy tonight.
Exposure mappingQuery your assets running an affected version, and investigate the blast radius.
Threat actor evidenceEvery report linking this CVE to a named adversary.
Associated malwareMalware families linked to this CVE, with evidence and IOCs.
Detection signatures2YARA, Sigma, Snort, and vendor rules, auto-deployed to your SIEM.
Vendor-by-vendor mappingCross-references every affected SKU, including bundled OEM variants.
Social activity3Community discussion across Reddit, Mastodon, and other social sources.