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-2026-25645

CVE-2026-25645: Requests Library Path Traversal Vulnerability

CVE-2026-25645 is a path traversal vulnerability in the Requests HTTP library affecting applications using extract_zipped_paths(). Attackers can exploit predictable filenames to load malicious files. This article covers technical details, affected versions, impact, and mitigation strategies.

Published: March 27, 2026

CVE-2026-25645 Overview

CVE-2026-25645 is an insecure temporary file vulnerability (CWE-377) affecting the Python Requests HTTP library. The requests.utils.extract_zipped_paths() utility function uses predictable filenames when extracting files from zip archives into the system temporary directory. If the target file already exists, it is reused without validation, allowing a local attacker with write access to the temp directory to pre-create a malicious file that would be loaded in place of the legitimate one.

Critical Impact

Local attackers can achieve file replacement attacks by pre-creating malicious files in predictable temporary directory locations, potentially leading to code execution or data manipulation in applications that directly call extract_zipped_paths().

Affected Products

  • Python Requests library versions prior to 2.33.0
  • Applications directly calling requests.utils.extract_zipped_paths()
  • Systems where local attackers have write access to the temporary directory

Discovery Timeline

  • 2026-03-25 - CVE-2026-25645 published to NVD
  • 2026-03-26 - Last updated in NVD database

Technical Details for CVE-2026-25645

Vulnerability Analysis

This vulnerability stems from an insecure temporary file handling pattern (CWE-377: Insecure Temporary File) in the Requests library. The extract_zipped_paths() function extracts files from zip archives to the system's temporary directory using deterministic, predictable filenames. When a file with the expected name already exists in the temp directory, the function reuses it without performing any integrity validation or ownership checks.

This creates a Time-of-Check Time-of-Use (TOCTOU) race condition scenario where a local attacker who has gained write access to the system temporary directory (typically /tmp on Unix-like systems or %TEMP% on Windows) can pre-create files with the expected filenames containing malicious content. When the vulnerable application subsequently calls extract_zipped_paths(), it loads the attacker-controlled file instead of the legitimate extracted content.

It is important to note that standard usage of the Requests library for making HTTP requests is not affected by this vulnerability. Only applications that explicitly call the extract_zipped_paths() utility function directly are impacted.

Root Cause

The root cause is the use of predictable, deterministic filenames when extracting files to the system temporary directory, combined with the absence of validation when reusing existing files. The function fails to implement secure temporary file practices such as using randomized filenames, verifying file ownership, or checking file integrity before use.

Attack Vector

Exploitation requires local access to the target system with write permissions to the temporary directory. The attacker must:

  1. Identify an application that directly calls requests.utils.extract_zipped_paths()
  2. Determine the predictable filename pattern used by the function
  3. Pre-create a malicious file with the expected filename in the temp directory
  4. Wait for or trigger the vulnerable application to extract files, causing it to load the attacker's malicious file

The attack is limited to local exploitation scenarios and requires the attacker to already have some level of system access. The vulnerability affects file integrity rather than confidentiality or availability.

Detection Methods for CVE-2026-25645

Indicators of Compromise

  • Unexpected files appearing in system temporary directories matching extraction patterns used by the Requests library
  • Files in /tmp or %TEMP% directories owned by different users than the running application
  • Suspicious file modifications in temporary directories with timestamps preceding application execution
  • Application logs indicating file loading from temp directories with unexpected content

Detection Strategies

  • Monitor system temporary directories for file creation events from unauthorized users
  • Implement file integrity monitoring on temporary directories used by critical applications
  • Audit application code for direct usage of requests.utils.extract_zipped_paths()
  • Review dependency versions to identify installations of Requests library below 2.33.0

Monitoring Recommendations

  • Configure endpoint detection solutions to monitor for suspicious file activity in temporary directories
  • Implement logging for all file operations in system temp directories by critical applications
  • Set up alerts for file permission anomalies in temporary directories
  • Use SentinelOne's behavioral AI to detect suspicious file replacement patterns in temp directories

How to Mitigate CVE-2026-25645

Immediate Actions Required

  • Upgrade the Python Requests library to version 2.33.0 or later immediately
  • Audit all applications for direct usage of requests.utils.extract_zipped_paths() function
  • If unable to upgrade, set the TMPDIR environment variable to a directory with restricted write access
  • Review and restrict write permissions on system temporary directories where possible

Patch Information

The vulnerability has been addressed in Requests version 2.33.0, which extracts files to non-deterministic locations. The fix is available via the GitHub commit 66d21cb07bd6255b1280291c4fafb71803cdb3b7. Users should upgrade to version 2.33.0 or later as documented in the official release notes. For additional details, refer to the GitHub Security Advisory GHSA-gc5v-m9x4-r6x2.

Workarounds

  • Set the TMPDIR environment variable to point to a directory with restricted write access controlled by the application owner
  • Implement application-level validation of extracted files before use
  • Create a dedicated temporary directory with restricted permissions for each application
  • Monitor and restrict access to system temporary directories at the OS level
bash
# Configuration example - Set restricted temporary directory
export TMPDIR=/var/lib/myapp/secure_tmp
mkdir -p $TMPDIR
chmod 700 $TMPDIR
chown appuser:appgroup $TMPDIR

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

  • Vulnerability Details
  • TypePath Traversal

  • Vendor/TechRequests

  • SeverityMEDIUM

  • CVSS Score4.4

  • EPSS Probability0.00%

  • Known ExploitedNo
  • CVSS Vector
  • CVSS:3.1/AV:L/AC:H/PR:L/UI:R/S:U/C:N/I:H/A:N
  • Impact Assessment
  • ConfidentialityHigh
  • IntegrityHigh
  • AvailabilityNone
  • CWE References
  • CWE-377
  • Technical References
  • GitHub Commit Update

  • GitHub Release v2.33.0

  • GitHub Security Advisory GHSA-gc5v-m9x4-r6x2
  • Related CVEs
  • CVE-2024-47081: Requests Library Credential Leak Vulnerability

  • CVE-2024-35195: Requests Library Cert Bypass Vulnerability
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