# CVE-2026-140014: cookie: Private cookie nonces can repeat in processes that fork

- Severity: Medium 6.5 (CVSS:3.1, scored by GitHub_M) `CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:L/I:H/A:N`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.43%, higher than 39% of CVEs (2026-12-01)
- Published: 2026-11-23T12:00:00.000Z
- Modified: 2026-12-01T19:15:03.091Z
- Also known as: GHSA-8wcq-xq25-7fhm, RUSTSEC-2026-0594
- Weaknesses: CWE-323
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial
- Assigned by: 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.

(As written by CVE List.)

## Affected

- rwf2 cookie-rs: >= 0.14.0, < 0.18.3; >= 0.11.3, < 0.12.0
- cookie (crates.io): from 0.14.0 before 0.18.3; from 0.11.3 before 0.18.3; from 0.11.3 before 0.12.0

## Every score

- GitHub_M: CVSS:3.1 6.5 Medium `CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:L/I:H/A:N`
- GitHub: CVSS:3.1 6.5 Medium `CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:L/I:H/A:N`
- RustSec Advisory Database: CVSS:3.1 6.5 Medium `CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:L/I:H/A:N`

## References

- <https://github.com/rwf2/cookie-rs/security/advisories/GHSA-8wcq-xq25-7fhm> (web)
- <https://github.com/rwf2/cookie-rs/commit/4a5e0f31fa18731cb8270090f1d173679bca913c> (web)
- <https://github.com/rwf2/cookie-rs/commit/98de6032defb10ad5e49d83fa1a9bbed1873cbe4> (web)
- <https://github.com/rwf2/cookie-rs/releases/tag/0.18.3> (web)
- <https://nvd.nist.gov/vuln/detail/CVE-2026-140014> (advisory)
- <https://github.com/rwf2/cookie-rs> (package)
- <https://rustsec.org/advisories/RUSTSEC-2026-0594.html> (advisory, web)
- <https://crates.io/crates/cookie> (package)

## Sources

- CVE List: [CVE-2026-140014](https://www.cve.org/CVERecord?id=CVE-2026-140014), CVE Terms of Use, modified 2026-12-01
- GitHub Advisory Database: [GHSA-8wcq-xq25-7fhm](https://github.com/advisories/GHSA-8wcq-xq25-7fhm), CC-BY-4.0, modified 2026-12-01
- RustSec Advisory Database: [RUSTSEC-2026-0594](https://rustsec.org/advisories/RUSTSEC-2026-0594.html), CC0-1.0, modified 2026-12-01
- NVD: [CVE-2026-140014](https://nvd.nist.gov/vuln/detail/CVE-2026-140014), Public domain, modified 2026-12-01

---

Page: https://cve.day/CVE-2026-140014 · Whole record: https://cve.day/CVE-2026-140014.json · Rebuilt by cve.day 2026-12-01T19:57:26.355Z
