Path traversal via symbolic links in aiohttp



Published: 2024-08-14
Risk High
Patch available YES
Number of vulnerabilities 1
CVE-ID CVE-2024-42367
CWE-ID CWE-61
Exploitation vector Network
Public exploit N/A
Vulnerable software
Subscribe
aiohttp
Other software / Other software solutions

Vendor aio-libs

Security Bulletin

This security bulletin contains one high risk vulnerability.

1) UNIX symbolic link following

EUVDB-ID: #VU96003

Risk: High

CVSSv3.1: 7.9 [CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N/E:U/RL:O/RC:C]

CVE-ID: CVE-2024-42367

CWE-ID: CWE-61 - UNIX Symbolic Link (Symlink) Following

Exploit availability: No

Description

The vulnerability allows a remote attacker to compromise the affected system.

The vulnerability exists due to a symlink following issue when handling static routes which contain files with compressed variants in the FileResponse class even when "follow_symlinks=False" is set. A remote attacker can pass a specially crafted file to the application and perform directory traversal attacks.

Mitigation

Install updates from vendor's website.

Vulnerable software versions

aiohttp: 3.0.0 - 3.10.1

External links

http://github.com/aio-libs/aiohttp/security/advisories/GHSA-jwhx-xcg6-8xhj
http://github.com/aio-libs/aiohttp/pull/8653
http://github.com/aio-libs/aiohttp/commit/ce2e9758814527589b10759a20783fb03b98339f
http://github.com/aio-libs/aiohttp/blob/e0ff5246e1d29b7710ab1a2bbc972b48169f1c05/aiohttp/web_fileresponse.py#L177
http://github.com/aio-libs/aiohttp/blob/e0ff5246e1d29b7710ab1a2bbc972b48169f1c05/aiohttp/web_urldispatcher.py#L674


Q & A

Can this vulnerability be exploited remotely?

Yes. This vulnerability can be exploited by a remote non-authenticated attacker via the Internet.

Is there known malware, which exploits this vulnerability?

No. We are not aware of malware exploiting this vulnerability.



###SIDEBAR###