Logo
componentpython3-requests
Name
python3-requests
Version
2.27.1
Type
library
Description
-
Licenses
Apache-2.0
PURL
-
CPE
cpe:2.3:*:python:requests:2.27.1:*:*:*:*:*:*:*

Other Versions#


Project
Branch
Version
master
2.34.2
scarthgap
2.32.4

Patches#


#
Title
Author
Resolve
1
Only use hostname to do netrc lookup instead of netloc
Nate Prewitt <nate.prewitt@gmail.com>
CVE-2024-47081
2
Merge pull request from GHSA-j8r2-6x86-q33q
Nate Prewitt <nate.prewitt@gmail.com>
CVE-2023-32681
3
Use TLS settings in selecting connection pool
Ian Stapleton Cordasco <graffatcolmingov@gmail.com>
CVE-2024-35195

Vulnerabilities#


Name
Analysis
Description
Exploitable
Requests is a HTTP library. Prior to version 2.33.0, the `requests.utils.extract_zipped_paths()` utility function uses a predictable filename when extracting files from zip archives into the system temporary directory. If the target file already exists, it is reused without validation. A local attacker with write access to the temp directory could pre-create a malicious file that would be loaded in place of the legitimate one. Standard usage of the Requests library is not affected by this vulnerability. Only applications that call `extract_zipped_paths()` directly are impacted. Starting in version 2.33.0, the library extracts files to a non-deterministic location. If developers are unable to upgrade, they can set `TMPDIR` in their environment to a directory with restricted write access.
Patched
Requests is a HTTP library. Due to a URL parsing issue, Requests releases prior to 2.32.4 may leak .netrc credentials to third parties for specific maliciously-crafted URLs. Users should upgrade to version 2.32.4 to receive a fix. For older versions of Requests, use of the .netrc file can be disabled with `trust_env=False` on one's Requests Session.
Patched
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.
Patched
Requests is a HTTP library. Since Requests 2.3.0, Requests has been leaking Proxy-Authorization headers to destination servers when redirected to an HTTPS endpoint. This is a product of how we use `rebuild_proxies` to reattach the `Proxy-Authorization` header to requests. For HTTP connections sent through the tunnel, the proxy will identify the header in the request itself and remove it prior to forwarding to the destination server. However when sent over HTTPS, the `Proxy-Authorization` header must be sent in the CONNECT request as the proxy has no visibility into the tunneled request. This results in Requests forwarding proxy credentials to the destination server unintentionally, allowing a malicious actor to potentially exfiltrate sensitive information. This issue has been patched in version 2.31.0.