PT-2024-29901

CVE-2024-42367

·

Published

2024-08-08

·

Updated

2026-08-06

Description by

CVSS 4.0
6.3
Medium
MetricsAV:N/AC:H/AT:P/PR:N/UI:N/VC:L/VI:L/VA:N/SC:N/SI:N/SA:N
Name of the Vulnerable Software and Affected Versions aiohttp versions prior to 3.10.2
Description The issue is related to path traversal outside the root directory in static routes containing files with compressed variants (.gz or .br extension) when these variants are symbolic links. The server normally protects against such traversal when follow symlinks=False (default) by resolving the requested URL to an absolute path and checking it relative to the root. However, when looking for compressed variants in the FileResponse class, these checks are not performed, and symbolic links are automatically followed during Path.stat() and Path.open() operations to send the file.
Recommendations For aiohttp versions prior to 3.10.2, update to version 3.10.2 or later to resolve the issue. As a temporary workaround, consider disabling the use of compressed variants in static routes or restricting access to the FileResponse class until a patch is applied. Additionally, ensure that follow symlinks=False to minimize the risk of path traversal outside the root directory.
Exploitability
Exploit
Fix
Impacts
Researchers
Vendors
Affected products
Related identifiers
GHSA-JWHX-XCG6-8XHJ
AZL-47754
AZL-47763
OESA-2024-2254
OPENSUSE-SU-2024:14280-1
OPENSUSE-SU-2024_3110-1
OPENSUSE-SU-2026:11467-1
PYSEC-2026-1108
SUSE-SU-2024:3110-1
SUSE-SU-2024_3110-1
Found an issue in the description? Have something to add? Feel free to write us 👾