When an OAuth2 bearer token is used for an HTTP(S) transfer, and that transfer performs a cross-protocol redirect to a second URL that uses an IMAP, LDAP, POP3 or SMTP scheme, curl might wrongly pass on the bearer token to the new target host.
{
"URL": "https://curl.se/docs/CVE-2025-14524.json",
"affects": "both",
"last_affected": "8.17.0",
"award": {
"amount": "505",
"currency": "USD"
},
"package": "curl",
"www": "https://curl.se/docs/CVE-2025-14524.html",
"severity": "Low",
"issue": "https://hackerone.com/reports/3459417",
"CWE": {
"id": "CWE-522",
"desc": "Insufficiently Protected Credentials"
}
}[
{
"target": {
"file": "lib/curl_sasl.c"
},
"id": "CURL-CVE-2025-14524-1419737b",
"source": "https://github.com/curl/curl.git/commit/1a822275d333dc6da6043497160fd04c8fa48640",
"digest": {
"threshold": 0.9,
"line_hashes": [
"206227627013705818388421116095464280275",
"146445018200798695659894282886989332010",
"73137026632638984080970357216391271479",
"20180869616707082726044560042120516718",
"297804764287478899455851841748028963067",
"75500228844593104379061953534717048700",
"310934647514053912658054552670061024950",
"120650008394980476833413788340692501428"
]
},
"signature_version": "v1",
"deprecated": false,
"signature_type": "Line"
},
{
"target": {
"file": "lib/curl_sasl.c",
"function": "sasl_choose_oauth2"
},
"id": "CURL-CVE-2025-14524-22368e97",
"source": "https://github.com/curl/curl.git/commit/1a822275d333dc6da6043497160fd04c8fa48640",
"digest": {
"length": 489.0,
"function_hash": "208767605308290121900945290777100662394"
},
"signature_version": "v1",
"deprecated": false,
"signature_type": "Function"
},
{
"target": {
"file": "lib/curl_sasl.c",
"function": "sasl_choose_oauth"
},
"id": "CURL-CVE-2025-14524-77b7df11",
"source": "https://github.com/curl/curl.git/commit/1a822275d333dc6da6043497160fd04c8fa48640",
"digest": {
"length": 633.0,
"function_hash": "191750539846852921826204324538456858850"
},
"signature_version": "v1",
"deprecated": false,
"signature_type": "Function"
}
]
"https://curl.se/docs/CURL-CVE-2025-14524.json"