A remote HTTP server can set a cookie that curl accepts and writes to a
Netscape cookie jar but cannot reload. On the next invocation using the same
path for --cookie and --cookie-jar, curl fails before connecting, then the
cleanup procedure replaces the jar with an empty file, deleting cookies for
unrelated domains.
{
"CWE": {
"desc": "Improper Check for Unusual or Exceptional Conditions",
"id": "CWE-754"
},
"URL": "https://curl.se/docs/CVE-2026-86412.json",
"affects": "both",
"issue": "https://hackerone.com/reports/3973201",
"last_affected": "8.22.0",
"package": "curl",
"severity": "Low",
"www": "https://curl.se/docs/CVE-2026-86412.html"
}"https://curl.se/docs/CURL-CVE-2026-86412.json"
[
{
"deprecated": false,
"digest": {
"function_hash": "36248945617882343126496426670113368036",
"length": 1393
},
"id": "CURL-CVE-2026-86412-6f05fb09",
"signature_type": "Function",
"signature_version": "v1",
"source": "https://github.com/curl/curl.git/commit/6ded3e594455d6f018fab5f2f5d916eb9bc4ef94",
"target": {
"file": "lib/cookie.c",
"function": "cookie_load"
}
},
{
"deprecated": false,
"digest": {
"line_hashes": [
"267223874941213734843465484783740111605",
"74711443983954957779723069113130742241",
"313822692705061251465513766519671457736"
],
"threshold": 0.9
},
"id": "CURL-CVE-2026-86412-ac4b8286",
"signature_type": "Line",
"signature_version": "v1",
"source": "https://github.com/curl/curl.git/commit/6ded3e594455d6f018fab5f2f5d916eb9bc4ef94",
"target": {
"file": "lib/cookie.c"
}
}
]
"2026-10-14T07:04:26Z"