CURL-CVE-2026-86412

Source
https://curl.se/docs/CVE-2026-86412.html
Import Source
https://curl.se/docs/CURL-CVE-2026-86412.json
JSON Data
https://api.osv.dev/v1/vulns/CURL-CVE-2026-86412
Aliases
  • CVE-2026-86412
Published
2026-10-14T08:00:00Z
Modified
2026-10-25T01:05:12Z
Summary
server-set cookie erases cookie jar
Details

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.

Database specific
{
    "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"
}
Credits
    • Stanislav Fort (Aisle Research) - FINDER
    • Daniel Stenberg - REMEDIATION_DEVELOPER

Affected packages

Git / github.com/curl/curl.git

Affected ranges

Type
SEMVER
Events
Introduced
8.18.0
Fixed
8.20.2
Introduced
8.21.0
Fixed
8.23.0
Type
GIT
Repo
https://github.com/curl/curl.git
Events

Affected versions

8.*
8.18.0
8.19.0
8.20.0
8.21.0
8.22.0
Other
curl-8_18_0
curl-8_19_0
curl-8_20_0
curl-8_21_0
curl-8_22_0
rc-8_18_0-1
rc-8_18_0-2
rc-8_18_0-3
rc-8_19_0-1
rc-8_19_0-2
rc-8_19_0-3
rc-8_20_0-1
rc-8_20_0-2
rc-8_20_0-3
rc-8_21_0-1
rc-8_21_0-2
rc-8_21_0-3
rc-8_22_0-1
rc-8_22_0-2
rc-8_22_0-3

Database specific

source
"https://curl.se/docs/CURL-CVE-2026-86412.json"
vanir_signatures
[
    {
        "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"
        }
    }
]
vanir_signatures_modified
"2026-10-25T01:05:12Z"