cve.bz

CVE-2024-42367 aiohttp aiohttp: UNIX Symbolic Link (Symlink) Following

4.8 mediumEPSS 0.7%Fix available

Medium (4.8) in aiohttp aiohttp. EPSS 0.7% estimated probability of exploitation activity in the next 30 days. Fixed in aiohttp 3.10.2.

On this page
aiohttp is an asynchronous HTTP client/server framework for asyncio and Python. In versions on the 3.10 branch prior to version 3.10.2, static routes which contain files with compressed variants (`.gz` or `.br` extension) are vulnerable to path traversal outside the root directory if those variants are symbolic links. The server protects static routes from path traversal outside the root directory when `follow_symlinks=False` (default). It does this by resolving the requested URL to an absolute path and then checking that path relative to the root. However, these checks are not performed when looking for compressed variants in the `FileResponse` class, and symbolic links are then automatically followed when performing the `Path.stat()` and `Path.open()` to send the file. Version 3.10.2 contains a patch for the issue.

Severity

CVSS 3.1

4.8 medium
CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:L/I:L/A:N
EPSS
0.7% (unchanged from 0.7% a week ago; 0.7% 30 days ago) estimated probability of exploitation activity in the next 30 days; 52nd percentile. Scored 2026-11-24. A forecast for this CVE across the internet, not for your own systems.
CISA's assessment (SSVC)
Exploitation: none · Automatable: no · Technical impact: partial, assessed 2024-08-09. From CISA's Vulnrichment in the CVE List: whether it is exploited, whether exploiting it can be automated, and how much control it gives.
CWE
CWE-61 UNIX Symbolic Link (Symlink) Following
OWASP Top 10
A01:2025 Broken Access Control
Published
Modified
NVD analysis
Analyzed
Record from
the NVD, synced

Fix and patched versions

Ask an AI about this CVE

Show the promptExplain CVE-2024-42367 for an engineer deciding whether to act. Use https://cve.bz/api/public/cves/CVE-2024-42367?via=ask-ai-copy and https://cve.bz/cve/CVE-2024-42367?via=ask-ai-copy as the source of truth: what is affected and which versions fix it, whether it is in CISA KEV, public exploits, and its EPSS (an internet-wide 30-day estimate of exploitation activity, not a forecast for my systems). If they give no fixed versions, use the CVE record https://cveawg.mitre.org/api/cve/CVE-2024-42367 or the vendor advisory, not third-party mirrors. Tell me how to check whether I am affected and how to verify a fix. Cite the sources and say where they are uncertain.

Opens a third-party assistant; its answer is its own, not cve.bz's. The prompt holds only this CVE's id and public links.

Affected

Versions

From the NVD's CPE matches.

ProductAffected
aiohttp:aiohttpfrom 3.10.0 before 3.10.2

Packages (OSV)

AdvisoryEcosystemPackageAffectedFixed in
GHSA-jwhx-xcg6-8xhjPyPIaiohttp>=3.10.0b1 <3.10.23.10.2
PYSEC-2026-1108PyPIaiohttp>=3.10.0b1 <3.10.23.10.2

Linux distributions

DistributionReleasePackageFixed inAdvisory
Debian12python-aiohttpno fix listedDEBIAN-CVE-2024-42367
Debian13, 14python-aiohttp3.10.3-2DEBIAN-CVE-2024-42367
SUSELinux Enterprise Module for Public Cloud 15 SP4, Linux Enterprise Module for Python 3 15 SP5, Linux Enterprise Module for Python 3 15 SP6python-aiohttp3.9.3-150400.10.24.1SUSE-SU-2024:3110-1
openSUSELeap 15.5, Leap 15.6python-aiohttp3.9.3-150400.10.24.1SUSE-SU-2024:3110-1
openSUSETumbleweedpython-aiohttp3.10.5-1.1openSUSE-SU-2024:14280-1
openSUSETumbleweedpython-aiohttp3.14.3-1.1openSUSE-SU-2026:11467-1
Azure Linux2python-aiohttpno fix listedAZL-47754
Azure Linux3python-aiohttpno fix listedAZL-47763

From the distributions' data via OSV.dev: the Debian Security Tracker; SUSE security data, CC BY 4.0; Microsoft's Azure Linux vulnerability data, MIT. Modified: reformatted and linked to CVE records. Credits. On the distributions' own pages: Debian · SUSE · openSUSE.

Red Hat

Red Hat rates this Low.

ProductPackageStateAdvisory
OpenShift Lightspeedopenshift-lightspeed-beta/lightspeed-service-api-rhel9Under investigation
Red Hat Ansible Automation Platform 1.2ansible-towerUnder investigation
Red Hat Ansible Automation Platform 2ansible-automation-platform-24/ee-dellemc-openmanage-rhel8Under investigation
Red Hat Ansible Automation Platform 2ansible-automation-platform-25/lightspeed-rhel8Under investigation
Red Hat Ansible Automation Platform 2ansible-automation-platform-25/platform-resource-runner-rhel8Under investigation
Red Hat Ansible Automation Platform 2automation-controllerUnder investigation
Red Hat Ansible Automation Platform 2python-aiohttpUnder investigation
Red Hat Satellite 6python-aiohttpUnder investigation
Red Hat Satellite 6satellite-capsule:el8/python-aiohttpUnder investigation
Red Hat Satellite 6satellite:el8/python-aiohttpUnder investigation
Red Hat Update Infrastructure 4 for Cloud Providerspython-aiohttpUnder investigation

Contains Red Hat Security Data © Red Hat, Inc., licensed under CC BY 4.0. Source: https://access.redhat.com/security/data. Modified: reformatted. Red Hat's page for CVE-2024-42367.

Attack patterns (CAPEC)

  • CAPEC-27 Leveraging Race Conditions via Symbolic Links Likelihood: Medium · Severity: High

The attack patterns MITRE's CAPEC relates to this record's weaknesses, as MITRE names them. Credits.

References

Check your stackJSON