Goal Reached Thanks to every supporter — we hit 100%!

Goal: 1000 CNY · Raised: 1359 CNY

100%

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

Quick assessment

Affected
rwf2 cookie-rs
Exploitation
No confirmed in-the-wild exploitation; assess based on exposure
Recommended action
Check the vendor advisory and references for a fixed version. If immediate upgrade is impossible, restrict exposure and increase monitoring.

cookie 是一个用于 Rust 的 HTTP Cookie 解析与 Cookie jar 管理库。在 0.11.3 至 0.12.0、以及 0.14.0 至 0.18.3 之间,PrivateJar 使用 rand::thread_rng() 生成 AES-256-GCM nonce;当 Unix-like 进程在 fork() 之后没有 exec() 时,该线程局部生成器的缓冲状态可能被复制。该问题的前提是:调用 fork 的线程在 fork 前已使用过线程局部生成器,并且两个结果进程在同一线程上使用共享 K

CVSS 6.5 · Medium
Get alerts for future matching vulnerabilities Log in to subscribe

I. Basic Information for CVE-2026-140014

Vulnerability Information

Have questions about the vulnerability? See if Shenlong's analysis helps!
View Shenlong Deep Dive ↗

Although we use advanced large model technology, its output may still contain inaccurate or outdated information.Shenlong tries to ensure data accuracy, but please verify and judge based on the actual situation.

Vulnerability Title
cookie: Private cookie nonces can repeat in processes that fork
Source: CVE Program / CVE List V5
Vulnerability 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.
Source: CVE Program / CVE List V5
CVSS Information
CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:L/I:H/A:N
Source: CVE Program / CVE List V5
Vulnerability Type
在加密中重用Nonce与密钥对
Source: CVE Program / CVE List V5

Affected Products

Vendor Product Affected Versions CPE Subscribe
rwf2 cookie-rs >= 0.14.0, < 0.18.3 -

II. Public POCs for CVE-2026-140014

# POC Description Source Link Shenlong Link
AI-Generated POC Premium

No public POC found.

Login to generate AI POC

III. Intelligence Information for CVE-2026-140014

请登录查看更多情报信息。

Other References for CVE-2026-140014 (4)

IV. Related Vulnerabilities