PHP2Shell: Read our blog on the critical RCE vulnerabilities affecting 70% of the Internet

CVE-2024-27306: 
Wolfi vulnerability analysis and mitigation

Overview

A cross-site scripting (XSS) vulnerability was discovered in aiohttp, an asynchronous HTTP client/server framework for asyncio and Python. The vulnerability (CVE-2024-27306) exists on index pages for static file handling when using the show_index feature. The issue was fixed in version 3.9.4 (GitHub Advisory).

Technical details

The vulnerability occurs when using web.static(..., show_index=True), where the resulting index pages do not properly escape file names. If users can upload files with arbitrary filenames to the static directory, the server becomes vulnerable to XSS attacks. The issue has been assigned a CVSS v3.1 base score of 6.1 MEDIUM (Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N) (NVD).

Impact

If exploited, this vulnerability could allow attackers to execute arbitrary JavaScript code in the context of users' browsers when they view directory listings of static files. This could potentially lead to theft of session cookies, credentials, or other sensitive information from users viewing the affected pages (GitHub Advisory).

Exploitability

The vulnerability can be exploited by uploading files with malicious filenames containing JavaScript code to a directory served by aiohttp with show_index enabled. The attack requires user interaction as victims need to visit the affected directory listing page (GitHub Advisory).

Mitigation and workarounds

Users are recommended to upgrade to aiohttp version 3.9.4 or later which contains the fix. For those unable to upgrade immediately, there are two workarounds: 1) Use a reverse proxy server (e.g., nginx) for serving static files, which has always been the recommended approach, or 2) Disable the show_index feature if not required (GitHub Advisory).

Community reactions

The vulnerability has been acknowledged and addressed by multiple Linux distributions including Fedora, which has released security updates for versions 38, 39, and 40 to address this issue (Fedora Update).

Additional resources

Linux Distribution fix status

Fix availability across major Linux distributions and their releases.

Debian

Fixed

bookworm

python-aiohttp

Affected

bullseye

python-aiohttp: 3.7.4-1+deb11u1

Fixed

sid

python-aiohttp: 3.9.5-1

Fixed

trixie

python-aiohttp: 3.9.5-1

Fixed

Source: This report was generated using AI

Related Wolfi vulnerabilities:

CVE ID

Severity

Score

Technologies

Component name

CISA KEV exploit

Has fix

Published date

CVE-2026-115365HIGH7.5
  • Wolfi logoWolfi
  • openbao
NoNoOct 22, 2026
CVE-2026-115369LOW2.1
  • Wolfi logoWolfi
  • openbao
NoNoOct 22, 2026
CVE-2026-115364LOW2.1
  • Wolfi logoWolfi
  • openbao
NoYesOct 22, 2026
CVE-2026-115363LOW2.1
  • Wolfi logoWolfi
  • openbao
NoNoOct 22, 2026
CVE-2026-115366LOW2
  • Wolfi logoWolfi
  • openbao
NoNoOct 22, 2026

Free Vulnerability Assessment

Benchmark your Cloud Security Posture

Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.

Request assessment

Get a personalized demo

Ready to see Wiz in action?

"Best User Experience I have ever seen, provides full visibility to cloud workloads."
David EstlickCISO
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
Adam FletcherChief Security Officer
"We know that if Wiz identifies something as critical, it actually is."
Greg PoniatowskiHead of Threat and Vulnerability Management