Vulnerability · Published May 20, 2024 · Assigned by GitHub_M

CVE-2024-35195Requests `Session` object does not verify requests after making first request with verify=False

Medium 5.6

In plain English

A medium-severity security flaw in requests from psf. There are no confirmed reports of exploitation so far. The chance it is exploited in the next 30 days is estimated at 0.3% (higher than 28% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.

Severity (CVSS 3.1)5.6Medium
Exploit odds (30 days)0.3%top 72.4% of all CVEs
Exploited in the wildNo reportsCISA SSVC: none
Attack toolingNoneno public tooling known

Official 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 & fixed versions

EcosystemPackageFixed inAdvisory
AlmaLinux:8python3-requests2.20.0-5.el8_10ALSA-2025:0012
AlmaLinux:9python3-requests2.25.1-9.el9ALSA-2025:7049
AlmaLinux:9python3-requests+security2.25.1-9.el9ALSA-2025:7049
AlmaLinux:9python3-requests+socks2.25.1-9.el9ALSA-2025:7049
Alpine:v3.20py3-requests2.32.3-r0ALPINE-CVE-2024-35195
Alpine:v3.21py3-requests2.32.3-r0ALPINE-CVE-2024-35195
Alpine:v3.22py3-requests2.32.3-r0ALPINE-CVE-2024-35195
Alpine:v3.23py3-requests2.32.3-r0ALPINE-CVE-2024-35195
Alpine:v3.24py3-requests2.32.3-r0ALPINE-CVE-2024-35195
Debian:12requestsno fix listedDEBIAN-CVE-2024-35195
Debian:13requests2.32.3+dfsg-1DEBIAN-CVE-2024-35195
Debian:14requests2.32.3+dfsg-1DEBIAN-CVE-2024-35195
PyPIrequests2.32.0GHSA-9wx4-h78v-vm56
PyPIrequests2.32.0PYSEC-2026-1873
Rocky Linux:8python-requests0:2.20.0-5.el8_10RLSA-2025:0012
Rocky Linux:9python-requests0:2.25.1-9.el9RLSA-2025:7049
Ubuntu:26.10python-pipno fix listedUBUNTU-CVE-2024-35195
Ubuntu:22.04:LTSrequestsno fix listedUBUNTU-CVE-2024-35195
Ubuntu:24.04:LTSrequestsno fix listedUBUNTU-CVE-2024-35195

Affected products (as reported)

VendorProductVersions
psf requests < 2.32.0

Weakness: CWE-670 · Vector: CVSS:3.1/AV:L/AC:H/PR:H/UI:R/S:U/C:H/I:H/A:N

References