CVE-2024-27306
aiohttp vulnerable to XSS on index pages for static file handling
Description
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.
INFO
Published Date :
April 18, 2024, 3:15 p.m.
Last Modified :
Nov. 3, 2025, 9:16 p.m.
Remotely Exploit :
Yes !
Source :
[email protected]
CVSS Scores
| Score | Version | Severity | Vector | Exploitability Score | Impact Score | Source | 
|---|---|---|---|---|---|---|
| CVSS 3.1 | MEDIUM | [email protected] | 
Solution
- Upgrade aiohttp to version 3.9.4 or later.
 - Update the affected python3-aiohttp package.
 - Update the affected python-aiohttp package.
 - Consider using a reverse proxy server.
 
Public PoC/Exploit Available at Github
                                            CVE-2024-27306 has a 2 public
                                            PoC/Exploit available at Github.
                                            Go to the Public Exploits tab to see the list.
                                        
References to Advisories, Solutions, and Tools
                                            Here, you will find a curated list of external links that provide in-depth
                                            information, practical solutions, and valuable tools related to
                                            CVE-2024-27306.
                                        
CWE - Common Weakness Enumeration
            While CVE identifies
            specific instances of vulnerabilities, CWE categorizes the common flaws or
            weaknesses that can lead to vulnerabilities. CVE-2024-27306 is
            associated with the following CWEs:
        
Common Attack Pattern Enumeration and Classification (CAPEC)
Common Attack Pattern Enumeration and Classification
            (CAPEC)
            stores attack patterns, which are descriptions of the common attributes and
            approaches employed by adversaries to exploit the CVE-2024-27306
            weaknesses.
We scan GitHub repositories to detect new proof-of-concept exploits. Following list is a collection of public exploits and proof-of-concepts, which have been published on GitHub (sorted by the most recently updated).
None
Python
Radisys Vulnerability Assessment and Management System
Rust Makefile
Results are limited to the first 15 repositories due to potential performance issues.
			The following list is the news that have been mention
			CVE-2024-27306 vulnerability anywhere in the article.
		
                The following table lists the changes that have been made to the
                CVE-2024-27306 vulnerability over time.
            
Vulnerability history details can be useful for understanding the evolution of a vulnerability, and for identifying the most recent changes that may impact the vulnerability's severity, exploitability, or other characteristics.
- 
                            
CVE Modified by af854a3a-2127-422b-91ae-364da2661108
Nov. 03, 2025
Action Type Old Value New Value Added Reference https://lists.debian.org/debian-lts-announce/2025/02/msg00002.html  - 
                            
