Medium severity · published May 20, 2024
CVE-2024-35195
Requests `Session` object does not verify requests after making first request with verify=False
5.6
CVSS
0.3%
EPSS
No
On KEV
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.
CVSS vector
CVSS:3.1/AV:L/AC:H/PR:H/UI:R/S:U/C:H/I:H/A:N
Attack vector
Local
Complexity
High
Privileges
High
User interaction
Required
Confidentiality
High
Integrity
High
Availability
None
Scope
Unchanged
Exploitation
Is it being used?
Exploit prediction (EPSS)0.3% · higher than 27% of CVEs
Exploited in the wildNo evidence yet
CISA KEVNot listed
Ransomware campaign useNot known
Affected products
Which versions
RE
requests · psf
< 2.32.0 · source: vendor
RE
Request · Request Project
before 2.32.0 · source: CISA
References
NVD
https://nvd.nist.gov/vuln/detail/CVE-2024-35195
CVE.org
https://www.cve.org/CVERecord?id=CVE-2024-35195
github.com
https://github.com/psf/requests/commit/a58d7f2ffb4d00b46dca2d70a3932a0b37e22fac
github.com
https://github.com/psf/requests/pull/6655
github.com
https://github.com/psf/requests/security/advisories/GHSA-9wx4-h78v-vm56
lists.fedoraproject.org
https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/IYLSNK5TL46Q6XPRVMHVWS63MVJQOK4Q/
lists.fedoraproject.org
https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/N7WP6EYDSUOCOJYHDK5NX43PYZ4SNHGZ/
More from requests
5.5
CVE-2026-25645
Requests has Insecure Temp File Reuse in its extract_zipped_paths() utility function
5.3
CVE-2024-47081
Requests vulnerable to .netrc credentials leak via malicious URLs
