Security mailing lists by PureSourceCode

CVE-2026-140014

MEDIUM 6.5CVSS 3.1

cookie: Private cookie nonces can repeat in processes that fork

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.

Published
30 Nov 2026
Last modified
2 Dec 2026
Assigned by
security-advisories@github.com
NVD status
Received
Weakness
CWE-323
Also known as
GHSA-8wcq-xq25-7fhmRUSTSEC-2026-0594
Sources
NVDJSONCVE ListJSONOSV GHSA-8wcq-xq25-7fhmJSONOSV RUSTSEC-2026-0594JSON

Scores

SourceScored byVersionScoreVector / decision
NVD security-advisories@github.com (Secondary) CVSS 3.1 MEDIUM 6.5 CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:L/I:H/A:N
CVE List GitHub_M CVSS 3.1 MEDIUM 6.5 CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:L/I:H/A:N
OSV GitHub CVSS 3.1 MEDIUM 6.5 CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:L/I:H/A:N
OSV RustSec CVSS 3.1 MEDIUM 6.5 CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:L/I:H/A:N
CVE List CISA-ADP SSVC Exploitation: none; Automatable: no; Technical Impact: partial

Affected

SourceVendor / ecosystemProduct / packageAffected versionsFixed in
CVE List rwf2 cookie-rs = >= 0.14.0, < 0.18.3; = >= 0.11.3, < 0.12.0
OSV crates.io cookie >= 0.14.0, < 0.18.3 0.18.3
OSV crates.io cookie >= 0.11.3, < 0.18.3 0.18.3
OSV crates.io cookie >= 0.11.3, < 0.12.0; >= 0.14.0, < 0.18.3 0.12.0, 0.18.3

References

History

  • 3 Dec 2026 00:30 UTC · OSV: updated (other details)
  • 1 Dec 2026 19:42 UTC · OSV: first stored (published 1 Dec 2026)
  • 1 Dec 2026 14:27 UTC · NVD: updated (other details)
  • 1 Dec 2026 14:04 UTC · CVE List: updated (other details)
  • 1 Dec 2026 00:27 UTC · OSV: updated (other details)
  • 30 Nov 2026 22:30 UTC · NVD: first stored (published 30 Nov 2026)
  • 30 Nov 2026 22:30 UTC · CVE List: first stored (published 30 Nov 2026)
  • 25 Nov 2026 20:14 UTC · OSV: first stored (published 23 Nov 2026)
An unhandled error has occurred. Reload ×

Rejoining the server...

Rejoin failed... trying again in seconds.

Failed to rejoin.
Please retry or reload the page.

The session has been paused by the server.

Failed to resume the session.
Please retry or reload the page.