CVE-2024-35195

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

State
Published
Severity
5.6 Medium
Published
May 20, 2024
Updated
Jul 31, 2025
Reserved
May 10, 2024

Read the record on cve.org

Description

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.

Scores

CVSSScoreVectorSource
3.15.6 MediumCVSS:3.1/AV:L/AC:H/PR:H/UI:R/S:U/C:H/I:H/A:NGitHub_M

Weaknesses

  • CWE-670 Always-Incorrect Control Flow Implementation

Affected Products

ProductVersions
requestspsf
  • < 2.32.0Affected

References

Every record here comes from the CVE Program’s CVE List. © 1999–2026 The MITRE Corporation. CVE is a registered trademark of The MITRE Corporation. The records are reproduced under the CVE Program terms of use.