Description
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.
Weaknesses
- — CWE-754 Improper Check for Unusual or Exceptional Conditions
Affected products
| Vendor | Product | Versions |
|---|---|---|
| curl | curl | 8.22.0 to <=8.22.0 [affected]; 8.21.0 to <=8.21.0 [affected]; 8.20.0 to <=8.20.0 [affected]; 8.19.0 to <=8.19.0 [affected]; 8.18.0 to <=8.18.0 [affected] |
References
Assess this vulnerability
Compare your deployed product and version with the source record. Review vendor references for fixes and workarounds. A CVSS score describes technical severity; it does not establish that your systems are affected or that exploitation has occurred.
Browse all CVE security advisories · Symaro cybersecurity services
Generated from the official CVE List on 21 Oct 2026 07:04 UTC.