CVE-2024-47081
MEDIUM 5.3CVSS 3.1Requests vulnerable to .netrc credentials leak via malicious URLs
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.
- Published
- 9 Jun 2025
- Last modified
- 19 Oct 2026
- Assigned by
- security-advisories@github.com
- NVD status
- Deferred
- Weakness
- CWE-522
- Also known as
- GHSA-9hjg-9r4m-mvj7PYSEC-2026-1872
- Sources
- NVDJSONOSV GHSA-9hjg-9r4m-mvj7JSONOSV PYSEC-2026-1872JSON
Scores
| Source | Scored by | Version | Score | Vector / decision |
|---|---|---|---|---|
| NVD | security-advisories@github.com (Secondary) | CVSS 3.1 | MEDIUM 5.3 | CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:H/I:N/A:N |
| OSV | GitHub | CVSS 3.1 | MEDIUM 5.3 | CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:H/I:N/A:N |
| OSV | PyPA | CVSS 3.1 | MEDIUM 5.3 | CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:H/I:N/A:N |
Affected
| Source | Vendor / ecosystem | Product / package | Affected versions | Fixed in |
|---|---|---|---|---|
| OSV | PyPI | requests | < 2.32.4 | 2.32.4 |
References
- https://github.com/psf/requests/commit/96ba401c1296ab1dda74a2365ef36d88f7d144ef · WEB, FIX
- https://github.com/psf/requests/pull/6965 · WEB
- https://github.com/psf/requests/security/advisories/GHSA-9hjg-9r4m-mvj7 · WEB
- https://requests.readthedocs.io/en/latest/api/#requests.Session.trust_env · WEB
- https://seclists.org/fulldisclosure/2025/Jun/2 · WEB
- http://seclists.org/fulldisclosure/2025/Jun/2 · WEB
- http://www.openwall.com/lists/oss-security/2025/06/03/11 · WEB
- http://www.openwall.com/lists/oss-security/2025/06/03/9 · WEB
- http://www.openwall.com/lists/oss-security/2025/06/04/1 · WEB
- http://www.openwall.com/lists/oss-security/2025/06/04/6 · WEB
- https://nvd.nist.gov/vuln/detail/CVE-2024-47081 · ADVISORY
- https://github.com/advisories/GHSA-9hjg-9r4m-mvj7 · ADVISORY
- https://github.com/psf/requests · PACKAGE
- https://github.com/psf/requests/releases/tag/v2.32.4 · WEB
- https://github.com/pypa/advisory-database/tree/main/vulns/requests/PYSEC-2026-1872.yaml · WEB
- https://pypi.org/project/requests · WEB, PACKAGE
History
- 25 Nov 2026 20:58 UTC · NVD: first stored (published 9 Jun 2025)
- 25 Nov 2026 20:12 UTC · OSV: first stored (published 7 Jul 2026)
- 25 Nov 2026 20:11 UTC · OSV: first stored (published 9 Jun 2025)