Vulnerabilities

CVE-2024-21530

Medium 4.5 CVSS 3.1

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.

Description as published by the source, in English.

Key facts

Published
2024-10-02
Last modified
2026-06-17
Assigned by
report@snyk.io
CVSS vector
CVSS:3.1/AV:L/AC:H/PR:N/UI:N/S:C/C:L/I:L/A:N
Scored by
report@snyk.io
Probability of exploitation
0.1 % higher than 4 % of all known vulnerabilities
EPSS, next 30 days, model v2026.06.15
Fix available
Not registered in the sources

Affected products

Vendor Product Versions Status
cocoon (crates.io) < 0.4.0 Affected
cocoon (crates.io) < 0.4.0 Affected

Weakness type

References

Does this affect you?

A vulnerability matters only if you run the product, in an affected version, somewhere an attacker can reach.

Check your asset list Browse all vulnerabilities