CVE-2024-47081Requests vulnerable to .netrc credentials leak via malicious URLs
A medium-severity vulnerability reachable over the network, needing no privileges and user interaction. EPSS estimates a 1.3% chance of exploitation in the next 30 days. A fixed version is named.
- Exploited in the wild
- Not in KEV
- EPSS
- 1.3%
- percentile 71%
- Fix
- Named by a source
- CVE published 9 Jun 2025
Reference
None of the "Needs attention" rules apply right now.
EPSS 1.3% (+1) · Network attack vector (+10) · No privileges required (+5)
Immediate actions
- requests (PyPI): upgrade to 2.32.4 or later on your release line.
- Patch: https://github.com/psf/requests/commit/96ba401c1296ab1dda74a2365ef36d88f7d144ef
- Commit / pull request: https://github.com/psf/requests/pull/6965
- Advisory: https://nvd.nist.gov/vuln/detail/CVE-2024-47081
- Advisory: https://github.com/advisories/GHSA-9hjg-9r4m-mvj7
Who should check
requests (PyPI) pkg:pypi/requests
- Affected< 2.32.4Fixed in2.32.4OSV (PYSEC-2026-1872)
psf requests product:psf/requests
- Affected< 2.32.4Affected range ends before2.32.4as published by CNA (CVE List)
Products (not packages) are shown as their sources publish them. We check no product version against these ranges; a fixed version is the one the source names. Ask the vendor's advisory.
Confirmed facts
- CVSS
- 5.3 MEDIUM (version 3.1)
- Score from
- CNA ([email protected])
- Attack vector
- network
- Attack complexity
- high
- Privileges required
- none
- User interaction
- required
- Weakness
- CWE-522
- Exploitation (CISA SSVC)
- none
- Automatable (CISA SSVC)
- no
- Assigned by
- [email protected]
Unknowns
- We show one CVSS score. Other sources may score this CVE differently.
Advisory text
Quoted from the source advisory (untrusted)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.
Update history
- 9 Jun 2025Published
References
- patchhttps://github.com/psf/requests/commit/96ba401c1296ab1dda74a2365ef36d88f7d144ef
- commit / pull requesthttps://github.com/psf/requests/pull/6965
- otherhttps://github.com/psf/requests/security/advisories/GHSA-9hjg-9r4m-mvj7
- otherhttps://requests.readthedocs.io/en/latest/api/#requests.Session.trust_env
- otherhttps://seclists.org/fulldisclosure/2025/Jun/2
- otherhttp://seclists.org/fulldisclosure/2025/Jun/2
- otherhttp://www.openwall.com/lists/oss-security/2025/06/03/11
- otherhttp://www.openwall.com/lists/oss-security/2025/06/03/9
- otherhttp://www.openwall.com/lists/oss-security/2025/06/04/1
- otherhttp://www.openwall.com/lists/oss-security/2025/06/04/6
- advisoryhttps://nvd.nist.gov/vuln/detail/CVE-2024-47081
- advisoryhttps://github.com/advisories/GHSA-9hjg-9r4m-mvj7
- otherhttps://github.com/psf/requests
- otherhttps://github.com/psf/requests/releases/tag/v2.32.4
- otherhttps://github.com/pypa/advisory-database/tree/main/vulns/requests/PYSEC-2026-1872.yaml
- otherhttps://pypi.org/project/requests
Sources
- EPSS by FIRST.org, Free to use, attribution requested. Scores generated by Empirical Security.
- CVE-2024-47081 (CVE List (CNA and CISA ADP data, through the NVD API)), CVE terms of use. Copyright The MITRE Corporation. CVE is a registered trademark of The MITRE Corporation.
- NVD API 2.0 (NIST), the API we query, NVD API terms of use. This product uses the NVD API but is not endorsed or certified by the NVD.
- GHSA-9hjg-9r4m-mvj7 (GitHub Advisory Database), CC BY 4.0.
- PYSEC-2026-1872 (PyPA Advisory Database), CC BY 4.0.
- OSV.dev, Per database.
This page is our own presentation: records are shortened, normalised and merged. Licences
Last checked: kev 21 min ago · osv 21 min ago · nvd 82 min ago · epss 21 min ago · JSON · ask via MCP: explain_vulnerability
Also known as GHSA-9hjg-9r4m-mvj7, PYSEC-2026-1872