Versions of the package cocoon before 0.4.0 are vulnerable to Reusing a Nonce, Key Pair…
Key facts
- Attack vector
- Local
- Privileges required
- None
- User interaction
- None
- Attack complexity
- High
- Impact type
- —
- Confidentiality · integrity · availability
- Low · Low · None
- Fix status
- Fixed
Attack profile from CVSS 3.1 · CNA. Fix status from CNA and GitHub.
Summary
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.
Why it matters now
SSVC decision points
CISA ADP · SSVC 2.0.3
- Exploitation
- Poc
- Automatable
- No
- Technical impact
- Partial
The decision (Track, Attend, Act) also depends on your mission and well-being impact; see CISA's SSVC guide.
Affected products
| Vendor | Product | Affected versions | Fixed in | Status | Source |
|---|---|---|---|---|---|
| — | cocoon | before 0.4.0 | 0.4.0 | Patch available | CNA |
| — | cocoon (crates.io) | before 0.4.0 | 0.4.0 | Patch available | GHSA-6878-6wc2-pf5h |
- cocoon Vendor— Affected before 0.4.0 Fixed in 0.4.0 Patch available CNA
- cocoon (crates.io) Vendor— Affected before 0.4.0 Fixed in 0.4.0 Patch available GHSA-6878-6wc2-pf5h
CPE names CISA-ADP · 1
| CPE | Versions | Role | Vendor |
|---|---|---|---|
| cpe:2.3:a:cocoon:cocoon:*:*:*:*:*:*:*:* | — | — | — |
- cpe:2.3:a:cocoon:cocoon:*:*:*:*:*:*:*:* Versions — — ·—
Remediation
- Fix · CNA cocoon Fixed in 0.4.0
- Fix · GHSA-6878-6wc2-pf5h cocoon (crates.io) Fixed in 0.4.0 Advisory →
Timeline
- 2026-10-02 Threatist record created from CVE-2024-21530
- 2026-10-03 Alias added: GHSA-6878-6wc2-pf5h
References
Sources
- CVE-2024-21530 · CVE Program
- CVE-2024-21530 · NVD
- FIRST EPSS
- GHSA-6878-6wc2-pf5h · GitHub Advisory Database · CC BY 4.0
This product uses the NVD API but is not endorsed or certified by the NVD. Sources and licences