{"id":"GHSA-r2jw-c95q-rj29","summary":"Duplicate Advisory: cocoon Reuses a Nonce, Key Pair in Encryption","details":"### Duplicate Advisory\nThis advisory has been withdrawn because it is a duplicate of GHSA-6878-6wc2-pf5h. This link is maintained to preserve external references.\n\n### Original Description\nVersions 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.\n\n**Note:**\nThe issue does NOT affect objects created with Cocoon::new which utilizes ThreadRng.","aliases":["CVE-2024-21530","GHSA-6878-6wc2-pf5h","RUSTSEC-2023-0068"],"modified":"2025-12-29T22:29:44.035578Z","published":"2024-10-02T06:30:26Z","withdrawn":"2025-12-29T22:23:36Z","database_specific":{"github_reviewed":true,"github_reviewed_at":"2024-10-02T17:57:49Z","nvd_published_at":"2024-10-02T05:15:11Z","cwe_ids":["CWE-323"],"severity":"MODERATE"},"references":[{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2024-21530"},{"type":"WEB","url":"https://github.com/fadeevab/cocoon/issues/22"},{"type":"WEB","url":"https://github.com/fadeevab/cocoon/commit/1b6392173ce35db4736a94b62b2d2973f9a71441"},{"type":"ADVISORY","url":"https://github.com/advisories/GHSA-6878-6wc2-pf5h"},{"type":"PACKAGE","url":"https://github.com/fadeevab/cocoon"},{"type":"WEB","url":"https://rustsec.org/advisories/RUSTSEC-2023-0068.html"},{"type":"WEB","url":"https://security.snyk.io/vuln/SNYK-RUST-COCOON-6028364"}],"affected":[{"package":{"name":"cocoon","ecosystem":"crates.io","purl":"pkg:cargo/cocoon"},"ranges":[{"type":"SEMVER","events":[{"introduced":"0"},{"fixed":"0.4.0"}]}],"database_specific":{"source":"https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2024/10/GHSA-r2jw-c95q-rj29/GHSA-r2jw-c95q-rj29.json"}}],"schema_version":"1.9.0","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:L/AC:H/PR:N/UI:N/S:C/C:L/I:L/A:N"},{"type":"CVSS_V4","score":"CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:N/VC:N/VI:N/VA:N/SC:L/SI:L/SA:N"}]}