Skip to main content

curl/libcurl CVE-2026-86412

MEDIUM
2026-10-14
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Access
    Victim libcurl client connects to malicious server
  2. Exploit
    Server returns crafted Set-Cookie response
  3. Execution
    libcurl mishandles cookie jar write logic
  4. Impact
    Persisted cookie jar erased / cookies destroyed

Vulnerability Assessment

Exploitation Conditions

Requires the libcurl-based application to have the cookie engine enabled with cookie-jar file persistence (command-line -c/--cookie-jar or CURLOPT_COOKIEJAR), and the victim must connect to a server the attacker controls, has compromised, or can impersonate via MITM. Affected only in curl/libcurl 8.18.0 through 8.22.0 (fixed in 8.23.0). Limiting factors: if cookie-jar persistence is not used the flaw is not reachable; there is no authentication or special network position beyond serving a response to the client; and the impact is bounded to erasure/loss of stored cookie data, with no code execution, no credential disclosure, and no compromise of other system state.

Impact

This is a genuinely LOW-priority issue and the available signals are consistent on that point, though most quantitative signals are simply absent. The curl project itself rates CVE-2026-86412 as severity LOW, and no CVSS vector, CWE, EPSS score, KEV listing, or POC was provided in the input - so there is no evidence of active exploitation or even public exploit code (no public exploit identified at time of analysis). The flaw's nature - a server-set cookie causing the cookie jar to be erased - is a data-integrity/data-loss bug affecting only locally persisted cookie state, not memory corruption, code execution, or credential disclosure, which is why it sits at the bottom of curl's 24-CVE batch (the only HIGH in the same release is CVE-2026-92392, an HTTP/2 use-after-free). The one amplifying factor is prevalence: curl/libcurl is ubiquitous (>20 billion installations), so even a low-impact bug has enormous reach. However, reach is not risk here - exploitation requires the victim client to both use cookie-jar persistence and connect to an attacker-influenced server, and the worst outcome is loss of stored cookies. No signals conflict, but note the key limitation explicitly: with no CVSS vector supplied, authentication and attack-vector characteristics are inferred from the description rather than confirmed. Patch by upgrading to curl 8.23.0.

Exploit ScenarioDerived

An application built on libcurl with cookie-jar persistence enabled (e.g. -c/--cookie-jar or CURLOPT_COOKIEJAR) connects to a malicious or compromised HTTP server. The server returns a specially crafted Set-Cookie response that causes libcurl to erase the existing persisted cookie jar, destroying previously stored cookies and forcing session/state loss on the client. No public exploit code was identified at time of analysis, and the impact is limited to cookie data loss rather than code execution or disclosure.

This Month Plan within 30 days. Why: MEDIUM severity (CVSS 4.0-6.9).
Patch available

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv1 – Oct 14, 2026

A server-controlled response can erase the contents of a libcurl application's persisted cookie jar in curl/libcurl 8.18.0 through 8.22.0, allowing a malicious, compromised, or impersonated HTTP server to destroy stored cookie state. The flaw only triggers when the application has the cookie engine enabled together with cookie-jar file persistence (the curl tool's -c/--cookie-jar option or the CURLOPT_COOKIEJAR libcurl option); without that configuration the code path is unreachable. Impact is bounded to loss of stored cookie data - an integrity-only concern with no code execution, no credential disclosure, and no further system compromise - and no public exploit code was identified at time of analysis, which is consistent with the LOW severity assigned by the curl project and the AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:N assessment.

RemediationAI

