ghsa-9hjg-9r4m-mvj7
Vulnerability from github
Published
2025-06-09 19:06
Modified
2025-06-09 19:06
Severity ?
VLAI Severity ?
Summary
Requests vulnerable to .netrc credentials leak via malicious URLs
Details
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
{
"affected": [
{
"package": {
"ecosystem": "PyPI",
"name": "requests"
},
"ranges": [
{
"events": [
{
"introduced": "0"
},
{
"fixed": "2.32.4"
}
],
"type": "ECOSYSTEM"
}
]
}
],
"aliases": [
"CVE-2024-47081"
],
"database_specific": {
"cwe_ids": [
"CWE-522"
],
"github_reviewed": true,
"github_reviewed_at": "2025-06-09T19:06:08Z",
"nvd_published_at": "2025-06-09T18:15:24Z",
"severity": "MODERATE"
},
"details": "### Impact\n\nDue to a URL parsing issue, Requests releases prior to 2.32.4 may leak .netrc credentials to third parties for specific maliciously-crafted URLs.\n\n### Workarounds\nFor older versions of Requests, use of the .netrc file can be disabled with `trust_env=False` on your Requests Session ([docs](https://requests.readthedocs.io/en/latest/api/#requests.Session.trust_env)).\n\n### References\nhttps://github.com/psf/requests/pull/6965\nhttps://seclists.org/fulldisclosure/2025/Jun/2",
"id": "GHSA-9hjg-9r4m-mvj7",
"modified": "2025-06-09T19:06:08Z",
"published": "2025-06-09T19:06:08Z",
"references": [
{
"type": "WEB",
"url": "https://github.com/psf/requests/security/advisories/GHSA-9hjg-9r4m-mvj7"
},
{
"type": "ADVISORY",
"url": "https://nvd.nist.gov/vuln/detail/CVE-2024-47081"
},
{
"type": "WEB",
"url": "https://github.com/psf/requests/pull/6965"
},
{
"type": "WEB",
"url": "https://github.com/psf/requests/commit/96ba401c1296ab1dda74a2365ef36d88f7d144ef"
},
{
"type": "PACKAGE",
"url": "https://github.com/psf/requests"
},
{
"type": "WEB",
"url": "https://requests.readthedocs.io/en/latest/api/#requests.Session.trust_env"
},
{
"type": "WEB",
"url": "https://seclists.org/fulldisclosure/2025/Jun/2"
},
{
"type": "WEB",
"url": "http://seclists.org/fulldisclosure/2025/Jun/2"
},
{
"type": "WEB",
"url": "http://www.openwall.com/lists/oss-security/2025/06/03/11"
},
{
"type": "WEB",
"url": "http://www.openwall.com/lists/oss-security/2025/06/03/9"
},
{
"type": "WEB",
"url": "http://www.openwall.com/lists/oss-security/2025/06/04/1"
},
{
"type": "WEB",
"url": "http://www.openwall.com/lists/oss-security/2025/06/04/6"
}
],
"schema_version": "1.4.0",
"severity": [
{
"score": "CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:H/I:N/A:N",
"type": "CVSS_V3"
}
],
"summary": "Requests vulnerable to .netrc credentials leak via malicious URLs"
}
Loading…
Loading…
Sightings
| Author | Source | Type | Date |
|---|
Nomenclature
- Seen: The vulnerability was mentioned, discussed, or seen somewhere by the user.
- Confirmed: The vulnerability is confirmed from an analyst perspective.
- Published Proof of Concept: A public proof of concept is available for this vulnerability.
- Exploited: This vulnerability was exploited and seen by the user reporting the sighting.
- Patched: This vulnerability was successfully patched by the user reporting the sighting.
- Not exploited: This vulnerability was not exploited or seen by the user reporting the sighting.
- Not confirmed: The user expresses doubt about the veracity of the vulnerability.
- Not patched: This vulnerability was not successfully patched by the user reporting the sighting.
Loading…
Loading…