← VULNERABILITIES

RUSTSEC-2026-0594

Private cookie nonces can repeat in processes that fork

UnscoredFix available
CVSS
—
EPSS
—
Published
2026-11-23
Age
6d old
Modified
2026-11-23
Product
crates.io cookie
Aliases
GHSA-8wcq-xq25-7fhm

Description

## 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

Fixed in

0.12.0 · 0.18.3

Affected packages

EcosystemPackageRangeFixed
crates.iocookie>=0.11.3, <0.12.00.12.0
crates.iocookie>=0.14.0, <0.18.30.18.3

Sources

  • OSV · first seen 6d ago · CC-BY 4.0

References

JSON