Join the Cyber Forum: Threat Intel on May 12, 2026 to learn how AI is reshaping threat defense.Join the Virtual Cyber Forum: Threat IntelRegister Now
Experiencing a Breach?Blog
Get StartedContact Us
SentinelOne
  • Platform
    Platform Overview
    • Singularity Platform
      Welcome to Integrated Enterprise Security
    • AI for Security
      Leading the Way in AI-Powered Security Solutions
    • Securing AI
      Accelerate AI Adoption with Secure AI Tools, Apps, and Agents.
    • How It Works
      The Singularity XDR Difference
    • Singularity Marketplace
      One-Click Integrations to Unlock the Power of XDR
    • Pricing & Packaging
      Comparisons and Guidance at a Glance
    Data & AI
    • Purple AI
      Accelerate SecOps with Generative AI
    • Singularity Hyperautomation
      Easily Automate Security Processes
    • AI-SIEM
      The AI SIEM for the Autonomous SOC
    • AI Data Pipelines
      Security Data Pipeline for AI SIEM and Data Optimization
    • Singularity Data Lake
      AI-Powered, Unified Data Lake
    • Singularity Data Lake for Log Analytics
      Seamlessly Ingest Data from On-Prem, Cloud or Hybrid Environments
    Endpoint Security
    • Singularity Endpoint
      Autonomous Prevention, Detection, and Response
    • Singularity XDR
      Native & Open Protection, Detection, and Response
    • Singularity RemoteOps Forensics
      Orchestrate Forensics at Scale
    • Singularity Threat Intelligence
      Comprehensive Adversary Intelligence
    • Singularity Vulnerability Management
      Application & OS Vulnerability Management
    • Singularity Identity
      Identity Threat Detection and Response
    Cloud Security
    • Singularity Cloud Security
      Block Attacks with an AI-Powered CNAPP
    • Singularity Cloud Native Security
      Secure Cloud and Development Resources
    • Singularity Cloud Workload Security
      Real-Time Cloud Workload Protection Platform
    • Singularity Cloud Data Security
      AI-Powered Threat Detection for Cloud Storage
    • Singularity Cloud Security Posture Management
      Detect and Remediate Cloud Misconfigurations
    Securing AI
    • Prompt Security
      Secure AI Tools Across Your Enterprise
  • Why SentinelOne?
    Why SentinelOne?
    • Why SentinelOne?
      Cybersecurity Built for What’s Next
    • Our Customers
      Trusted by the World’s Leading Enterprises
    • Industry Recognition
      Tested and Proven by the Experts
    • About Us
      The Industry Leader in Autonomous Cybersecurity
    Compare SentinelOne
    • Arctic Wolf
    • Broadcom
    • CrowdStrike
    • Cybereason
    • Microsoft
    • Palo Alto Networks
    • Sophos
    • Splunk
    • Trellix
    • Trend Micro
    • Wiz
    Verticals
    • Energy
    • Federal Government
    • Finance
    • Healthcare
    • Higher Education
    • K-12 Education
    • Manufacturing
    • Retail
    • State and Local Government
  • Services
    Managed Services
    • Managed Services Overview
      Wayfinder Threat Detection & Response
    • Threat Hunting
      World-Class Expertise and Threat Intelligence
    • Managed Detection & Response
      24/7/365 Expert MDR Across Your Entire Environment
    • Incident Readiness & Response
      DFIR, Breach Readiness, & Compromise Assessments
    Support, Deployment, & Health
    • Technical Account Management
      Customer Success with Personalized Service
    • SentinelOne GO
      Guided Onboarding & Deployment Advisory
    • SentinelOne University
      Live and On-Demand Training
    • Services Overview
      Comprehensive Solutions for Seamless Security Operations
    • SentinelOne Community
      Community Login
  • Partners
    Our Network
    • MSSP Partners
      Succeed Faster with SentinelOne
    • Singularity Marketplace
      Extend the Power of S1 Technology
    • Cyber Risk Partners
      Enlist Pro Response and Advisory Teams
    • Technology Alliances
      Integrated, Enterprise-Scale Solutions
    • SentinelOne for AWS
      Hosted in AWS Regions Around the World
    • Channel Partners
      Deliver the Right Solutions, Together
    • SentinelOne for Google Cloud
      Unified, Autonomous Security Giving Defenders the Advantage at Global Scale
    • Partner Locator
      Your Go-to Source for Our Top Partners in Your Region
    Partner Portal→
  • Resources
    Resource Center
    • Case Studies
    • Data Sheets
    • eBooks
    • Reports
    • Videos
    • Webinars
    • Whitepapers
    • Events
    View All Resources→
    Blog
    • Feature Spotlight
    • For CISO/CIO
    • From the Front Lines
    • Identity
    • Cloud
    • macOS
    • SentinelOne Blog
    Blog→
    Tech Resources
    • SentinelLABS
    • Ransomware Anthology
    • Cybersecurity 101
  • About
    About SentinelOne
    • About SentinelOne
      The Industry Leader in Cybersecurity
    • Investor Relations
      Financial Information & Events
    • SentinelLABS
      Threat Research for the Modern Threat Hunter
    • Careers
      The Latest Job Opportunities
    • Press & News
      Company Announcements
    • Cybersecurity Blog
      The Latest Cybersecurity Threats, News, & More
    • FAQ
      Get Answers to Our Most Frequently Asked Questions
    • DataSet
      The Live Data Platform
    • S Foundation
      Securing a Safer Future for All
    • S Ventures
      Investing in the Next Generation of Security, Data and AI
  • Pricing
