CVE-2024-21530

Published Oct 2, 2024 CVSS 3.1 · 4.5 Medium EPSS < 1% KEV · Not listed
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.

Remediation

No solution or workaround provided in the CVE record

Tracking

Sign in to view the affected projects.

Advisories

Source ID Title
EUVD EUVD EUVD-2024-3124 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.
Github GHSA Github GHSA GHSA-r2jw-c95q-rj29 cocoon Reuses a Nonce, Key Pair in Encryption
Github GHSA Github GHSA GHSA-6878-6wc2-pf5h Sequential calls of encryption API (`encrypt`, `wrap`, and `dump`) result in nonce reuse
History
Type Values Removed Values Added
First Time appeared Cocoon
Cocoon cocoon
CPEs cpe:2.3:a:cocoon:cocoon:*:*:*:*:*:*:*:*
Vendors & Products Cocoon
Cocoon cocoon
Metrics ssvc

{'options': {'Automatable': 'no', 'Exploitation': 'poc', 'Technical Impact': 'partial'}, 'version': '2.0.3'}

Type Values Removed Values Added
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.
Weaknesses CWE-323
References
Metrics cvssV3_1

{'score': 4.5, 'vector': 'CVSS:3.1/AV:L/AC:H/PR:N/UI:N/S:C/C:L/I:L/A:N/E:P'}

Weaknesses

Sources

Status
PUBLISHED
Assigner
snyk
Published
Updated
Oct 2, 2024, 1:42 PM
Reserved
Dec 22, 2023, 12:33 PM
Status
Deferred
Published
Oct 2, 2024, 5:15 AM
Modified
Jun 17, 2026, 7:09 AM