{"schema":"/api/v1/schema/cve.json","api_version":"1","id":"CVE-2024-21530","published":"2024-10-02T05:15:11.300000Z","last_modified":"2026-06-17T07:09:41.230000Z","status":"Deferred","cvss":{"version":"3.1","score":4.5,"severity":"MEDIUM","vector":"CVSS:3.1/AV:L/AC:H/PR:N/UI:N/S:C/C:L/I:L/A:N","source":"report@snyk.io","primary":false},"auth":true,"cwes":["CWE-323"],"cpes":[],"cpes_truncated":false,"vendors":["cocoon"],"products":["cocoon/cocoon"],"ssvc":{"exploitation":"poc","automatable":"no","technical_impact":"partial"},"epss":{"score":0.00165,"percentile":0.03165,"date":"2026-11-30","model_version":"v2026.06.15"},"cat":"app","platform":"multi","eol":false,"packages":[{"advisory":"GHSA-6878-6wc2-pf5h","ecosystem":"crates.io","name":"cocoon","purl":"pkg:cargo/cocoon","ranges":[{"introduced":"0","fixed":"0.4.0"}],"versions":[],"versions_truncated":false},{"advisory":"RUSTSEC-2023-0068","ecosystem":"crates.io","name":"cocoon","purl":"pkg:cargo/cocoon","ranges":[{"introduced":"0.0.0-0","fixed":"0.4.0"}],"versions":[],"versions_truncated":false}],"severity":"medium","priority_score":27,"links":{"html_es":"/es/cve/CVE-2024-21530/","html_en":"/en/cve/CVE-2024-21530/","nvd":"https://nvd.nist.gov/vuln/detail/CVE-2024-21530","cve_org":"https://www.cve.org/CVERecord?id=CVE-2024-21530"},"untrusted":{"vendor_name":"cocoon","product_name":"cocoon","desc_en":"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.","affected":[{"untrusted_vendor":"cocoon","untrusted_product":"cocoon","versions":[]}],"references":[{"url":"https://github.com/advisories/GHSA-6878-6wc2-pf5h","tags":[]},{"url":"https://github.com/fadeevab/cocoon/commit/1b6392173ce35db4736a94b62b2d2973f9a71441","tags":[]},{"url":"https://github.com/fadeevab/cocoon/issues/22","tags":[]},{"url":"https://rustsec.org/advisories/RUSTSEC-2023-0068.html","tags":[]},{"url":"https://security.snyk.io/vuln/SNYK-RUST-COCOON-6028364","tags":[]}]}}