{"id":"CVE-2024-47081","aliases":["CVE-2024-47081","GHSA-9hjg-9r4m-mvj7","PYSEC-2026-1872"],"related":[],"kind":"vulnerability","state":"published","title":"Requests vulnerable to .netrc credentials leak via malicious URLs","summary":"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.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"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.","source":"cvelist"},{"lang":"en","text":"### 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","format":"markdown","source":"ghsa"},{"lang":"es","text":"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.","source":"nvd"}],"published":"2025-06-09T17:57:47.731Z","modified":"2026-10-19T20:00:04.716Z","severity":{"scorer":"GitHub_M","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:H/I:N/A:N","score":5.3,"rating":"MEDIUM"},"severities":[{"scorer":"GitHub_M","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:H/I:N/A:N","score":5.3,"rating":"MEDIUM"},{"scorer":"GitHub","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:H/I:N/A:N","score":5.3,"rating":"MEDIUM"},{"scorer":"PyPA Advisory Database","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:H/I:N/A:N","score":5.3,"rating":"MEDIUM"}],"cwes":["CWE-522"],"affected":[{"ranges":[{"version":"< 2.32.4","status":"affected"}],"vendor":"psf","product":"requests","source":"cvelist"},{"ranges":[{"type":"ecosystem","introduced":"0","status":"affected","fixed":"2.32.4"}],"ecosystem":"PyPI","package":"requests","purl":"pkg:pypi/requests","source":"ghsa"},{"ranges":[{"type":"ecosystem","introduced":"0","status":"affected","fixed":"2.32.4"}],"ecosystem":"PyPI","package":"requests","purl":"pkg:pypi/requests","source":"pysec"}],"references":[{"url":"https://github.com/psf/requests/security/advisories/GHSA-9hjg-9r4m-mvj7","tags":["web","x-refsource-confirm"],"sources":["cvelist","ghsa","nvd","pysec"]},{"url":"https://github.com/psf/requests/pull/6965","tags":["web","x-refsource-misc"],"sources":["cvelist","ghsa","nvd","pysec"]},{"url":"https://github.com/psf/requests/commit/96ba401c1296ab1dda74a2365ef36d88f7d144ef","tags":["fix","web","x-refsource-misc"],"sources":["cvelist","ghsa","nvd","pysec"]},{"url":"https://requests.readthedocs.io/en/latest/api/#requests.Session.trust_env","tags":["web","x-refsource-misc"],"sources":["cvelist","ghsa","nvd","pysec"]},{"url":"https://seclists.org/fulldisclosure/2025/Jun/2","tags":["web","x-refsource-misc"],"sources":["cvelist","ghsa","nvd","pysec"]},{"url":"http://seclists.org/fulldisclosure/2025/Jun/2","tags":["web"],"sources":["cvelist","nvd","pysec"]},{"url":"http://www.openwall.com/lists/oss-security/2025/06/03/9","tags":["web"],"sources":["cvelist","ghsa","nvd","pysec"]},{"url":"http://www.openwall.com/lists/oss-security/2025/06/03/11","tags":["web"],"sources":["cvelist","ghsa","nvd","pysec"]},{"url":"http://www.openwall.com/lists/oss-security/2025/06/04/1","tags":["web"],"sources":["cvelist","ghsa","nvd","pysec"]},{"url":"http://www.openwall.com/lists/oss-security/2025/06/04/6","tags":["web"],"sources":["cvelist","ghsa","nvd","pysec"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2024-47081","tags":["advisory"],"sources":["ghsa","pysec"]},{"url":"https://github.com/advisories/GHSA-9hjg-9r4m-mvj7","tags":["advisory"],"sources":["ghsa","pysec"]},{"url":"https://github.com/psf/requests","tags":["package"],"sources":["ghsa","pysec"]},{"url":"https://github.com/psf/requests/releases/tag/v2.32.4","tags":["web"],"sources":["ghsa"]},{"url":"https://github.com/pypa/advisory-database/tree/main/vulns/requests/PYSEC-2026-1872.yaml","tags":["web"],"sources":["ghsa"]},{"url":"https://pypi.org/project/requests","tags":["package","web"],"sources":["ghsa","pysec"]}],"credits":[],"assigner":"GitHub_M","ssvc":{"scorer":"CISA-ADP","exploitation":"none","automatable":"no","technicalImpact":"partial","date":"2025-06-09T18:39:03.849Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2024-47081","url":"https://www.cve.org/CVERecord?id=CVE-2024-47081","licence":"CVE Terms of Use","modified":"2025-06-09T18:40:40.996Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-9hjg-9r4m-mvj7","url":"https://github.com/advisories/GHSA-9hjg-9r4m-mvj7","licence":"CC-BY-4.0","modified":"2026-10-19T20:00:04.716Z"},{"source":"nvd","name":"NVD","id":"CVE-2024-47081","url":"https://nvd.nist.gov/vuln/detail/CVE-2024-47081","licence":"Public domain","modified":"2026-06-17T07:56:30.697Z"},{"source":"pysec","name":"PyPA Advisory Database","id":"PYSEC-2026-1872","url":"https://osv.dev/vulnerability/PYSEC-2026-1872","licence":"CC-BY-4.0","modified":"2026-07-07T17:47:00.332Z"}],"updatedAt":"2026-11-25T22:58:52.740Z","epss":{"score":0.01022,"percentile":0.64449,"date":"2026-12-01T12:00:22.000Z"}}