{"id":"CVE-2024-21530","state":"PUBLISHED","title":"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 attacke","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.","publishedAt":"2024-10-02T05:00:02.359Z","updatedAt":"2024-10-02T13:42:12.774Z","severity":{"score":4.5,"label":"Medium","version":"3.1","vector":"CVSS:3.1/AV:L/AC:H/PR:N/UI:N/S:C/C:L/I:L/A:N/E:P","source":"snyk"},"assigner":"snyk","products":["n/a cocoon"],"affected":[{"vendor":"n/a","product":"cocoon","versions":[{"version":"0","status":"affected","lessThan":"0.4.0","versionType":"semver"}]}],"references":["https://security.snyk.io/vuln/SNYK-RUST-COCOON-6028364","https://github.com/fadeevab/cocoon/issues/22","https://github.com/fadeevab/cocoon/commit/1b6392173ce35db4736a94b62b2d2973f9a71441","https://rustsec.org/advisories/RUSTSEC-2023-0068.html","https://github.com/advisories/GHSA-6878-6wc2-pf5h"],"weaknesses":["CWE-323"],"ingestedAt":"2026-10-29T20:06:59.846Z","source":{"repository":"CVEProject/cvelistV5","path":"cves/2024/21xxx/CVE-2024-21530.json","commit":"556c9d3a8cd17e218bb8e452ba7cd619a384ff47"},"raw":{"dataType":"CVE_RECORD","dataVersion":"5.1","cveMetadata":{"cveId":"CVE-2024-21530","state":"PUBLISHED","datePublished":"2024-10-02T05:00:02.359Z","dateUpdated":"2024-10-02T13:42:12.774Z","assignerShortName":"snyk","assignerOrgId":"bae035ff-b466-4ff4-94d0-fc9efd9e1730","dateReserved":"2023-12-22T12:33:20.122Z"},"containers":{"cna":{"descriptions":[{"lang":"en","value":"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":[{"vendor":"n/a","product":"cocoon","versions":[{"version":"0","status":"affected","lessThan":"0.4.0","versionType":"semver"}]}],"references":[{"url":"https://security.snyk.io/vuln/SNYK-RUST-COCOON-6028364"},{"url":"https://github.com/fadeevab/cocoon/issues/22"},{"url":"https://github.com/fadeevab/cocoon/commit/1b6392173ce35db4736a94b62b2d2973f9a71441"},{"url":"https://rustsec.org/advisories/RUSTSEC-2023-0068.html"},{"url":"https://github.com/advisories/GHSA-6878-6wc2-pf5h"}],"metrics":[{"cvssV3_1":{"version":"3.1","attackVector":"LOCAL","attackComplexity":"HIGH","privilegesRequired":"NONE","userInteraction":"NONE","scope":"CHANGED","confidentialityImpact":"LOW","integrityImpact":"LOW","availabilityImpact":"NONE","baseScore":4.5,"baseSeverity":"MEDIUM","vectorString":"CVSS:3.1/AV:L/AC:H/PR:N/UI:N/S:C/C:L/I:L/A:N/E:P"}}],"problemTypes":[{"descriptions":[{"cweId":"CWE-323","description":"Reusing a Nonce, Key Pair in Encryption","lang":"en"}]}],"providerMetadata":{"shortName":"snyk","orgId":"bae035ff-b466-4ff4-94d0-fc9efd9e1730","dateUpdated":"2024-10-02T05:00:02.359Z"},"credits":[{"value":"Kyle Petryszak","lang":"en"}]},"adp":[{"title":"CISA ADP Vulnrichment","affected":[{"vendor":"cocoon","product":"cocoon","defaultStatus":"unknown","versions":[{"version":"0","status":"affected","lessThan":"0.4.0","versionType":"custom"}],"cpes":["cpe:2.3:a:cocoon:cocoon:*:*:*:*:*:*:*:*"]}],"metrics":[{"other":{"type":"ssvc","content":{"timestamp":"2024-10-02T13:38:37.583035Z","id":"CVE-2024-21530","options":[{"Exploitation":"poc"},{"Automatable":"no"},{"Technical Impact":"partial"}],"role":"CISA Coordinator","version":"2.0.3"}}}],"providerMetadata":{"shortName":"CISA-ADP","orgId":"134c704f-9b21-4f2e-91b3-4a467353bcc0","dateUpdated":"2024-10-02T13:42:12.774Z"}}]}}}