CVE-2024-23334
aiohttp is vulnerable to directory traversal
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.
How to fix CVE-2024-23334
To remediate CVE-2024-23334, upgrade the affected package to a fixed version below.
- —upgrade to 3.7.4-1+deb11u1 or later
- —upgrade to 3.9.2 or later
- —upgrade to 1c335944d6a8b1298baf179b7c0b3069f10c514b or later
Is CVE-2024-23334 being exploited?
Likely — EPSS is 93.6%, placing CVE-2024-23334 in the top tier of vulnerabilities by exploitation probability. Prioritise patching.
Affected packages (3)
- from 0, < 3.7.4-1+deb11u1
- >= 1.0.5, < 3.9.2
- from 0, < 1c335944d6a8b1298baf179b7c0b3069f10c514b | >= 1.0.5, < 3.9.2
CVSS scores
| Source | Version | Severity | Vector |
|---|---|---|---|
| osv | CVSS 4.0 | — | CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:N/VC:H/VI:N/VA:N/SC:N/SI:N/SA:N |
| osv | CVSS 3.1 | MEDIUM5.9 | CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:N/A:N |