CVE-2024-27306 json
aiohttp vulnerable to XSS on index pages for static file handling
published 2024-04-18 2 y ago modified 2026-09-10 1 mo ago also EUVD-2024-1143 , GHSA-7gpw-8wmc-pm8g , PYSEC-2026-1102
- cvss
- 6.1
- version 3.1, CNA
- cisa kev
- Not listed
- not in CISA's catalog
- epss
- 0.7%
- EPSS 0.7% chance of exploitation in 30 days, percentile 52%
- public exploits
- 0
- none known
Summary
aiohttp is an asynchronous HTTP client/server framework for asyncio and Python. A XSS vulnerability exists on index pages for static file handling. This vulnerability is fixed in 3.9.4. We have always recommended using a reverse proxy server (e.g. nginx) for serving static files. Users following the recommendation are unaffected. Other users can disable `show_index` if unable to upgrade.
Patch / fix
- pypi aiohttp 3.9.4
- aiohttp aiohttp 3.9.4
- python-aiohttp Debian 14, Debian 13 3.9.5-1
debian advisories DEBIAN-CVE-2024-27306
- python-aiohttp Ubuntu Pro 18.04 LTS 3.0.1-1ubuntu0.1~esm5
- python-aiohttp Ubuntu Pro 22.04 LTS 3.8.1-4ubuntu0.2+esm1
- python-aiohttp Ubuntu Pro 24.04 LTS 3.9.1-1ubuntu0.1+esm1
ubuntu advisories UBUNTU-CVE-2024-27306
Ubuntu security data © Canonical Ltd., from https://github.com/canonical/ubuntu-security-notices via OSV; changed: normalised to fixed package versions per release. CC BY-SA 4.0
- python-django rhui 4 4.2.15-1.el8ui
- python-grpcio rhui 4 1.65.4-1.el8ui
- python-jinja2 rhui 4 3.1.4-1.el8ui
- python-aiohttp rhui 4 3.9.4-1.el8ui
- python-gunicorn rhui 4 22.0.0-1.0.1.el8ui
- python-requests rhui 4 2.32.3-2.el8ui
- python-sqlparse rhui 4 0.5.0-1.el8ui
- python3.11-django rhui 4 4.2.15-1.el8ui
red hat advisories RHSA-2025:1335RHSA-2024:3781RHSA-2024:5662
- python-aiohttp SLE Module for Public Cloud 15 SP6, SLE Module for Public Cloud 15 SP5, SLE Module for Public Cloud 15 SP4 +3 more 3.6.0-150100.3.24.1
- python-aiohttp SLE Module for Python 3 15 SP6, SLE Module for Python 3 15 SP5, SLE Module for Public Cloud 15 SP4 +2 more 3.9.3-150400.10.21.1
suse advisories SUSE-SU-2024:4396-1SUSE-SU-2024:1866-1
- python-aiohttp openSUSE Tumbleweed 3.14.3-1.1
- python-aiohttp openSUSE Tumbleweed 3.9.5-2.1
opensuse advisories openSUSE-SU-2026:11467-1openSUSE-SU-2024:13965-1
- github.com/aio-libs/aiohttp@2833552 commit
- github.com/aio-libs/aiohttp#8319 pull request
- github.com/aio-libs/aiohttp#8319 pull request
Vendor advisories
What the vendors themselves say about their products: affected, fixed or not affected, and what to do.
red hat product security vex CVE-2024-27306 updated cvss 6.1
aiohttp: XSS on index pages for static file handling
-
Red Hat Ansible Automation Platform 1.2 ansible-toweraffected: no fix planned “Out of support scope”
-
Red Hat Ansible Automation Platform 2.4 for RHEL 8 python39-aiohttp 3.9.5-1.el8ap, python3x-aiohttp 3.9.5-1.el8ap Red Hat Ansible Automation Platform 2.4 for RHEL 9 python-aiohttp 3.9.5-1.el9ap, python3-aiohttp 3.9.5-1.el9apfixed: vendor fix RHSA-2024:3781
-
Red Hat Satellite 6.15 for RHEL 8 python-aiohttp 3.9.4-1.el8pc, python3.11-aiohttp 3.9.4-1.el8pcfixed: vendor fix RHSA-2024:5662
-
Red Hat RHUI 4 for RHEL 8 python-aiohttp 3.9.4-1.el8ui, python3.11-aiohttp 3.9.4-1.el8uifixed: vendor fix RHSA-2025:1335
-
Red Hat Ansible Automation Platform 2 automation-controller, ansible-automation-platform-25/ee-minimal-rhel8, ansible-automation-platform-24/ee-supported-rhel9, ansible-automation-platform-24/ansible-builder-rhel9, ansible-automation-platform-25/ee-cloud-services-rhel9, ansible-automation-platform-24/ee-dellemc-openmanage-rhel8, +1 more Red Hat Ansible Automation Platform 2.4 for RHEL 8 receptor 1.4.8-1.el8ap, python39-idna 3.7-1.el8ap, python3x-idna 3.7-1.el8ap, receptorctl 1.4.8-1.el8ap, ansible-core 2.15.11-1.el8ap, ansible-test 2.15.11-1.el8ap, +37 more Red Hat Ansible Automation Platform 2.4 for RHEL 9 receptor 1.4.8-1.el9ap, python-idna 3.7-1.el9ap, python3-idna 3.7-1.el9ap, receptorctl 1.4.8-1.el9ap, python-black 22.8.0-2.el9ap, python-jinja2 3.1.4-1.el9ap, +37 more Red Hat Satellite 6.15 for RHEL 8 libcomps 0.1.21-1.el8pc, foreman 3.9.1.9-1.el8sat, satellite 6.15.3-1.el8sat, python-jinja2 3.1.4-1.el8pc, foreman-cli 3.9.1.9-1.el8sat, foreman-ec2 3.9.1.9-1.el8sat, +31 more Red Hat RHUI 4 for RHEL 8 libcomps 0.1.21-1.el8ui, python-jq 1.6.0-4.el8ui, python-xlrd 2.0.1-9.el8ui, python-xlwt 1.3.0-7.el8ui, python-yarl 1.8.2-5.el8ui, python-zipp 3.4.0-8.el8ui, +196 morenot affected: vulnerable code not present
Red Hat CSAF VEX © Red Hat, Inc., from https://security.access.redhat.com/data/csaf/v2/vex/; changed: reduced to product statuses and remediations. CC BY 4.0 · csaf
CISA SSVC
- Exploitation
- none
- Automatable
- no
- Technical impact
- partial
- Assessed
- 2 y ago
Exploit prediction
0.67% chance of exploitation in the next 30 days, higher than 52% of all scored CVEs (FIRST EPSS, 2026-11-08).
CVSS scores
| assigned by | version | score | vector |
|---|---|---|---|
| CNA | 3.1 | 6.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N |
| GitHub | 3.1 | 6.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N |
| OSV | 3.1 | 6.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N |
Affected packages
| ecosystem | package | affected | fixed in |
|---|---|---|---|
| pypi | aiohttp | <3.9.4 |
3.9.4 |
Affected products
- aio-libs aiohttp
- aiohttp aiohttp
Classification
References
-
github.com
/aio-libs/aiohttp/pull/8319
web, issue-tracking
-
github.com
/aio-libs/aiohttp/commit/28335525d1eac015a7e7584137678cbb6ff19397
web, patch
-
github.com
/aio-libs/aiohttp/pull/8319/files
web
-
github.com
/aio-libs/aiohttp/security/advisories/GHSA-7gpw-8wmc-pm8g
web, vendor-advisory
-
lists.fedoraproject.org
/archives/list/package-announce@lists.fedoraproject.org/message/2EXRGTN2WG7VZLUZ7WOXU5GQJKCPPHKP/
mailing-list
-
lists.fedoraproject.org
/archives/list/package-announce@lists.fedoraproject.org/message/NWEI6NIHZ3G7DURDZVMRK7ZEFC2BTD3U/
mailing-list
-
lists.fedoraproject.org
/archives/list/package-announce@lists.fedoraproject.org/message/ZIVBMPEY7WWOFMC3CWXFBRQPFECV4SW3/
mailing-list
-
lists.debian.org
/debian-lts-announce/2025/02/msg00002.html
web
-
nvd.nist.gov
/vuln/detail/CVE-2024-27306
advisory
-
github.com
/aio-libs/aiohttp
package
-
lists.fedoraproject.org
/archives/list/package-announce@lists.fedoraproject.org/message/2EXRGTN2WG7VZLUZ7WOXU5GQJKCPPHKP
web
-
lists.fedoraproject.org
/archives/list/package-announce@lists.fedoraproject.org/message/NWEI6NIHZ3G7DURDZVMRK7ZEFC2BTD3U
web
-
lists.fedoraproject.org
/archives/list/package-announce@lists.fedoraproject.org/message/ZIVBMPEY7WWOFMC3CWXFBRQPFECV4SW3
web
-
pypi.org
/project/aiohttp
package
-
github.com
/advisories/GHSA-7gpw-8wmc-pm8g
advisory
Sources
- CVE List CVE-2024-27306
- GitHub Advisory GHSA-7gpw-8wmc-pm8g
- NVD CVE-2024-27306
- OSV PYSEC-2026-1102
Fencer Vulns keeps one entry per vulnerability: the CVE id wins, then GHSA, and records that alias each other are merged, except that two CVEs always keep separate entries. The same data is available as JSON.
CPEs and fixed versions use Anchore's correction of NVD's data: Added CPE configurations because not yet analyzed by NVD.