Medium severity · published Jun 9, 2025
CVE-2024-47081
Requests vulnerable to .netrc credentials leak via malicious URLs
5.3
CVSS
1%
EPSS
No
On KEV
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.
CVSS vector
CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:H/I:N/A:N
Attack vector
Network
Complexity
High
Privileges
None
User interaction
Required
Confidentiality
High
Integrity
None
Availability
None
Scope
Unchanged
Exploitation
Is it being used?
Exploit prediction (EPSS)1.0% · higher than 62% of CVEs
Exploited in the wildNo evidence yet
CISA KEVNot listed
Ransomware campaign useNot known
Affected products
Which versions
RE
requests · psf
< 2.32.4 · source: vendor
References
NVD
https://nvd.nist.gov/vuln/detail/CVE-2024-47081
CVE.org
https://www.cve.org/CVERecord?id=CVE-2024-47081
github.com
https://github.com/psf/requests/commit/96ba401c1296ab1dda74a2365ef36d88f7d144ef
github.com
https://github.com/psf/requests/pull/6965
github.com
https://github.com/psf/requests/security/advisories/GHSA-9hjg-9r4m-mvj7
requests.readthedocs.io
https://requests.readthedocs.io/en/latest/api/#requests.Session.trust_env
seclists.org
https://seclists.org/fulldisclosure/2025/Jun/2
seclists.org
http://seclists.org/fulldisclosure/2025/Jun/2
More from requests
5.6
CVE-2024-35195
Requests `Session` object does not verify requests after making first request with verify=False
5.5
CVE-2026-25645
Requests has Insecure Temp File Reuse in its extract_zipped_paths() utility function
