CVE-2024-47081
JSON

5.3medium

Requests vulnerable to .netrc credentials leak via malicious URLs

Severity
5.3medium CVSS:3.1 by GitHub_M
Exploit likelihood
1.02% (higher than 64% of CVEs; EPSS, by FIRST)
Published
Last changed
Assigned by
GitHub_M
Also known as
GHSA-9hjg-9r4m-mvj7PYSEC-2026-1872

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.

Affected

Product or packageVersionsReported by
psf requests< 2.32.4CVE List
requests (PyPI)before 2.32.4GitHub Advisory Database, PyPA Advisory Database

All scores

GitHub_M5.3medium CVSS:3.1CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:H/I:N/A:N
GitHub5.3medium CVSS:3.1CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:H/I:N/A:N
PyPA Advisory Database5.3medium CVSS:3.1CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:H/I:N/A:N

Classification

CWE-522

SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial.

What each source says

CVE List

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.

GitHub Advisory Database
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).

References

https://github.com/psf/requests/pull/6965 https://seclists.org/fulldisclosure/2025/Jun/2

NVD (es)

Requests es una librería HTTP. Debido a un problema de análisis de URL, las versiones de Requests anteriores a la 2.32.4 pueden filtrar credenciales .netrc a terceros para URL específicas manipuladas con fines maliciosos. Los usuarios deben actualizar a la versión 2.32.4 para obtener una solución. En versiones anteriores de Requests, el uso del archivo .netrc se puede desactivar con `trust_env=False` en la sesión de Requests.

References

https://github.com/psf/requests/security/advisories/GHSA-9hjg-9r4m-mvj7web
https://github.com/psf/requests/pull/6965web
https://github.com/psf/requests/commit/96ba401c1296ab1dda74a2365ef36d88f7d144effix, web
https://requests.readthedocs.io/en/latest/api/#requests.Session.trust_envweb
https://seclists.org/fulldisclosure/2025/Jun/2web
http://seclists.org/fulldisclosure/2025/Jun/2web
http://www.openwall.com/lists/oss-security/2025/06/03/9web
http://www.openwall.com/lists/oss-security/2025/06/03/11web
http://www.openwall.com/lists/oss-security/2025/06/04/1web
http://www.openwall.com/lists/oss-security/2025/06/04/6web
https://nvd.nist.gov/vuln/detail/CVE-2024-47081advisory
https://github.com/advisories/GHSA-9hjg-9r4m-mvj7advisory

Sources

SourceRecordLicence
CVE ListCVE-2024-47081 changed 2025-06-09CVE Terms of Use
GitHub Advisory DatabaseGHSA-9hjg-9r4m-mvj7 changed 2026-10-19CC-BY-4.0
NVDCVE-2024-47081 changed 2026-06-17Public domain
PyPA Advisory DatabasePYSEC-2026-1872 changed 2026-07-07CC-BY-4.0