CVE-2026-140014
published medium CVSS 3.1 · 6.5cookie: Private cookie nonces can repeat in processes that fork
Package status and fixes
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| rwf2 | — | cookie-rs>= 0.14.0, < 0.18.3 · >= 0.11.3, < 0.12.0 | Affected | Not stated | GitHub_M |
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.
Related advisories
Vendor advisories explicitly linked to this CVE.
No linked advisories were found for this CVE.
Assessment
CVSS risk assessment and additional context for this vulnerability.
- CVSS version
- 3.1
- Base score
- 6.5 / 10
- Severity
- medium
- Provider
- GitHub_M · cna
- Vector string
- CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:L/I:H/A:N
Publisher product statements
Version ranges and default statuses as reported by each provider.
| Vendor | Product | Version status | Source |
|---|---|---|---|
| rwf2 | cookie-rs | >= 0.14.0, < 0.18.3 (affected)>= 0.11.3, < 0.12.0 (affected) | GitHub_M · cna |
Weaknesses
1- CWE-323 CWE-323: Reusing a Nonce, Key Pair in Encryption
References
4Provider assertions
2GitHub_M · cna
cookie: Private cookie nonces can repeat in processes that fork
CISA-ADP · adp
CISA ADP Vulnrichment
Provenance
- Schema
- 5.2
- Searchable
- yes
- Content hash
- 87aaa77e565ac1e6eebdacf0efc3630d67db23584824998e7d4b1e9e38786297
- Ingested
- 01 Dec 2026, 14:00:33 UTC
- Source record
- Official CVE record