PT-2024-29901 · Aiohttp+3 · Aiohttp+3

Steverep

·

Published

2024-08-08

·

Updated

2025-08-19

·

CVE-2024-42367

CVSS v4.0

6.3

Medium

VectorAV: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.

Exploit

Fix

Weakness Enumeration

Related Identifiers

AZL-47754
AZL-47763
BDU:2025-03462
CVE-2024-42367
GHSA-JWHX-XCG6-8XHJ
OESA-2024-2254
OPENSUSE-SU-2024:14280-1
OPENSUSE-SU-2024_3110-1
SUSE-SU-2024:3110-1
SUSE-SU-2024_3110-1

Affected Products

Debian
Red Os
Suse
Aiohttp