Nonce reuse in cookie-rs private cookies after fork()
Key facts
- Attack vector
- Network
- Privileges required
- None
- User interaction
- None
- Attack complexity
- High
- Impact type
- —
- Confidentiality · integrity · availability
- Low · High · None
- Fix status
- Fixed
Attack profile from CVSS 3.1 · CNA. Fix status from CNA.
Summary
cookie-rs is affected from 0.11.3 before 0.12.0 and from 0.14.0 before 0.18.3. On Unix-like systems, PrivateJar can reuse AES-256-GCM nonces after fork() without exec(), because the duplicated thread-local generator state repeats its output (CWE-323). An attacker who obtains two private cookies from different forked processes that share a nonce can recover plaintext relationships and forge private cookies that the application accepts.
Written with Claude Haiku 5.5 from the sources below · 2026-11-30
Description from the CNA
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.
Why it matters now
SSVC decision points
Not available: CISA has not published SSVC decision points for this record.
Affected products
| Vendor | Product | Affected versions | Fixed in | Status | Source |
|---|---|---|---|---|---|
| rwf2 | cookie-rs | 0.14.0 to before 0.18.3; 0.11.3 to before 0.12.0 | 0.18.3, 0.12.0 | Patch available | CNA |
- cookie-rs Vendorrwf2 Affected 0.14.0 to before 0.18.3; 0.11.3 to before 0.12.0 Fixed in 0.18.3, 0.12.0 Patch available CNA
Remediation
Update cookie-rs to 0.12.0 if you use the 0.11.3 range, and to 0.18.3 if you use the 0.14.0 range.
Written with Claude Haiku 5.5 from the sources below · 2026-11-30
- Fix · CNA cookie-rs (rwf2) Fixed in 0.18.3, 0.12.0
Timeline
- 2026-11-30 Threatist record created from CVE-2026-140014
References
Sources
This product uses the NVD API but is not endorsed or certified by the NVD. Sources and licences