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-35195

CVE-2024-35195: Requests Library Cert Bypass Vulnerability

CVE-2024-35195 is a certificate verification bypass flaw in the Requests HTTP library that persists across Session requests when initially disabled. This article covers the technical details, affected versions, and mitigation.

Published: January 28, 2026

CVE-2024-35195 Overview

CVE-2024-35195 is a Certificate Validation Bypass vulnerability in the Python Requests HTTP library, a widely-used package for making HTTP requests. Prior to version 2.32.0, when making requests through a Requests Session, if the first request is made with verify=False to disable certificate verification, all subsequent requests to the same host will continue to ignore certificate verification regardless of changes to the value of verify. This behavior persists for the lifecycle of the connection in the connection pool.

Critical Impact

Applications that initially disable SSL/TLS certificate verification for specific requests may inadvertently maintain insecure connections for all subsequent requests to the same host, exposing sensitive communications to potential man-in-the-middle attacks.

Affected Products

  • Python Requests library versions prior to 2.32.0
  • Applications and services using affected Requests versions with Session objects
  • Fedora packages containing vulnerable Requests versions

Discovery Timeline

  • May 20, 2024 - CVE-2024-35195 published to NVD
  • November 21, 2024 - Last updated in NVD database

Technical Details for CVE-2024-35195

Vulnerability Analysis

This vulnerability stems from improper state management within the Requests library's connection pooling mechanism. When a Session object is used to make HTTP requests, connections are pooled and reused for performance optimization. The flaw occurs because the TLS/SSL verification settings from the first request to a host become "sticky" for subsequent connections to that same host within the connection pool.

The issue is classified under CWE-670 (Always-Incorrect Control Flow Implementation), indicating that the control flow logic for handling the verify parameter was incorrectly implemented. When a developer explicitly sets verify=False for a single request (perhaps for a known internal endpoint), then changes verify=True for subsequent requests to the same host, the library incorrectly continues to skip certificate verification.

This creates a dangerous security gap where developers believe they have re-enabled certificate verification, but the underlying connection continues operating without proper TLS certificate validation.

Root Cause

The root cause lies in how the Requests library's connection adapter manages TLS verification state within pooled connections. The verify parameter's effect was being cached at the connection pool level rather than being applied per-request. Once a connection was established with verify=False, that setting persisted for the connection's lifecycle in the pool, overriding any subsequent per-request verify=True settings.

Attack Vector

An attacker positioned to perform a man-in-the-middle attack could exploit this vulnerability when:

  1. A target application uses the Requests Session object for HTTP communications
  2. The application initially makes a request with verify=False (perhaps for development/testing, internal APIs, or specific trusted endpoints)
  3. Subsequent requests to the same host are made with the expectation of certificate verification
  4. The attacker intercepts these "supposedly secure" subsequent requests, which lack actual certificate validation

The local attack vector combined with high privilege requirements indicates exploitation requires significant access to influence the application's request flow or network positioning.

python
# Vulnerable code pattern - subsequent requests remain unverified
import requests

session = requests.Session()

# First request disables verification
session.get('https://example.com/api', verify=False)

# Developer expects this to be verified, but it remains unverified
# due to connection pool state retention
session.get('https://example.com/secure-api', verify=True)  # Still unverified!

The security patch addressed this by ensuring the verify parameter is properly evaluated for each request rather than being cached at the connection pool level.

python
 
 import os.path
 import socket  # noqa: F401
+import typing
 
 from urllib3.exceptions import ClosedPoolError, ConnectTimeoutError
 from urllib3.exceptions import HTTPError as _HTTPError

Source: GitHub Commit

Detection Methods for CVE-2024-35195

Indicators of Compromise

  • Applications using Requests library versions below 2.32.0 with Session objects
  • Code patterns showing verify=False followed by subsequent requests to the same host
  • Unexpected certificate validation failures or successes in application logs
  • Network traffic showing unencrypted or improperly validated TLS connections

Detection Strategies

  • Audit Python dependencies using pip list or pip freeze to identify Requests library versions below 2.32.0
  • Perform static code analysis to identify usage patterns combining Session objects with verify=False parameters
  • Review application logs for TLS/SSL certificate validation anomalies
  • Use software composition analysis (SCA) tools to flag vulnerable dependency versions

Monitoring Recommendations

  • Implement continuous dependency scanning in CI/CD pipelines to detect vulnerable library versions
  • Monitor network traffic for unexpected certificate validation bypasses
  • Enable verbose logging for TLS handshakes in critical applications
  • Set up alerts for applications making requests without proper certificate chain validation

How to Mitigate CVE-2024-35195

Immediate Actions Required

  • Upgrade the Python Requests library to version 2.32.0 or later immediately
  • Audit all applications using Session objects with mixed verify parameter usage
  • Review code for patterns that disable certificate verification, even temporarily
  • Consider creating new Session objects when verification requirements change rather than reusing existing sessions

Patch Information

The vulnerability has been fixed in Requests version 2.32.0. The fix ensures that the verify parameter is properly evaluated per-request rather than being cached at the connection pool level. Organizations should update using:

bash
pip install --upgrade requests>=2.32.0

For detailed information about the fix, refer to the GitHub Security Advisory and the associated pull request.

Fedora users should check the Fedora Package Announcements for updated packages.

Workarounds

  • Avoid using verify=False in Session objects entirely; instead, create separate Session instances when certificate verification must be disabled
  • If disabling verification is necessary, create a new Session object immediately after for subsequent verified requests
  • Use separate connection pools for trusted and untrusted endpoints
  • Implement application-level certificate validation as an additional security layer
bash
# Configuration example - Check and upgrade Requests library
pip show requests | grep Version
pip install --upgrade 'requests>=2.32.0'

# Verify the upgrade
python -c "import requests; print(requests.__version__)"

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

  • Vulnerability Details
  • TypeInformation Disclosure

  • Vendor/TechRequests

  • SeverityMEDIUM

  • CVSS Score5.6

  • EPSS Probability0.05%

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

  • GitHub Pull Request

  • GitHub Security Advisory

  • Fedora Package Announcement

  • Fedora Package Announcement
  • Related CVEs
  • CVE-2024-47081: Requests Library Credential Leak Vulnerability

  • CVE-2026-25645: Requests Library Path Traversal 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