CVE-2026-86412: server-set cookie erases cookie jar

Published Oct 14, 2026
·
Updated

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.

Affected Software

7 affected componentsFixes available
curl curl
debian/curl*
debian/curl<=8.22.0-1
7.88.1-10+deb12u157.88.1-10+deb12u58.14.1-2+deb13u58.14.1-2+deb13u78.23.0-1
ubuntu/curl<8.20.0-2ubuntu11.1
8.20.0-2ubuntu11.1
ubuntu/curl<8.18.0-1ubuntu2.8
8.18.0-1ubuntu2.8
alpine/curl<8.23.0-r0
8.23.0-r0
alpine/curl<8.23.0-r0
8.23.0-r0

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

    Upgrade debian/curl to a version that resolves this vulnerability.

    Fixed in 7.88.1-10+deb12u15Fixed in 7.88.1-10+deb12u5Fixed in 8.14.1-2+deb13u5Fixed in 8.14.1-2+deb13u7Fixed in 8.23.0-1
  2. Upgrade

    Upgrade ubuntu/curl to a version that resolves this vulnerability.

    Fixed in 8.20.0-2ubuntu11.1
  3. Upgrade

    Upgrade ubuntu/curl to a version that resolves this vulnerability.

    Fixed in 8.18.0-1ubuntu2.8
  4. Upgrade

    Upgrade alpine/curl to a version that resolves this vulnerability.

    Fixed in 8.23.0-r0

Event History

Oct 14, 2026
CVE Published
via OSV·06:00 AM
Data Sourced
via OSV·06:00 AM
DescriptionSeverityAffected Software
Oct 20, 2026
CVE Published
via MITRE·08:03 PM
Data Sourced
via MITRE·08:03 PM
DescriptionWeakness
Data Sourced
via NVD·08:17 PM
DescriptionSeverityWeakness
Oct 23, 2026
Data Sourced
via Microsoft·08:10 AM
DescriptionSeverityWeakness

Frequently Asked Questions

1

Which curl usage pattern is affected?

The issue affects use of the same file path for both --cookie and --cookie-jar across invocations. A cookie jar containing the server-set cookie is written successfully, but curl cannot reload it on the next use.

2

What must an attacker control to trigger the loss of stored cookies?

An attacker needs to operate or control a remote HTTP server that can send a cookie curl accepts and writes to the Netscape cookie jar, but cannot subsequently reload. The impact occurs when curl later uses that jar as both its input cookie file and output cookie jar.

3

How would an operator notice that the issue has occurred?

On the next curl invocation using the affected jar, curl fails before connecting. Its cleanup then replaces the cookie jar with an empty file, so cookies for unrelated domains are no longer present.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203