CVE-2026-140014

Source
https://cve.org/CVERecord?id=CVE-2026-140014
Import Source
https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-140014.json
JSON Data
https://api.osv.dev/v1/vulns/CVE-2026-140014
Aliases
Published
2026-11-30T22:00:26Z
Modified
2026-12-01T00:10:43Z
Severity
  • 6.5 (Medium) CVSS_V3 - CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:L/I:H/A:N CVSS Calculator
Summary
cookie: Private cookie nonces can repeat in processes that fork
Details

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.

Database specific
{
    "cna_assigner":  "GitHub_M",
    "cwe_ids":  [
        "CWE-323"
    ],
    "osv_generated_from":  "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/140xxx/CVE-2026-140014.json"
}
References

Affected packages

Git / github.com/rwf2/cookie-rs

Affected ranges

Type
GIT
Repo
https://github.com/rwf2/cookie-rs
Events
Database specific
Show details
{
    "extracted_events":  [
        {
            "range":  [
                {
                    "introduced":  "0.14.0"
                },
                {
                    "fixed":  "0.18.3"
                }
            ],
            "source":  "AFFECTED_FIELD",
            "strategy":  "StringRangeExpression"
        },
        {
            "range":  [
                {
                    "introduced":  "0.11.3"
                },
                {
                    "fixed":  "0.12.0"
                }
            ],
            "source":  "AFFECTED_FIELD",
            "strategy":  "StringRangeExpression"
        },
        {
            "range":  [
                {
                    "fixed":  "4a5e0f31fa18731cb8270090f1d173679bca913c"
                }
            ],
            "source":  "REFERENCES_COMMIT"
        },
        {
            "range":  [
                {
                    "fixed":  "98de6032defb10ad5e49d83fa1a9bbed1873cbe4"
                }
            ],
            "source":  "REFERENCES_COMMIT"
        },
        {
            "original_tag":  "0.18.3",
            "range":  [
                {
                    "fixed":  "1ab14faf1243d853a0294a3d3c11837705fbcd13"
                }
            ],
            "source":  "REFERENCES_TAG"
        }
    ]
}

Affected versions

0.*
0.14.0
0.14.1
0.15.0
0.16.0
0.16.0-rc.1
0.16.1
0.16.2
0.17.0
0.18.0
0.18.1
0.18.2

Database specific

source
"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-140014.json"