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.
{
"package": "curl",
"issue": "https://hackerone.com/reports/2917232",
"award": {
"amount": "505",
"currency": "USD"
},
"CWE": {
"id": "CWE-200",
"desc": "Exposure of Sensitive Information to an Unauthorized Actor"
},
"last_affected": "8.11.1",
"URL": "https://curl.se/docs/CVE-2025-0167.json",
"severity": "Low",
"www": "https://curl.se/docs/CVE-2025-0167.html",
"affects": "both"
}[
{
"source": "https://github.com/curl/curl.git/commit/0e120c5b925e8ca75d5319e319e5ce4b8080d8eb",
"target": {
"file": "lib/netrc.c"
},
"id": "CURL-CVE-2025-0167-15d6fd1f",
"signature_type": "Line",
"digest": {
"threshold": 0.9,
"line_hashes": [
"20458848727035232539463676160844715969",
"90706272737080507433274527716916664546",
"16917327258350909374225622337481945083",
"95294599251604326993271975417061449667",
"69955327080921055285093850767477732234",
"68948961411026234800199585682669406206",
"191585321479983056735666444989778000369"
]
},
"deprecated": false,
"signature_version": "v1"
},
{
"source": "https://github.com/curl/curl.git/commit/0e120c5b925e8ca75d5319e319e5ce4b8080d8eb",
"target": {
"file": "lib/netrc.c",
"function": "parsenetrc"
},
"id": "CURL-CVE-2025-0167-9ba894d6",
"signature_type": "Function",
"digest": {
"function_hash": "7801934723948004267281319048702801809",
"length": 3446.0
},
"deprecated": false,
"signature_version": "v1"
}
]