When asked to use a .netrc
file for credentials and to follow HTTP
redirects, curl could leak the password used for the first host to the
followed-to host under certain circumstances.
This flaw only manifests itself if the netrc file has a default
entry that
omits both login and password. A rare circumstance.
{ "www": "https://curl.se/docs/CVE-2025-0167.html", "URL": "https://curl.se/docs/CVE-2025-0167.json", "CWE": { "desc": "Exposure of Sensitive Information to an Unauthorized Actor", "id": "CWE-200" }, "affects": "both", "last_affected": "8.11.1", "issue": "https://hackerone.com/reports/2917232", "award": { "amount": "505", "currency": "USD" }, "severity": "Low", "package": "curl" }
{ "vanir_signatures": [ { "id": "CURL-CVE-2025-0167-15d6fd1f", "digest": { "line_hashes": [ "20458848727035232539463676160844715969", "90706272737080507433274527716916664546", "16917327258350909374225622337481945083", "95294599251604326993271975417061449667", "69955327080921055285093850767477732234", "68948961411026234800199585682669406206", "191585321479983056735666444989778000369" ], "threshold": 0.9 }, "target": { "file": "lib/netrc.c" }, "source": "https://github.com/curl/curl.git/commit/0e120c5b925e8ca75d5319e319e5ce4b8080d8eb", "signature_version": "v1", "deprecated": false, "signature_type": "Line" }, { "id": "CURL-CVE-2025-0167-9ba894d6", "digest": { "length": 3446.0, "function_hash": "7801934723948004267281319048702801809" }, "target": { "function": "parsenetrc", "file": "lib/netrc.c" }, "source": "https://github.com/curl/curl.git/commit/0e120c5b925e8ca75d5319e319e5ce4b8080d8eb", "signature_version": "v1", "deprecated": false, "signature_type": "Function" } ] }