The SentinelOne Annual Threat Report - A Defenders Guide from the FrontlinesThe SentinelOne Annual Threat ReportGet the Report
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
    • 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-23334

CVE-2024-23334: Aiohttp Path Traversal Vulnerability

CVE-2024-23334 is a path traversal vulnerability in Aiohttp that allows unauthorized access to arbitrary files when follow_symlinks is enabled. This post covers the technical details, affected versions, and mitigation.

Published: January 28, 2026

CVE-2024-23334 Overview

CVE-2024-23334 is a directory traversal vulnerability in aiohttp, an asynchronous HTTP client/server framework for asyncio and Python. When using aiohttp as a web server and configuring static routes, administrators must specify the root path for static files. The framework provides a follow_symlinks option to determine whether to follow symbolic links outside the static root directory. When follow_symlinks is set to True, there is no validation to check if reading a file is within the root directory. This can lead to directory traversal vulnerabilities, resulting in unauthorized access to arbitrary files on the system, even when symlinks are not present.

Critical Impact

Attackers can exploit this vulnerability to read arbitrary files on affected systems through path traversal sequences, potentially accessing sensitive configuration files, credentials, and other confidential data without authentication.

Affected Products

  • aiohttp versions prior to 3.9.2
  • Fedora 39 (with vulnerable aiohttp packages)
  • Any application using aiohttp with follow_symlinks=True in static route configuration

Discovery Timeline

  • 2024-01-29 - CVE-2024-23334 published to NVD
  • 2025-11-03 - Last updated in NVD database

Technical Details for CVE-2024-23334

Vulnerability Analysis

This directory traversal vulnerability (CWE-22) exists in aiohttp's static file serving functionality. The core issue is insufficient path validation when the follow_symlinks option is enabled. When an aiohttp server is configured to serve static files with follow_symlinks=True, the framework fails to properly canonicalize and validate file paths before serving content. This allows attackers to use path traversal sequences (such as ../) to escape the designated static root directory and access arbitrary files on the filesystem.

The vulnerability is particularly dangerous because it does not require the presence of actual symbolic links on the system—the path traversal attack works regardless of symlink presence. Any aiohttp-based web application serving static content with this configuration is susceptible to unauthorized file access.

Root Cause

The root cause is the absence of path canonicalization and boundary checking when follow_symlinks is enabled. The static file handler does not verify that the resolved file path remains within the configured static root directory before returning file contents to the client. This allows crafted requests containing directory traversal sequences to bypass the intended file access restrictions.

Attack Vector

The attack can be executed remotely over the network without authentication. An attacker sends HTTP requests to the static file endpoint with path traversal sequences embedded in the URL path. For example, requesting a path like /static/../../../etc/passwd could allow reading system files outside the intended static directory.

The exploitation is straightforward:

  1. Identify an aiohttp server serving static files with follow_symlinks=True
  2. Craft HTTP requests with path traversal sequences (e.g., ../) in the file path
  3. Access sensitive files such as /etc/passwd, application configuration files, or database credentials
  4. Multiple proof-of-concept exploits are publicly available demonstrating this attack

Detection Methods for CVE-2024-23334

Indicators of Compromise

  • HTTP requests containing path traversal sequences (../, ..%2f, %2e%2e/) in URL paths targeting static endpoints
  • Web server logs showing access attempts to sensitive system files like /etc/passwd, /etc/shadow, or application configuration files
  • Unusual file access patterns from the aiohttp process attempting to read files outside the static root directory
  • Error messages or responses indicating file path resolution issues

Detection Strategies

  • Implement web application firewall (WAF) rules to detect and block path traversal patterns in HTTP requests
  • Monitor aiohttp application logs for requests containing .. sequences or encoded variants
  • Deploy file integrity monitoring on sensitive system files to detect unauthorized read access
  • Use runtime application self-protection (RASP) solutions to detect path traversal attempts at the application layer

Monitoring Recommendations

  • Enable verbose logging on aiohttp static file handlers to capture all file access requests
  • Configure SIEM rules to alert on path traversal patterns in web server access logs
  • Monitor system audit logs for file access events from the aiohttp process outside expected directories
  • Establish baseline file access patterns and alert on anomalous requests to sensitive system paths

How to Mitigate CVE-2024-23334

Immediate Actions Required

  • Upgrade aiohttp to version 3.9.2 or later immediately
  • Disable follow_symlinks on all static route configurations as an immediate workaround
  • Deploy a reverse proxy (such as nginx or Apache) in front of aiohttp to handle static file serving with proper path validation
  • Audit all aiohttp deployments to identify instances using follow_symlinks=True

Patch Information

The vulnerability is fixed in aiohttp version 3.9.2. The fix implements proper path validation to ensure file access remains within the configured static root directory. Organizations should upgrade to this version or later. The security fix is available through the official GitHub commit and pull request #8079. Additional details are available in the GitHub Security Advisory (GHSA-5h86-8mv2-jq9f). Fedora and Debian have also released updated packages through their respective distribution channels.

Workarounds

  • Set follow_symlinks=False in all static route configurations to disable symlink following entirely
  • Place a reverse proxy such as nginx or Apache in front of aiohttp to serve static files with proper path sanitization
  • Implement custom middleware to validate and sanitize file paths before they reach the static file handler
  • Restrict file system permissions for the aiohttp process to limit accessible directories
bash
# Configuration example - Disable follow_symlinks in aiohttp static routes
# In your aiohttp application setup, ensure follow_symlinks is False:
# app.router.add_static('/static', path='static_files/', follow_symlinks=False)

# If using nginx as a reverse proxy, serve static files directly:
# location /static/ {
#     alias /var/www/app/static_files/;
#     internal;
# }

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

  • SeverityHIGH

  • CVSS Score7.5

  • EPSS Probability93.58%

  • Known ExploitedYes
  • CVSS Vector
  • CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N
  • Impact Assessment
  • ConfidentialityLow
  • IntegrityNone
  • AvailabilityNone
  • CWE References
  • CWE-22
  • Technical References
  • Fedora Package Announcement

  • Fedora Package Announcement

  • Debian LTS Announcement
  • Vendor Resources
  • GitHub Commit Details

  • GitHub Pull Request Update

  • GitHub Security Advisory
  • Related CVEs
  • CVE-2025-69226: AIOHTTP Path Traversal Vulnerability

  • CVE-2024-42367: 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