CVE-2024-21530
published medium CVSS 3.1 · 4.5cocoon vulnerability
Package status and fixes
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.
Related advisories
Vendor advisories explicitly linked to this CVE.
No linked advisories were found for this CVE.
Assessment
CVSS risk assessment and additional context for this vulnerability.
- CVSS version
- 3.1
- Base score
- 4.5 / 10
- Severity
- medium
- Provider
- snyk · cna
- Vector string
- CVSS:3.1/AV:L/AC:H/PR:N/UI:N/S:C/C:L/I:L/A:N/E:P
Publisher product statements
Version ranges and default statuses as reported by each provider.
| Vendor | Product | Version status | Source |
|---|---|---|---|
| n/a | cocoon | 0 to < 0.4.0 (affected · semver) | snyk · cna |
| cocoon | cocoon | 0 to < 0.4.0 (affected · custom)Default: unknown | CISA-ADP · adp |
Weaknesses
1- CWE-323 Reusing a Nonce, Key Pair in Encryption
References
5Provider assertions
2snyk · cna
CISA-ADP · adp
CISA ADP Vulnrichment
Provenance
- Schema
- 5.1
- Searchable
- yes
- Content hash
- 454440c2304cc995ec544d4869b57ec125ad36b93092afc26755dfdb765043bc
- Ingested
- 23 Sep 2026, 08:19:02 UTC
- Source record
- Official CVE record