Bug 2275989 (CVE-2024-27306) - CVE-2024-27306 aiohttp: XSS on index pages for static file handling
Summary: CVE-2024-27306 aiohttp: XSS on index pages for static file handling
Keywords:
Status: NEW
Alias: CVE-2024-27306
Product: Security Response
Classification: Other
Component: vulnerability
Version: unspecified
Hardware: All
OS: Linux
medium
medium
Target Milestone: ---
Assignee: Product Security
QA Contact:
URL:
Whiteboard:
Depends On: 2275990 2275991 2275992
Blocks: 2275987
TreeView+ depends on / blocked
 
Reported: 2024-04-18 20:28 UTC by Robb Gatica
Modified: 2024-08-20 20:30 UTC (History)
45 users (show)

Fixed In Version: aiohttp 3.9.4
Doc Type: If docs needed, set a value
Doc Text:
A flaw was found in aiohttp, an asynchronous HTTP client/server framework for asyncio and Python. When using "web.static(..., show_index=True)", the resulting index pages do not escape file names. If users can upload files with arbitrary filenames to the static directory, the server is vulnerable to cross-site scripting (XSS) attacks.
Clone Of:
Environment:
Last Closed:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHSA-2024:3781 0 None None None 2024-06-10 18:37:50 UTC
Red Hat Product Errata RHSA-2024:5662 0 None None None 2024-08-20 20:30:46 UTC

Description Robb Gatica 2024-04-18 20:28:45 UTC
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.

https://github.com/aio-libs/aiohttp/commit/28335525d1eac015a7e7584137678cbb6ff19397
https://github.com/aio-libs/aiohttp/pull/8319
https://github.com/aio-libs/aiohttp/security/advisories/GHSA-7gpw-8wmc-pm8g

Comment 1 Robb Gatica 2024-04-18 20:37:27 UTC
Created python-aiohttp tracking bugs for this issue:

Affects: epel-all [bug 2275990]
Affects: fedora-all [bug 2275991]

Comment 4 errata-xmlrpc 2024-06-10 18:37:46 UTC
This issue has been addressed in the following products:

  Red Hat Ansible Automation Platform 2.4 for RHEL 9
  Red Hat Ansible Automation Platform 2.4 for RHEL 8

Via RHSA-2024:3781 https://access.redhat.com/errata/RHSA-2024:3781

Comment 6 errata-xmlrpc 2024-08-20 20:30:42 UTC
This issue has been addressed in the following products:

  Red Hat Satellite 6.15 for RHEL 8

Via RHSA-2024:5662 https://access.redhat.com/errata/RHSA-2024:5662


Note You need to log in before you can comment on or make changes to this bug.