Vulnerability advisory
CVE-2024-35195
Requests `Session` object does not verify requests after making first request with verify=False
Also known as GHSA-9wx4-h78v-vm56PYSEC-2026-1873
Severity
- CVSS 3.x
CVSS:3.1/AV:L/AC:H/PR:H/UI:R/S:U/C:H/I:H/A:N
Affected versions
Repository
| Affected commits | Fixed by commit |
|---|---|
| GIT github.com/psf/requests ↗ | |
| All commits before d6ebc4a2f1f68b7e355fb7e4dd5ffc0845547f9f | d6ebc4a2f1f68b7e355fb7e4dd5ffc0845547f9f |
| Not specified | a58d7f2ffb4d00b46dca2d70a3932a0b37e22fac |
Also listed as affected (115)
| |
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.
References
- Weblists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/IYLSNK5TL46Q6XPRVMHVWS63MVJQOK4Q/ ↗
- Weblists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/N7WP6EYDSUOCOJYHDK5NX43PYZ4SNHGZ/ ↗
- Advisorygithub.com/CVEProject/cvelistV5/tree/main/cves/2024/35xxx/CVE-2024-35195.json ↗
- Advisorygithub.com/psf/requests/security/advisories/GHSA-9wx4-h78v-vm56 ↗
- Advisorynvd.nist.gov/vuln/detail/CVE-2024-35195 ↗
- Fixgithub.com/psf/requests/commit/a58d7f2ffb4d00b46dca2d70a3932a0b37e22fac ↗
- Fixgithub.com/psf/requests/pull/6655 ↗