MEDIUMCVSS v3.1 6.5Vulnerability

CVE-2026-140014

## Who is affected Only applications that call `fork()` and then add private (encrypted) cookies on the thread that forked, in more than one of the resulting processes. This is an uncommon way to deploy a Rust web application. In particular: * **Rocket is not affected.** * **axum is not affected as normally run.** It is affected only when an application forks worker processes itself and runs each on a current-thread runtime. See "Rocket and axum" below. * Applications that never fork are not affected. This includes all applications on Windows. * Signed cookies (`SignedJar`) are not affected. The exact conditions are listed under "Conditions" below. ## Description Private cookies are sealed with AES-256-GCM using a random 96-bit nonce. Affected versions drew the nonce from `rand`'s thread-local generator, `rand::thread_rng()`. That generator hands out bytes from an internal buffer and only notices that the process has forked when the buffer is refilled. A process that forks therefore continues, in both the parent and the child, from the same buffered bytes, and the private cookies sealed first on each side of the fork use the same nonces. ## Impact Reusing a nonce under the same key breaks AES-GCM. From two private cookies that share a nonce, an attacker can: * recover the XOR of the two plaintexts, and thus either plaintext if the other is known, and * recover the GHASH authentication key and forge private cookies, with a name and value of their choosing, that the application accepts as authentic. The nonce is the first 12 bytes of a private cookie's (base64-decoded) value, so a repeated nonce is visible to anyone who holds two such cookies. Exploitation requires the uncommon deployment described above, and only the first private cookies added after a fork are affected: at most 21 per process. An attacker must obtain two of them, from two different processes. ## Conditions All of the following must hold: 1. The target is a Unix-like system and th

Properties

Severity
medium
Summary
cookie: Private cookie nonces can repeat in processes that fork
Nvd fetched at
2026-12-02T06:37:54.190518+00:00
Epss score
0.00435
Cvss severity
MEDIUM
Cvss score
6.5
Retrieved at
2026-12-02T06:40:14+00:00
Ghsa published
2026-12-01T19:00:12Z
Source url
https://github.com/advisories/GHSA-8wcq-xq25-7fhm
Ghsa updated
2026-12-01T19:00:14Z
Ghsa id
GHSA-8wcq-xq25-7fhm
Last source
FIRST EPSS
Score
6.5
Cvss version
3.1
Cve id
CVE-2026-140014
Cvss vector
CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:L/I:H/A:N
First seen by Signal
2026-11-30T22:28:40+00:00
Name
CVE-2026-140014
Is ghsa only
false
Vector
CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:L/I:H/A:N

Related Entities (3)

AFFECTS (1)

→[Software]rust/cookie

HAS_WEAKNESS (1)

VULNERABLE_TO (1)

←[Software]rust/cookie

Related research

Explore deeper with Ninja Signal's threat intelligence graph

CVE-2026-140014 (CVSS v3.1 6.5) — Ninja Signal Threat Intelligence | Ninja Signal