CVE-2024-35195: Requests `Session` object does not verify requests after making first request with verify=False

Published May 20, 2024
·
Updated

Last updated 11 July 2025

Other sources

Requests Session object does not verify requests after making first request with verify=False

Microsoft

Requests is a HTTP library. Prior to 2.32.0, when making requests through a Requests Session, if the first request is made with verify=False to disable cert verification, all subsequent requests to the same host will continue to ignore cert verification regardless of changes to the value of verify. This behavior will continue for the lifecycle of the connection in the connection pool. This vulnerability is fixed in 2.32.0.

NVD

When making requests through a Requests Session, if the first request is made with verify=False to disable cert verification, all subsequent requests to the same origin will continue to ignore cert verification regardless of changes to the value of verify. This behavior will continue for the lifecycle of the connection in the connection pool.

Remediation Any of these options can be used to remediate the current issue, we highly recommend upgrading as the preferred mitigation.

Upgrade to requests>=2.32.0. For requests<2.32.0, avoid setting verify=False for the first request to a host while using a Requests Session. For requests<2.32.0, call close() on Session objects to clear existing connections if verify=False is used.

Related Links https://github.com/psf/requests/pull/6655

GitHub

Affected Software

10 affected componentsFixes available
pip/requests<2.32.0
2.32.0
F5 Traffix SDC=5.1.0
5.2.0
Microsoft azl3 tensorflow 2.16.1-8
Microsoft cbl2 python-requests 2.27.1-7
Microsoft azl3 tensorflow 2.16.1-9
Microsoft azl3 python-requests 2.31.0-2
debian/requests<=2.25.1+dfsg-2, <=2.28.1+dfsg-1
2.32.3+dfsg-5+deb13u12.32.5+dfsg-1
redhat/requests<2.32.0
2.32.0
IBM Db2 Genius Hub<=1.1, 1.1.1, 1.1.2
IBM Agentics<=1.0

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

    Upgrade pip/requests to a version that resolves this vulnerability.

    Fixed in 2.32.0
  2. Upgrade

    Upgrade F5 Traffix Systems Signaling Delivery Controller to a version that resolves this vulnerability.

    Fixed in 5.2.0
  3. Upgrade

    Upgrade debian/requests to a version that resolves this vulnerability.

    Fixed in 2.32.3+dfsg-5+deb13u1Fixed in 2.32.5+dfsg-1
  4. Upgrade

    Upgrade redhat/requests to a version that resolves this vulnerability.

    Fixed in 2.32.0
  5. Upgrade

    Upgrade requests to a version that resolves this vulnerability.

    Fixed in 2.32.0
  6. Configuration

    If using requests<2.32.0 with a Requests Session, do not set verify=False on the first request to a given host; ensure certificate verification is enabled for that first request so later requests to the same host do not inherit verify=False.

    Python Requests Session verify = avoid using verify=False for the first request to a host
  7. Operational

    If using requests<2.32.0 and you must use verify=False, call close() on the affected requests.Session object to clear existing connections so subsequent requests do not continue ignoring certificate verification for that host via the connection pool.

Event History

May 20, 2024
CVE Published
via MITRE·08:14 PM
Data Sourced
via MITRE·08:14 PM
DescriptionSeverityWeakness
Advisory Published
via GitHub·08:15 PM
Data Sourced
via NVD·09:15 PM
DescriptionSeverityWeakness
May 21, 2024
Data Sourced
via Red Hat·10:25 AM
DescriptionSeverityAffected Software
May 23, 2024
Data Sourced
via Microsoft·07:00 AM
DescriptionSeverityWeakness
Data Sourced
via Microsoft·07:00 AM
Affected Software
Updated
via Microsoft·07:00 AM
DescriptionSeverity
Sep 20, 2024
Advisory Published
via F5·09:27 PM
May 28, 2026
Data Sourced
via Ubuntu·08:17 PM
RemedyDescriptionSeverityAffected Software
Data Sourced
via Debian·08:18 PM
DescriptionAffected Software
Data Sourced
via Launchpad·08:18 PM
Description
Jul 13, 2026
Data Sourced
via IBM·12:00 AM
DescriptionAffected Software

Parent advisories

This vulnerability appears in the following advisories.

Free Weekly Intel

Don't miss critical vulnerabilities

Join thousands of security professionals who receive our weekly digest of trending CVEs, zero-days, and exploited vulnerabilities.

No spam. Unsubscribe anytime.

Frequently Asked Questions

1

What is the severity of CVE-2024-35195?

CVE-2024-35195 has been categorized as a moderate severity vulnerability.

2

How do I fix CVE-2024-35195?

To fix CVE-2024-35195, upgrade the requests library to version 2.32.0 or later.

3

What versions of Requests are affected by CVE-2024-35195?

CVE-2024-35195 affects all versions of the Requests library prior to 2.32.0.

4

What is the main issue described in CVE-2024-35195?

The main issue in CVE-2024-35195 is that disabling SSL certificate verification in a Requests session affects all subsequent requests to the same host.

5

Is CVE-2024-35195 applicable to F5 Traffix SDC products?

Yes, CVE-2024-35195 is applicable to F5 Traffix SDC version 5.1.0 and earlier.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203