Always-Incorrect Control Flow Implementation Affecting requests package, versions [,2.32.0)


0.0
medium
0
10

Snyk CVSS

    Attack Complexity High
    Privileges Required High
    User Interaction Required
    Confidentiality High
    Integrity High

    Threat Intelligence

    EPSS 0.05% (16th percentile)
Expand this section
Red Hat
5.6 medium
Expand this section
SUSE
6 medium

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications
  • Snyk ID SNYK-PYTHON-REQUESTS-6928867
  • published 21 May 2024
  • disclosed 20 May 2024
  • credit Mike Assel

How to fix?

Upgrade requests to version 2.32.0 or higher.

Overview

Affected versions of this package are vulnerable to Always-Incorrect Control Flow Implementation when making requests through a Requests Session. An attacker can bypass certificate verification by making the first request with verify=False, causing all subsequent requests to ignore certificate verification regardless of changes to the verify value.

Notes:

  1. For requests<2.32.0, avoid setting verify=False for the first request to a host while using a Requests Session.

  2. For requests<2.32.0, call close() on Session objects to clear existing connections if verify=False is used.