Feed
5.6MEDIUM
CVE-2024-35195Requests `Session` object does not verify requests after making first request with verify=False
A medium-severity vulnerability reachable with local access, needing high privileges and user interaction. EPSS estimates a 0.4% chance of exploitation in the next 30 days. A fixed version is named.
- Exploited in the wild
- Not in KEV
- EPSS
- 0.4%
- percentile 24%
- Fix
- Named by a source
- CVE published 20 May 2024
Reference
None of the "Needs attention" rules apply right now.
EPSS 0.4% (+0)
Immediate actions
- requests (PyPI): upgrade to 2.32.0 or later on your release line.
- Patch: https://github.com/psf/requests/commit/a58d7f2ffb4d00b46dca2d70a3932a0b37e22fac
- Commit / pull request: https://github.com/psf/requests/pull/6655
Who should check
requests (PyPI) pkg:pypi/requests
- Affected< 2.32.0Fixed in2.32.0OSV (PYSEC-2026-1873)
Confirmed facts
- CVSS
- 5.6 MEDIUM (version 3.1)
- Score from
- PYSEC-2026-1873
- Attack vector
- local
- Attack complexity
- high
- Privileges required
- high
- User interaction
- required
- Weakness
- CWE-670
Unknowns
- We show one CVSS score. Other sources may score this CVE differently.
Advisory text
Quoted from the source advisory (untrusted)When using a `requests.Session`, if the first request to a given origin is made with `verify=False`, TLS certificate verification may remain disabled for all subsequent requests to that origin, even if `verify=True` is explicitly specified later. This occurs because the underlying connection is reused from the session's connection pool, causing the initial TLS verification setting to persist for the lifetime of the pooled connection. As a result, applications may unintentionally send requests without certificate verification, leading to potential man-in-the-middle attacks and compromised confidentiality or integrity. This behavior affects versions of `requests` prior to 2.32.0.
Update history
No events recorded. Our history starts on 1 Jan 2025.
References
- otherhttps://github.com/psf/requests/security/advisories/GHSA-9wx4-h78v-vm56
- advisoryhttps://nvd.nist.gov/vuln/detail/CVE-2024-35195
- commit / pull requesthttps://github.com/psf/requests/pull/6655
- patchhttps://github.com/psf/requests/commit/a58d7f2ffb4d00b46dca2d70a3932a0b37e22fac
- otherhttps://github.com/psf/requests
- otherhttps://lists.fedoraproject.org/archives/list/[email protected]/message/IYLSNK5TL46Q6XPRVMHVWS63MVJQOK4Q
- otherhttps://lists.fedoraproject.org/archives/list/[email protected]/message/N7WP6EYDSUOCOJYHDK5NX43PYZ4SNHGZ
- otherhttps://pypi.org/project/requests
- advisoryhttps://github.com/advisories/GHSA-9wx4-h78v-vm56
Sources
- EPSS by FIRST.org, Free to use, attribution requested. Scores generated by Empirical Security.
- GHSA-9wx4-h78v-vm56 (GitHub Advisory Database), CC BY 4.0.
- PYSEC-2026-1873 (PyPA Advisory Database), CC BY 4.0.
- OSV.dev, Per database.
This page is our own presentation: records are shortened, normalised and merged. Licences
Last checked: kev 50 min ago · osv 49 min ago · nvd 49 min ago · epss 49 min ago · JSON · ask via MCP: explain_vulnerability
Also known as GHSA-9wx4-h78v-vm56, PYSEC-2026-1873