Upgrade to curl/libcurl 8.23.0, which contains the vendor-released patch for this issue; the fix commit is linked from the curl security page at https://curl.se/docs/security.html, and the release announcement is at https://seclists.org/oss-sec/2026/q4/154. Commercial users on the Rock-solid curl LTS branch (see https://rock-solid.curl.dev) should obtain the backported security patch through their support contract rather than assuming the LTS stream is automatically fixed. If an immediate upgrade is not possible, the cleanest compensating control is to stop using cookie-jar persistence: omit -c/--cookie-jar from curl invocations and avoid setting CURLOPT_COOKIEJAR in libcurl applications, which makes the vulnerable code path unreachable - the trade-off is that cookies will no longer survive between invocations, breaking workflows that rely on authenticated sessions persisting across calls. A partial alternative is to restrict the endpoints a cookie-jar-enabled client is allowed to reach to trusted, non-attacker-influenceable hosts and to enforce certificate validation against a pinned trust store so that MITM-based trigger conditions are harder to achieve, though this does not eliminate the risk if any in-scope origin is compromised. Note that these mitigations reduce reachability rather than fixing the underlying defect, and none of them address the related cookie-jar issue CVE-2026-92386, which is resolved by the same 8.23.0 upgrade.

Affected ProductsAI

curl and libcurl versions 8.18.0 through 8.22.0 inclusive are affected; the vulnerability was introduced in 8.18.0 and fixed in the 8.23.0 release published on 2026-10-14. All builds of libcurl that expose the cookie engine with cookie-jar persistence are in scope regardless of TLS backend, and the curl command-line tool is affected when run with -c/--cookie-jar. No CPE strings were provided in the source data, and no CVSS score or vector was published by the vendor for this entry; the curl project lists it as LOW severity in its vulnerability table. Details and the fixing commit are referenced from the curl security page at https://curl.se/docs/security.html and the release announcement at https://seclists.org/oss-sec/2026/q4/154.

Affects your stack

Find out whether the stacks and servers you run are on an affected version.

Checking this CVE against your own stacks and servers is part of the Basic plan and up.

Technical ContextAI · show details

curl and libcurl implement HTTP cookie handling through a cookie engine that can persist cookies to disk between invocations via a cookie-jar file (CURLOPT_COOKIEJAR in the library, -c/--cookie-jar on the command line). In the affected versions, the logic that merges server-supplied Set-Cookie data with the loaded jar mishandles a particular server-set cookie so that the on-disk jar is not merely updated but effectively cleared, turning an untrusted response into a destructive state change on the client's persisted data. Because the cookie jar is populated from an external file and rewritten from in-memory state, an attacker who can return HTTP responses to the client - by controlling the origin, compromising it, or positioning as a man-in-the-middle - can influence that in-memory state and cause the persisted file to be lost. The root cause falls in the general class of improper handling of server-provided input affecting trusted local state; no CWE identifier was supplied in the source data, and the curl project classifies the issue as LOW severity. The same 8.23.0 release also fixed a related cookie-jar defect, CVE-2026-92386 (server-set cookie aborts cookie jar load), which shares the cookie-persistence subsystem.

Know when the next one hits your stack

  • Watch products and get an email when something new is published
  • Check this CVE against your own stack and servers
  • Exploit and PoC references, threat intelligence from 22 sources

No credit card · 7-day full trial

Severity by source

vuln.today AI 5.3 MEDIUM

A remote malicious server triggers it with no client auth or user interaction (AV:N/AC:L/PR:N/UI:N), but it only corrupts/erases stored cookie data, so I:L and C:N/A:N.

3.1 AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:N
4.0 AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:L/VA:N/SC:N/SI:N/SA:N

Estimated by vuln.today — no official severity rating has been published for this CVE yet.

Description PRE-NVD

Disclosed via oss-security. NVD scoring and full description are pending.

Threat Intelligence Overview

Prevalence
Ubiquitous
curl/libcurl ships in over twenty billion installations across virtually all environments
Data Quality
1 sources
Confidence: Low

How this decision was reached

The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.

SignalValue
Severity MEDIUM
CISA KEV No
Public POC No
EPSS N/A
Patch available Yes
Active threat No
Deciding rule
MEDIUM severity (CVSS 4.0-6.9)
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

Attack Technique

OS command injection occurs when an application passes unsanitized user input directly into system shell commands.

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy