Skip to content
Threat Feed
high advisory

aiohttp: Path traversal vulnerability (CVE-2024-23334)

CVE-2024-23334 is a path traversal vulnerability in aiohttp versions prior to 3.9.2 that allows attackers to access arbitrary files via malicious file uploads.

CVE search metadata

CVE search record: CVE-2024-23334. Severity: medium. CVSS: 5.9. EPSS: 76.88%. KEV: no. Product: aiohttp (< 3.9.2). Brief: aiohttp: Path traversal vulnerability (CVE-2024-23334). Brief link: https://feed.craftedsignal.io/briefs/2026-10-aiohttp-path-traversal/

Triage facts

Revision 1
Applicability
aiohttp (< 3.9.2)
Evidence
Unknown
Severity
High
Action
Elevated
Sources
2 public sources
Freshness
Revision 1Oct 24, 09:07 UTC
Vulnerabilities
1 CVE
Source quality
B2Likely

CVE-2024-23334 is a path traversal vulnerability affecting aiohttp versions earlier than 3.9.2. An attacker can exploit this vulnerability by uploading a compressed archive containing a symbolic link that points to sensitive files, such as /etc/shadow. This allows the attacker to read arbitrary files on the system outside of the intended directory. Publicly available exploit scripts are currently circulating, which automate the discovery of vulnerable hosts and attempt exploitation.

Impact

Successful exploitation allows for unauthorized read access to arbitrary files on the filesystem, potentially exposing sensitive system information or credentials depending on the application context and permissions of the service running aiohttp.

Recommendation

  • Upgrade aiohttp to version 3.9.2 or later to mitigate the vulnerability.
  • Implement strict validation on uploaded file contents and reject archives containing symbolic links.
  • Identify all internet-facing services utilizing the aiohttp library and prioritize patching for those instances.
  • Monitor web application logs for file upload requests containing path traversal sequences or attempts to traverse outside of designated upload directories.

Immediate actions

Inventory all applications utilizing aiohttp < 3.9.2 and deploy patches.

IT Operations 48h

Threat Hunt

Search webserver access logs for POST requests to upload endpoints containing path traversal characters (../) or unusual filename patterns in archived upload parameters.

T1190 high medium confidence hunt now

Data: Webserver access logs (POST request methods, request bodies/query params)

Mitigations

Upgrade to aiohttp 3.9.2 or later.

immediate IT Operations

CVE-2024-23334