CVE-2024-35195
MEDIUM5.6EPSS 0.04%Requests `Session` object does not verify requests after making first request with verify=False
Published: 5/20/2024Modified: 4/28/2026
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.
Affected packages (3)
- Alpine/py3-requestsfrom 0, < 2.32.3-r0
- Debian/requestsfrom 0
- PyPI/requestsfrom 0, < 2.32.0
CVSS scores
| Source | Version | Severity | Vector |
|---|---|---|---|
| osv | CVSS 3.1 | MEDIUM5.6 | CVSS:3.1/AV:L/AC:H/PR:H/UI:R/S:U/C:H/I:H/A:N |
References (9)
- ADVISORYhttps://nvd.nist.gov/vuln/detail/CVE-2024-35195
- ADVISORYhttps://security.alpinelinux.org/vuln/CVE-2024-35195
- ADVISORYhttps://security-tracker.debian.org/tracker/CVE-2024-35195
- PATCHhttps://github.com/psf/requests
- WEBhttps://github.com/psf/requests/commit/a58d7f2ffb4d00b46dca2d70a3932a0b37e22fac
- WEBhttps://github.com/psf/requests/pull/6655
- WEBhttps://github.com/psf/requests/security/advisories/GHSA-9wx4-h78v-vm56
- WEBhttps://lists.fedoraproject.org/archives/list/[email protected]/message/IYLSNK5TL46Q6XPRVMHVWS63MVJQOK4Q
- WEBhttps://lists.fedoraproject.org/archives/list/[email protected]/message/N7WP6EYDSUOCOJYHDK5NX43PYZ4SNHGZ