Get StartedContact Us
CVE Vulnerability Database
Vulnerability Database/CVE-2024-42367

CVE-2024-42367: Aiohttp Path Traversal Vulnerability

CVE-2024-42367 is a path traversal vulnerability in Aiohttp affecting static routes with compressed file variants. Attackers can traverse outside the root directory via symbolic links. This article covers technical details, affected versions, impact, and mitigation strategies.

Updated: January 22, 2026

CVE-2024-42367 Overview

CVE-2024-42367 is a path traversal vulnerability affecting the aiohttp asynchronous HTTP client/server framework for asyncio and Python. In versions on the 3.10 branch prior to version 3.10.2, static routes containing 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) by resolving the requested URL to an absolute path and checking that path relative to the root. However, these security checks are not performed when looking for compressed variants in the FileResponse class. Symbolic links are then automatically followed when performing Path.stat() and Path.open() operations to send the file, enabling attackers to access files outside the intended root directory.

Critical Impact

Attackers can bypass static file serving protections to read sensitive files outside the web root directory by exploiting symbolic links in compressed file variants, potentially exposing configuration files, credentials, or other sensitive data.

Affected Products

  • aiohttp versions 3.10.0 to 3.10.1 (3.10 branch prior to 3.10.2)

Discovery Timeline

  • 2024-08-12 - CVE-2024-42367 published to NVD
  • 2025-08-19 - Last updated in NVD database

Technical Details for CVE-2024-42367

Vulnerability Analysis

This path traversal vulnerability exists due to an inconsistency in how aiohttp handles security checks for static file serving versus compressed file variants. When a request is made for a static file, aiohttp properly validates that the resolved path remains within the configured root directory when follow_symlinks=False. However, when the framework searches for pre-compressed variants of the requested file (with .gz or .br extensions), it bypasses these path validation checks entirely.

The vulnerable code path is in the FileResponse class, specifically around line 177 of web_fileresponse.py. When the server checks for compressed variants, it constructs the path by simply appending .gz or .br to the original file path without performing the same symlink resolution and path containment checks that are applied to the original request.

Root Cause

The root cause is a missing security check in the compressed file variant lookup logic within the FileResponse class. While the URL dispatcher at web_urldispatcher.py line 674 properly validates paths against the root directory, this validation is not replicated when the FileResponse class subsequently checks for .gz or .br compressed variants of the file.

When the Path.stat() and Path.open() operations are called on these compressed variant paths, Python automatically follows any symbolic links encountered. This allows an attacker who can create a symbolic link file with a .gz or .br extension pointing outside the root directory to bypass the follow_symlinks=False protection.

Attack Vector

The attack requires an attacker to have the ability to create symbolic links within the static file directory (or have write access to place malicious symlinks). The attack proceeds as follows:

  1. An attacker creates a symbolic link with a .gz or .br extension that points to a sensitive file outside the web root (e.g., /etc/passwd)
  2. The attacker requests the original filename (without the compressed extension) via HTTP
  3. aiohttp validates the original request path correctly
  4. aiohttp then checks for compressed variants by appending .gz or .br to the path
  5. The compressed variant check finds the malicious symbolic link and follows it without path validation
  6. The contents of the sensitive file are returned to the attacker

This vulnerability is classified as CWE-61 (UNIX Symbolic Link Following), as the core issue stems from improper handling of symbolic links during file operations.

Detection Methods for CVE-2024-42367

Indicators of Compromise

  • Unusual HTTP requests for static files that result in serving content from outside the configured static root directory
  • Presence of unexpected symbolic links with .gz or .br extensions in static file directories
  • Web server logs showing access to compressed file variants that don't correspond to legitimate compressed assets
  • File access audit logs indicating reads of sensitive system files via the aiohttp process

