Skip to content

Only use hostname to do netrc lookup instead of netloc - #6965

Merged
sigmavirus24 merged 1 commit into
psf:mainfrom
sethmlarson:ghsa-9hjg-9r4m-mvj7
Jun 4, 2025
Merged

Only use hostname to do netrc lookup instead of netloc#6965
sigmavirus24 merged 1 commit into
psf:mainfrom
sethmlarson:ghsa-9hjg-9r4m-mvj7

Conversation

@sethmlarson

Copy link
Copy Markdown
Member

Applies the patch generated from the GHSA which we couldn't merge as no one on the team had sufficient permissions.

@sigmavirus24
sigmavirus24 merged commit 96ba401 into psf:main Jun 4, 2025
@sethmlarson
sethmlarson deleted the ghsa-9hjg-9r4m-mvj7 branch June 4, 2025 15:43
amine-malloul-gira pushed a commit to gira-de/splat that referenced this pull request Jun 10, 2025
This update addresses the following vulnerabilities:

- ### Impact  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.  ### Workarounds For older versions of Requests, use of the .netrc file can be disabled with `trust_env=False` on your Requests Session ([docs](https://requests.readthedocs.io/en/latest/api/#requests.Session.trust_env)).  ### References psf/requests#6965 https://seclists.org/fulldisclosure/2025/Jun/2
  - Aliases: CVE-2024-47081
  - Recommendation: 2.32.4
bmwiedemann pushed a commit to bmwiedemann/openSUSE that referenced this pull request Jun 10, 2025
https://build.opensuse.org/request/show/1282999
by user dgarcia + anag_factory
- Add CVE-2024-47081.patch upstream patch, fixes netrc credential leak
  (gh#psf/requests#6965, CVE-2024-47081, bsc#1244039)
@ai-code-review-9acts ai-code-review-9acts Bot mentioned this pull request Aug 3, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants