2.27.1.2 — CVE-2024-35195, CVE-2024-47081, CVE-2026-25645 security backports#3
Merged
Merged
Conversation
CVE-2024-35195 (GHSA-9wx4-h78v-vm56): TLS verify=False connection reuse requests/adapters.py: add _get_connection() that keys connection pools on TLS settings, preventing a verify=False connection from being reused for a subsequent request expecting TLS verification to the same host. send() updated to call _get_connection(request, verify, proxies). Python 2.7 compatible (no type hints). Upstream: psf/requests commit c0813a2 (2.32.0) CVE-2024-47081 (GHSA-9hjg-9r4m-mvj7): netrc credential leak via netloc requests/utils.py: use ri.hostname instead of manually stripping port from ri.netloc in get_netrc_auth(). Prevents credential leakage to hosts that share a netloc prefix with the legitimate target. Upstream: psf/requests commit 96ba401 (2.32.4) CVE-2026-25645 (GHSA-gc5v-m9x4-r6x2): predictable temp file in extract_zipped_paths requests/utils.py: use tempfile.mkstemp() instead of a fixed predictable path in the temp directory, preventing a local attacker from pre-creating a malicious file at that path. Upstream: psf/requests commit 66d21cb (2.33.0) Built on top of 2.27.1.1 (CVE-2023-32681 already fixed).
…ixed in 2.27.1.1)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Security backports for Python 2.7. Tag: 2.27.1.2. Ticket: CS-2178.