# CVE-2024-47081: Requests vulnerable to .netrc credentials leak via malicious URLs

- Severity: Medium 5.3 (CVSS:3.1, scored by GitHub_M) `CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:H/I:N/A:N`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 1.02%, higher than 64% of CVEs (2026-12-01)
- Published: 2025-06-09T17:57:47.731Z
- Modified: 2026-10-19T20:00:04.716Z
- Also known as: GHSA-9hjg-9r4m-mvj7, PYSEC-2026-1872
- Weaknesses: CWE-522
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial
- Assigned by: GitHub_M

## Description

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.

(As written by CVE List.)

## Affected

- psf requests: < 2.32.4
- requests (PyPI): before 2.32.4

## Every score

- GitHub_M: CVSS:3.1 5.3 Medium `CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:H/I:N/A:N`
- GitHub: CVSS:3.1 5.3 Medium `CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:H/I:N/A:N`
- PyPA Advisory Database: CVSS:3.1 5.3 Medium `CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:H/I:N/A:N`

## References

- <https://github.com/psf/requests/security/advisories/GHSA-9hjg-9r4m-mvj7> (web)
- <https://github.com/psf/requests/pull/6965> (web)
- <https://github.com/psf/requests/commit/96ba401c1296ab1dda74a2365ef36d88f7d144ef> (fix, 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/9> (web)
- <http://www.openwall.com/lists/oss-security/2025/06/03/11> (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> (package, web)

## Sources

- CVE List: [CVE-2024-47081](https://www.cve.org/CVERecord?id=CVE-2024-47081), CVE Terms of Use, modified 2025-06-09
- GitHub Advisory Database: [GHSA-9hjg-9r4m-mvj7](https://github.com/advisories/GHSA-9hjg-9r4m-mvj7), CC-BY-4.0, modified 2026-10-19
- NVD: [CVE-2024-47081](https://nvd.nist.gov/vuln/detail/CVE-2024-47081), Public domain, modified 2026-06-17
- PyPA Advisory Database: [PYSEC-2026-1872](https://osv.dev/vulnerability/PYSEC-2026-1872), CC-BY-4.0, modified 2026-07-07

---

Page: https://cve.day/CVE-2024-47081 · Whole record: https://cve.day/CVE-2024-47081.json · Rebuilt by cve.day 2026-11-25T22:58:52.740Z
