CVE-2024-23334
aiohttp: follow_symlinks directory traversal vulnerability
Overview
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.
Source: OX vulnerability database
Severity
7.5 · HIGH
CVSS 3.1 base score, scored by NVD.
- Attack vector
- Network
- Attack complexity
- Low
- Privileges required
- None
- User interaction
- None
- Scope
- Unchanged
- Confidentiality
- High
- Integrity
- None
- Availability
- None
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N
Weakness: CWE-22
Affected packages · 3
| Ecosystem | Package | Vulnerable | Fixed in |
|---|---|---|---|
| PyPI | aiohttp | >=1.0.5, <3.9.2 | 3.9.2 |
| Seal PyPI | aiohttp | >=2.3.9+sp0, <2.3.9+sp999>=3.0.8+sp0, <3.0.8+sp999>=3.8.5+sp0, <3.8.5+sp999 | 2.3.9+sp9993.0.8+sp9993.8.5+sp999 |
| Seal PyPI | seal-aiohttp | >=2.3.9+sp1, <2.3.9+sp999>=3.0.8+sp1, <3.0.8+sp999>=3.8.5+sp1, <3.8.5+sp999 | 2.3.9+sp9993.0.8+sp9993.8.5+sp999 |
Open a package to see all its vulnerabilities.
Operating systems · 27 fixes
Red Hat 1 release · 1 package
| Release | Package | Fixed in |
|---|---|---|
| 7 | python-aiohttp +1 | affected |
SUSE Linux Enterprise 2 releases · 1 package
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| 15.4 | python311-aiohttp | 3.9.3-150400.10.14.1 | SUSE-SU-2024:0577-1 |
| 15.5 | python311-aiohttp | 3.9.3-150400.10.14.1 | SUSE-SU-2024:0577-1 |
alpine 4 releases · 1 package
| Release | Package | Fixed in |
|---|---|---|
| 3.22 | py3-aiohttp | 3.9.3-r0 |
| 3.23 | py3-aiohttp | 3.9.3-r0 |
| 3.24 | py3-aiohttp | 3.9.3-r0 |
| edge | py3-aiohttp | 3.9.3-r0 |
chainguard 1 release · 4 packages
| Release | Package | Fixed in |
|---|---|---|
| py3-13-scanner-test-libraries-aiohttp | 0.0.1-r1 | |
| py3-cassandra-medusa | 0.17.2-r1 | |
| checkov | 3.0.34-r1 | |
| py3-aiohttp | 3.9.3-r0 |
debian 5 releases · 1 package
| Release | Package | Fixed in |
|---|---|---|
| 10 | python-aiohttp | affected |
| 11 | python-aiohttp | 3.7.4-1+deb11u1 |
| 12 | python-aiohttp | 3.8.4-1+deb12u1 |
| 13 | python-aiohttp | 3.9.5-1 |
| 14 | python-aiohttp | 3.9.5-1 |
echo 1 release · 1 package
| Release | Package | Fixed in |
|---|---|---|
| python-aiohttp | 3.8.4-1+deb12u1 |
openSUSE 1 release · 2 packages
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Tumbleweed | python313-aiohttp +1 | 3.14.3-1.1 | openSUSE-SU-2026:11467-1 |
| Tumbleweed | python310-aiohttp +2 | 3.9.3-1.1 | openSUSE-SU-2024:13642-1 |
seal Red Hat 1 release · 1 package
| Release | Package | Fixed in |
|---|---|---|
| 7 | python-jinja2 +1 | 2.7.2-4.el7+sp999 |
ubuntu 4 releases · 1 package
| Release | Package | Fixed in |
|---|---|---|
| 18.04-ESM | python-aiohttp | 3.0.1-1ubuntu0.1~esm4 |
| 20.04-ESM | python-aiohttp | 3.6.2-1ubuntu1+esm3 |
| 22.04 | python-aiohttp | 3.8.1-4ubuntu0.2 |
| 24.04 | python-aiohttp | 3.9.1-1ubuntu0.1 |
wolfi 1 release · 3 packages
| Release | Package | Fixed in |
|---|---|---|
| py3-cassandra-medusa | 0.17.2-r1 | |
| checkov | 3.0.34-r1 | |
| py3-aiohttp | 3.9.3-r0 |
References
- access.redhat.com https://access.redhat.com/security/cve/CVE-2024-23334
- github.com https://github.com/aio-libs/aiohttp
- github.com https://github.com/aio-libs/aiohttp/commit/1c335944d6a8b1298baf179b7c0b3069f10c514b
- github.com https://github.com/aio-libs/aiohttp/pull/8079
- github.com https://github.com/aio-libs/aiohttp/pull/8079/files
- github.com https://github.com/aio-libs/aiohttp/security/advisories/GHSA-5h86-8mv2-jq9f
- github.com https://github.com/pypa/advisory-database/tree/main/vulns/aiohttp/PYSEC-2024-24.yaml
- lists.debian.org https://lists.debian.org/debian-lts-announce/2025/02/msg00002.html
- lists.fedoraproject.org https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/ICUOCFGTB25WUT336BZ4UNYLSZOUVKBD
- lists.fedoraproject.org https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/ICUOCFGTB25WUT336BZ4UNYLSZOUVKBD/
Show all 16 references
- lists.fedoraproject.org https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/XXWVZIVAYWEBHNRIILZVB3R3SDQNNAA7
- lists.fedoraproject.org https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/XXWVZIVAYWEBHNRIILZVB3R3SDQNNAA7/
- nvd.nist.gov https://nvd.nist.gov/vuln/detail/CVE-2024-23334
- ubuntu.com https://ubuntu.com/security/notices/USN-6991-1
- www.cve.org https://www.cve.org/CVERecord?id=CVE-2024-23334
- www.exploit-db.com https://www.exploit-db.com/exploits/52474
OX Radar and Response Center
Find threats in your stack.
OX Radar can check high-priority threats, like critical package CVEs, against your context.
Each incident is marked Detected or Not Detected with a remediation plan and proof all tracked in the Response Center.