Detection Strategies

  • Implement file integrity monitoring on static file directories to detect creation of unauthorized symbolic links
  • Monitor web server access logs for patterns of requests probing for compressed file variants
  • Deploy application-level logging to track which files are actually being served by the FileResponse class
  • Use security scanning tools to identify symbolic links in static content directories that point outside the web root

Monitoring Recommendations

  • Enable comprehensive audit logging for file system operations performed by the aiohttp application process
  • Configure alerts for any new symbolic link creation within static file serving directories
  • Implement anomaly detection for requests that result in file access outside expected directories
  • Regularly scan static content directories for suspicious symbolic links as part of security hygiene

How to Mitigate CVE-2024-42367

Immediate Actions Required

  • Upgrade aiohttp to version 3.10.2 or later immediately
  • Audit all static file directories for unexpected symbolic links, especially those with .gz or .br extensions
  • Remove any suspicious symbolic links discovered during the audit
  • Review file system permissions to restrict who can create files in static content directories

Patch Information

The aiohttp development team has addressed this vulnerability in version 3.10.2. The fix ensures that path validation checks are performed consistently for both original files and their compressed variants. The security patch is available via commit ce2e9758814527589b10759a20783fb03b98339f, with additional details in pull request #8653. The full security advisory is available at the GitHub Security Advisory GHSA-jwhx-xcg6-8xhj.

Workarounds

  • If upgrading is not immediately possible, ensure that no symbolic links exist within static file directories, particularly those with .gz or .br extensions
  • Restrict file system permissions on static content directories to prevent creation of symbolic links by untrusted processes
  • Disable serving of pre-compressed file variants by not placing .gz or .br files in static directories until the patch is applied
  • Implement a reverse proxy or web application firewall rule to block requests for compressed variants if pre-compression is not actively used
bash
# Find and audit symbolic links in static directories
find /path/to/static/root -type l -name "*.gz" -o -type l -name "*.br"

# Upgrade aiohttp to patched version
pip install --upgrade aiohttp>=3.10.2

Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.

  • Vulnerability Details
  • TypePath Traversal

  • Vendor/TechAiohttp

  • SeverityMEDIUM

  • CVSS Score4.8

  • EPSS Probability0.35%

  • Known ExploitedNo
  • CVSS Vector
  • CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:L/I:L/A:N
  • Impact Assessment
  • ConfidentialityHigh
  • IntegrityNone
  • AvailabilityNone
  • CWE References
  • CWE-61
  • Technical References
  • GitHub Aiohttp File Response Code

  • GitHub Aiohttp URL Dispatcher Code

  • GitHub Aiohttp Pull Request #8653
  • Vendor Resources
  • GitHub Aiohttp Commit ce2e975

  • GitHub Security Advisory GHSA-jwhx-xcg6-8xhj
  • Related CVEs
  • CVE-2025-69226: AIOHTTP Path Traversal Vulnerability

  • CVE-2024-23334: Aiohttp Path Traversal Vulnerability

  • CVE-2026-34525: AIOHTTP Multiple Host Headers Vulnerability

  • CVE-2026-34520: AIOHTTP Information Disclosure Flaw
Default Legacy - Prefooter | Experience the World’s Most Advanced Cybersecurity Platform

Experience the World’s Most Advanced Cybersecurity Platform

See how our intelligent, autonomous cybersecurity platform can protect your organization now and into the future.

Try SentinelOne
  • Get Started
  • Get a Demo
  • Product Tour
  • Why SentinelOne
  • Pricing & Packaging
  • FAQ
  • Contact
  • Contact Us
  • Customer Support
  • SentinelOne Status
  • Language
  • Platform
  • Singularity Platform
  • Singularity Endpoint
  • Singularity Cloud
  • Singularity AI-SIEM
  • Singularity Identity
  • Singularity Marketplace
  • Purple AI
  • Services
  • Wayfinder TDR
  • SentinelOne GO
  • Technical Account Management
  • Support Services
  • Verticals
  • Energy
  • Federal Government
  • Finance
  • Healthcare
  • Higher Education
  • K-12 Education
  • Manufacturing
  • Retail
  • State and Local Government
  • Cybersecurity for SMB
  • Resources
  • Blog
  • Labs
  • Case Studies
  • Videos
  • Product Tours
  • Events
  • Cybersecurity 101
  • eBooks
  • Webinars
  • Whitepapers
  • Press
  • News
  • Ransomware Anthology
  • Company
  • About Us
  • Our Customers
  • Careers
  • Partners
  • Legal & Compliance
  • Security & Compliance
  • Investor Relations
  • S Foundation
  • S Ventures

©2026 SentinelOne, All Rights Reserved.

Privacy Notice Terms of Use

English