Medium severity4.5OSV Advisory· Published Oct 2, 2024· Updated Apr 15, 2026
CVE-2024-21530
CVE-2024-21530
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. Note: The issue does NOT affect objects created with Cocoon::new which utilizes ThreadRng.
AI Insight
LLM-synthesized narrative grounded in this CVE's description and references.
Affected packages
Versions sourced from the GitHub Security Advisory.
| Package | Affected versions | Patched versions |
|---|---|---|
cocooncrates.io | < 0.4.0 | 0.4.0 |
Affected products
2Patches
Vulnerability mechanics
References
7- github.com/advisories/GHSA-6878-6wc2-pf5hnvdADVISORY
- nvd.nist.gov/vuln/detail/CVE-2024-21530ghsaADVISORY
- github.com/fadeevab/cocoon/commitghsaPACKAGE
- github.com/fadeevab/cocoon/commit/1b6392173ce35db4736a94b62b2d2973f9a71441nvdWEB
- github.com/fadeevab/cocoon/issues/22nvdWEB
- rustsec.org/advisories/RUSTSEC-2023-0068.htmlnvdWEB
- security.snyk.io/vuln/SNYK-RUST-COCOON-6028364nvdWEB
News mentions
0No linked articles in our index yet.