CVE-2024-23334
aiohttp is vulnerable to directory traversal
描述
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.
如何修補 CVE-2024-23334
要修補 CVE-2024-23334,請將受影響套件升級到下列已修補版本。
- —升級至 3.7.4-1+deb11u1 或更新版本
- —升級至 3.9.2 或更新版本
- —升級至 1c335944d6a8b1298baf179b7c0b3069f10c514b 或更新版本
CVE-2024-23334 正在被利用嗎?
可能 — EPSS 為 76.9%,屬於高被利用機率區間,建議優先修補。
受影響套件(3)
- from 0, < 3.7.4-1+deb11u1
- >= 1.0.5, < 3.9.2
- from 0, < 1c335944d6a8b1298baf179b7c0b3069f10c514b | >= 1.0.5, < 3.9.2
CVSS 分數
| 來源 | 版本 | 嚴重程度 | 向量 |
|---|---|---|---|
| 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 |