Initial Analysis by [email protected]
Aug. 21, 2025
Action Type Old Value New Value Added CPE Configuration OR *cpe:2.3:a:aiohttp:aiohttp:*:*:*:*:*:*:*:* versions up to (excluding) 3.9.4 Added CPE Configuration OR *cpe:2.3:o:fedoraproject:fedora:38:*:*:*:*:*:*:* *cpe:2.3:o:fedoraproject:fedora:39:*:*:*:*:*:*:* *cpe:2.3:o:fedoraproject:fedora:40:*:*:*:*:*:*:* Added Reference Type CVE: https://github.com/aio-libs/aiohttp/commit/28335525d1eac015a7e7584137678cbb6ff19397 Types: Patch Added Reference Type GitHub, Inc.: https://github.com/aio-libs/aiohttp/commit/28335525d1eac015a7e7584137678cbb6ff19397 Types: Patch Added Reference Type CVE: https://github.com/aio-libs/aiohttp/pull/8319 Types: Issue Tracking Added Reference Type GitHub, Inc.: https://github.com/aio-libs/aiohttp/pull/8319 Types: Issue Tracking Added Reference Type CVE: https://github.com/aio-libs/aiohttp/security/advisories/GHSA-7gpw-8wmc-pm8g Types: Vendor Advisory Added Reference Type GitHub, Inc.: https://github.com/aio-libs/aiohttp/security/advisories/GHSA-7gpw-8wmc-pm8g Types: Vendor Advisory Added Reference Type CVE: https://lists.fedoraproject.org/archives/list/[email protected]/message/2EXRGTN2WG7VZLUZ7WOXU5GQJKCPPHKP/ Types: Mailing List Added Reference Type GitHub, Inc.: https://lists.fedoraproject.org/archives/list/[email protected]/message/2EXRGTN2WG7VZLUZ7WOXU5GQJKCPPHKP/ Types: Mailing List Added Reference Type CVE: https://lists.fedoraproject.org/archives/list/[email protected]/message/NWEI6NIHZ3G7DURDZVMRK7ZEFC2BTD3U/ Types: Mailing List Added Reference Type GitHub, Inc.: https://lists.fedoraproject.org/archives/list/[email protected]/message/NWEI6NIHZ3G7DURDZVMRK7ZEFC2BTD3U/ Types: Mailing List Added Reference Type CVE: https://lists.fedoraproject.org/archives/list/[email protected]/message/ZIVBMPEY7WWOFMC3CWXFBRQPFECV4SW3/ Types: Mailing List Added Reference Type GitHub, Inc.: https://lists.fedoraproject.org/archives/list/[email protected]/message/ZIVBMPEY7WWOFMC3CWXFBRQPFECV4SW3/ Types: Mailing List  - 
                            
CVE Modified by af854a3a-2127-422b-91ae-364da2661108
Nov. 21, 2024
Action Type Old Value New Value Added Reference https://github.com/aio-libs/aiohttp/commit/28335525d1eac015a7e7584137678cbb6ff19397 Added Reference https://github.com/aio-libs/aiohttp/pull/8319 Added Reference https://github.com/aio-libs/aiohttp/security/advisories/GHSA-7gpw-8wmc-pm8g Added Reference https://lists.fedoraproject.org/archives/list/[email protected]/message/2EXRGTN2WG7VZLUZ7WOXU5GQJKCPPHKP/ Added Reference https://lists.fedoraproject.org/archives/list/[email protected]/message/NWEI6NIHZ3G7DURDZVMRK7ZEFC2BTD3U/ Added Reference https://lists.fedoraproject.org/archives/list/[email protected]/message/ZIVBMPEY7WWOFMC3CWXFBRQPFECV4SW3/  - 
                            
CVE Modified by [email protected]
May. 14, 2024
Action Type Old Value New Value  - 
                            
CVE Modified by [email protected]
May. 02, 2024
Action Type Old Value New Value Added Reference GitHub, Inc. https://lists.fedoraproject.org/archives/list/[email protected]/message/2EXRGTN2WG7VZLUZ7WOXU5GQJKCPPHKP/ [No types assigned] Added Reference GitHub, Inc. https://lists.fedoraproject.org/archives/list/[email protected]/message/NWEI6NIHZ3G7DURDZVMRK7ZEFC2BTD3U/ [No types assigned] Added Reference GitHub, Inc. https://lists.fedoraproject.org/archives/list/[email protected]/message/ZIVBMPEY7WWOFMC3CWXFBRQPFECV4SW3/ [No types assigned]  - 
                            
CVE Received by [email protected]
Apr. 18, 2024
Action Type Old Value New Value Added Description 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. Added Reference GitHub, Inc. https://github.com/aio-libs/aiohttp/security/advisories/GHSA-7gpw-8wmc-pm8g [No types assigned] Added Reference GitHub, Inc. https://github.com/aio-libs/aiohttp/pull/8319 [No types assigned] Added Reference GitHub, Inc. https://github.com/aio-libs/aiohttp/commit/28335525d1eac015a7e7584137678cbb6ff19397 [No types assigned] Added CWE GitHub, Inc. CWE-79 Added CWE GitHub, Inc. CWE-80 Added CVSS V3.1 GitHub, Inc. AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N