Reusing a Nonce, Key Pair in Encryption Affecting cocoon package, versions <0.4.0
Threat Intelligence
Exploit Maturity
Proof of concept
Do your applications use this vulnerable package?
In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.
Test your applications- Snyk ID SNYK-RUST-COCOON-6028364
- published 30 Sep 2024
- disclosed 15 Oct 2023
- credit Kyle Petryszak
Introduced: 15 Oct 2023
CVE-2024-21530 Open this link in a new tabHow to fix?
Upgrade cocoon
to version 0.4.0 or higher.
Overview
Affected versions of this package 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
.
References
CVSS Scores
version 3.1