Vulnerability 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.
CVSS Score
MEDIUM
Related Weaknesses (CWE)
References
- https://github.com/advisories/GHSA-6878-6wc2-pf5h
- https://github.com/fadeevab/cocoon/commit/1b6392173ce35db4736a94b62b2d2973f9a714
- https://github.com/fadeevab/cocoon/issues/22
- https://rustsec.org/advisories/RUSTSEC-2023-0068.html
- https://security.snyk.io/vuln/SNYK-RUST-COCOON-6028364
FAQ
What is CVE-2024-21530?
CVE-2024-21530 is a vulnerability with a CVSS score of 4.5 (MEDIUM). 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 s...
How severe is CVE-2024-21530?
CVE-2024-21530 has been rated MEDIUM with a CVSS base score of 4.5/10. Review the CVSS metrics above for detailed severity breakdown.
Is there a patch for CVE-2024-21530?
Check the references section above for vendor advisories and patch information. Review vendor security bulletins for remediation guidance.