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

- Priority: **Routine**
- Reason: Not severe (CVSS 6.5, network access); no exploitation reported by the 5 checked sources
- Next step: Fix in the normal cadence
- Status: published
- Published: 2026-11-30 · Modified: 2026-12-01
- Aliases: RUSTSEC-2026-0594, GHSA-8wcq-xq25-7fhm, CGA-2cp5-h4rq-p7cg, CGA-3mp4-9g7h-9gqv, CGA-3vjr-q6v9-3c75, CGA-76hg-28x4-hgpg, CGA-8xrp-cv27-jxrr, CGA-hmjm-vcjj-9p7c, CGA-jx64-x845-6jjw, CGA-mf7j-gq7v-6mj9, CGA-mj37-rm67-3mvc, CGA-p58v-pqc9-5jp5, CGA-qjr3-6qwc-489f, CGA-qxxh-qw5f-mmcf, CGA-vmg5-fchw-982w, CGA-w5mh-r379-rgf7, CGA-x2fj-5c57-4rm6, CGA-xcq3-3mq9-hpcw, CGA-2jcx-4733-4v92, CGA-2rxv-w4pm-44m3, CGA-32r3-q8w3-925q, CGA-5p2r-rq89-hjq4, CGA-6p9f-fh9f-gvqv, CGA-6xq7-324m-gvc2, CGA-89qm-45mh-hwfx, CGA-99xr-f2h3-w2jm, CGA-fw3q-2hrx-jmp8, CGA-gx44-pvqx-mrf4, CGA-hw44-w33m-9hmx, CGA-j5qh-mvgg-5h45, CGA-jfjr-xr2h-rxm9, CGA-pjv9-9x4g-p3jp, CGA-vc2c-q5xr-hxmr, CGA-vgx7-qjx6-jxwr, CGA-w48h-5pqp-87jc, CGA-x844-4j3g-43x4, CGA-xvm8-xj7j-v966, CGA-2qr4-5pr2-836p, CGA-qw7x-g59w-76hw, CGA-qjvh-284c-ghw7, DEBIAN-CVE-2026-140014, CGA-fmg5-vqv9-xjfr
- Record: https://cvemate.com/vulnerability/CVE-2026-140014 · JSON: https://cvemate.com/vulnerability/CVE-2026-140014/json

## Description

```text
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.
```

## Signals

- CVSS: 6.5 medium (v3.1, CVE.org) CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:L/I:H/A:N
- EPSS: 0.435%, percentile 39.543%, as of 2026-12-04
- Known exploited (KEV): CISA not listed, ENISA not listed, CIRCL not listed
- Ransomware use: none recorded
- Public exploits: 0

## Affected (first 20 of 32)

- chainguard apollo-router-2 (Chainguard): All versions (No fix recorded) \| \< 2.19.1-r1
- chainguard apollo-router-2.10 (Chainguard): All versions (No fix recorded)
- chainguard biome (Chainguard): All versions (No fix recorded) \| \< 2.6.9-r1
- chainguard codex (Chainguard): All versions (No fix recorded) \| \< 0.173.0-r1
- chainguard datadog-lambda-extension (Chainguard): All versions (No fix recorded) \| \< 105-r1
- chainguard datadog-lambda-extension-fips (Chainguard): All versions (No fix recorded) \| \< 105-r3
- chainguard geckodriver (Chainguard): All versions (No fix recorded)
- chainguard komodo-cli (Chainguard): All versions (No fix recorded) \| \< 2.3.4-r2 \| \< 2.3.4-r3
- chainguard komodo-core (Chainguard): All versions (No fix recorded) \| \< 2.3.4-r2 \| \< 2.3.4-r3
- chainguard lychee (Chainguard): All versions (No fix recorded) \| \< 0.24.2-r12
- chainguard mago (Chainguard): All versions (No fix recorded) \| \< 1.62.0-r1
- chainguard nushell (Chainguard): All versions (No fix recorded) \| \< 0.117.0-r2
- chainguard parseable (Chainguard): All versions (No fix recorded)
- chainguard qdrant (Chainguard): All versions (No fix recorded)
- chainguard sentry-relay (Chainguard): All versions (No fix recorded) \| \< 26.11.0-r1
- chainguard sentry-relay-fips (Chainguard): All versions (No fix recorded) \| \< 26.11.0-r2
- chainguard sglang-cuda-13.0 (Chainguard): All versions (No fix recorded) \| \< 0.5.23-r1
- chainguard vaultwarden (Chainguard): All versions (No fix recorded) \| \< 1.37.5-r5
- chainguard xh (Chainguard): All versions (No fix recorded) \| \< 0.26.3-r4
- chainguard zellij (Chainguard): All versions (No fix recorded) \| \< 0.46.1-r1

## References

- <https://github.com/rwf2/cookie-rs/security/advisories/GHSA-8wcq-xq25-7fhm>
- <https://github.com/rwf2/cookie-rs/commit/4a5e0f31fa18731cb8270090f1d173679bca913c>
- <https://github.com/rwf2/cookie-rs/commit/98de6032defb10ad5e49d83fa1a9bbed1873cbe4>
- <https://github.com/rwf2/cookie-rs/releases/tag/0.18.3>
- <https://crates.io/crates/cookie>
- <https://rustsec.org/advisories/RUSTSEC-2026-0594.html>
- <https://nvd.nist.gov/vuln/detail/CVE-2026-140014>
- <https://github.com/rwf2/cookie-rs>
- <https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/140xxx/CVE-2026-140014.json>
- <https://security-tracker.debian.org/tracker/CVE-2026-140014>

---

Data as of 2026-12-05T10:27:53.710Z. The priority label is CveMate's own model from public evidence, not an official rating, and it knows nothing about your assets. How labels are decided: https://cvemate.com/faq#priority
