cookie: Private cookie nonces can repeat in processes that fork
CVE-2026-140014GHSA-8wcq-xq25-7fhmPublished 30 Nov 2026, 22:00 UTC
Real-world risk
2.7/ 10Low
Routine
PreliminaryFrom the CVSS vector only · confidence low
CVSS
6.5
scored by the vendor (CNA), CVSS 3.1
In plain words
No plain-language summary yet. The original description is below.
Original description (from GitHub_M)
cookie is an HTTP cookie parsing and cookie jar management library for Rust. From 0.11.3 until 0.12.0 and from 0.14.0 until 0.18.3, PrivateJar generates AES-256-GCM nonces with rand::thread_rng(), whose buffered state can be duplicated when a Unix-like process calls fork() without exec(). The forking thread must have used the thread-local generator before the fork, and two resulting processes must add private cookies on that same thread with a shared Key; applications that do not fork, create cookies only on post-fork threads, use SignedJar, or run on Windows are not affected. At most the first 21 private cookies added on that thread in each resulting process can reuse nonces before the generator reseeds and the processes diverge. An attacker must obtain two cookies from different resulting processes that share a nonce to recover plaintext relationships and forge private cookies accepted by the application. This issue is fixed in version 0.18.3.
Am I affected?
What to do
Update to a fixed version: 0.18.3, 0.12.0.
Why this score
| Factor | Value | Evidence | × |
|---|---|---|---|
| Impact | Major data tamperingWrites or changes important data without gaining execution | From the CVSS vector | 0.70 |
| Attacker position | InternetAnyone on the Internet can reach a typical deployment | From the CVSS vector | 1.00 |
| Privileges needed | NoneNo account | From the CVSS vector | 1.00 |
| Victim interaction | NoneNothing | From the CVSS vector | 1.00 |
| Configuration | DefaultOut-of-the-box installs are vulnerable | From the CVSS vector | 1.00 |
| Reliability | HardNarrow race, needs an extra info leak, needs a man-in-the-middle position, or must be chained with another bug | From the CVSS vector | 0.45 |
Threat level T1: Nothing known (× 0.85)
The default for a new disclosure
EPSS 0.4% chance of exploitation in 30 days (percentile 40), as of 2026-12-02.
The arithmetic
- Prerequisites multiplied together0.450
- Threat T1: Nothing known0.850
- 10 × impact 0.7 × prerequisites 0.45 × threat 0.852.677
- Rounded to one decimal between 0.1 and 102.7
Exploitation and evidence timeline
- 30 Nov 2026 Published
- 2 Dec 2026 Risk 2.7 (cvss fallback)
Weakness
CWE-323
References
- https://github.com/rwf2/cookie-rs/security/advisories/GHSA-8wcq-xq25-7fhmvendor-advisory
- https://github.com/rwf2/cookie-rs/commit/4a5e0f31fa18731cb8270090f1d173679bca913cmisc
- https://github.com/rwf2/cookie-rs/commit/98de6032defb10ad5e49d83fa1a9bbed1873cbe4misc
- https://github.com/rwf2/cookie-rs/releases/tag/0.18.3misc
- https://nvd.nist.gov/vuln/detail/CVE-2026-140014
- https://rustsec.org/advisories/RUSTSEC-2026-0594.html
- https://github.com/advisories/GHSA-8wcq-xq25-7fhm
- CVE-2026-140014 on CVE.org