{"cve":"CVE-2024-21530","nvd":{"published":"2024-10-02T05:15:11.300","modified":"2026-06-17T07:09:41.230","status":"Deferred","description":"Versions of the package cocoon before 0.4.0 are vulnerable to Reusing a Nonce, Key Pair in Encryption when the encrypt, wrap, and dump functions are sequentially called. An attacker can generate the same ciphertext by creating a new encrypted message with the same cocoon object.\r\r**Note:**\rThe issue does NOT affect objects created with Cocoon::new which utilizes ThreadRng.","cvss_v4":null,"cvss_v3":{"version":"3.1","vector":"CVSS:3.1/AV:L/AC:H/PR:N/UI:N/S:C/C:L/I:L/A:N","score":4.5},"cwes":["CWE-323"],"references":["https://github.com/advisories/GHSA-6878-6wc2-pf5h","https://github.com/fadeevab/cocoon/commit/1b6392173ce35db4736a94b62b2d2973f9a71441","https://github.com/fadeevab/cocoon/issues/22","https://rustsec.org/advisories/RUSTSEC-2023-0068.html","https://security.snyk.io/vuln/SNYK-RUST-COCOON-6028364"],"products":[],"source":"nvd","synced_at":"2026-10-19T21:55:31.737901711+00:00"},"epss":{"cve":"CVE-2024-21530","score":0.0014,"percentile":0.03369,"date":"2026-10-31"},"kev":null,"osv":[{"id":"GHSA-6878-6wc2-pf5h","url":"https://osv.dev/vulnerability/GHSA-6878-6wc2-pf5h","summary":"Sequential calls of encryption API (`encrypt`, `wrap`, and `dump`) result in nonce reuse","modified":"2025-12-29T22:29:24.519932Z","packages":[{"ecosystem":"crates.io","name":"cocoon","purl":"pkg:cargo/cocoon","ranges":["<0.4.0"],"fixed":["0.4.0"]}]},{"id":"RUSTSEC-2023-0068","url":"https://osv.dev/vulnerability/RUSTSEC-2023-0068","summary":"Sequential calls of encryption API (`encrypt`, `wrap`, and `dump`) result in nonce reuse","modified":"2025-10-28T06:02:18Z","packages":[{"ecosystem":"crates.io","name":"cocoon","purl":"pkg:cargo/cocoon","ranges":[">=0.0.0-0 <0.4.0"],"fixed":["0.4.0"]}]}],"attribution":["This product uses the NVD API but is not endorsed or certified by the NVD.","EPSS scores: FIRST Exploit Prediction Scoring System, https://www.first.org/epss","Known exploited vulnerabilities: CISA Known Exploited Vulnerabilities Catalog, https://www.cisa.gov/known-exploited-vulnerabilities-catalog","Package advisories: OSV (https://osv.dev), from the GitHub Advisory Database, PyPA, Go, RustSec and other ecosystem databases, under CC-BY 4.0 or CC0","CVE records: the CVE Program's CVE List (https://www.cve.org), under its terms of use (https://www.cve.org/Legal/TermsOfUse). CVE is a registered trademark of The MITRE Corporation; this product is not affiliated with the CVE Program."]}