CVE-2024-23334

aiohttp.web.static(follow_symlinks=True) is vulnerable to directory traversal

Published Jan 29, 2024 CVSS 3.1 · 5.9 Medium EPSS 76.9% KEV · Not listed
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.

Remediation

No solution or workaround provided in the CVE record

Tracking

Sign in to view the affected projects.

Advisories

Source ID Title
Debian DLA Debian DLA DLA-4041-1 python-aiohttp security update
Debian DSA Debian DSA DSA-5828-1 python-aiohttp security update
Github GHSA Github GHSA GHSA-5h86-8mv2-jq9f aiohttp is vulnerable to directory traversal
Ubuntu USN Ubuntu USN USN-6991-1 AIOHTTP vulnerability
History
Type Values Removed Values Added
Metrics epss

{'score': 0.93563}

epss

{'score': 0.9351}

Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'no', 'Exploitation': 'poc', 'Technical Impact': 'partial'}, 'version': '2.0.3'}

Weaknesses

Sources

Status
PUBLISHED
Assigner
GitHub_M
Published
Updated
Feb 4, 2026, 7:22 PM
Reserved
Jan 15, 2024, 3:19 PM
Status
Modified
Published
Jan 29, 2024, 11:15 PM
Modified
Jun 17, 2026, 7:12 AM
Severity
Moderate
Public date
Jan 30, 2024, 12:00 AM