Advisory Database
  • Advisories
  • Dependency Scanning
  1. pypi
  2. ›
  3. requests
  4. ›
  5. CVE-2024-35195

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

May 20, 2024

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 origin 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.

References

  • github.com/advisories/GHSA-9wx4-h78v-vm56
  • github.com/psf/requests
  • github.com/psf/requests/commit/a58d7f2ffb4d00b46dca2d70a3932a0b37e22fac
  • github.com/psf/requests/pull/6655
  • github.com/psf/requests/security/advisories/GHSA-9wx4-h78v-vm56
  • nvd.nist.gov/vuln/detail/CVE-2024-35195

Code Behaviors & Features

Detect and mitigate CVE-2024-35195 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Learn more about Dependency Scanning →

Affected versions

All versions before 2.32.0

Fixed versions

  • 2.32.0

Solution

Upgrade to version 2.32.0 or above.

Impact 5.6 MEDIUM

CVSS:3.1/AV:L/AC:H/PR:H/UI:R/S:U/C:H/I:H/A:N

Learn more about CVSS

Weakness

  • CWE-670: Always-Incorrect Control Flow Implementation

Source file

pypi/requests/CVE-2024-35195.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Wed, 14 May 2025 12:15:22 +0000.