CVE-2026-140014
cookie: Private cookie nonces can repeat in processes that fork
- CVSS
- 6.5
- EPSS
- —
- Published
- 2026-11-23
- Age
- 8d old
- Modified
- 2026-12-01
- Product
- rwf2 cookie-rs
- Aliases
- RUSTSEC-2026-0594, GHSA-8wcq-xq25-7fhm
CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:L/I:H/A:N
Description
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.
Fixed in
0.12.0 · 0.18.3
Affected packages
| Ecosystem | Package | Range | Fixed |
|---|---|---|---|
| crates.io | cookie | >=0.11.3, <0.12.0 | 0.12.0 |
| crates.io | cookie | >=0.14.0, <0.18.3 | 0.18.3 |
Sources
- NVD · first seen 2h ago · NVD terms of use
- OSV · first seen 44m ago · CC-BY 4.0
- CVE List · first seen 2h ago · CVE Terms of Use
References
- https://github.com/rwf2/cookie-rs/security/advisories/GHSA-8wcq-xq25-7fhm x_refsource_CONFIRM
- https://github.com/rwf2/cookie-rs/commit/4a5e0f31fa18731cb8270090f1d173679bca913c x_refsource_MISC
- https://github.com/rwf2/cookie-rs/commit/98de6032defb10ad5e49d83fa1a9bbed1873cbe4 x_refsource_MISC
- https://github.com/rwf2/cookie-rs/releases/tag/0.18.3 x_refsource_MISC
- https://crates.io/crates/cookie package
- https://rustsec.org/advisories/RUSTSEC-2026-0594.html advisory
- https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/140xxx/CVE-2026-140014.json advisory
- https://nvd.nist.gov/vuln/detail/CVE-2026-140014 advisory