Read the docs
TI-2024-14286 Aliases CVE-2024-21530GHSA-6878-6wc2-pf5h

Versions of the package cocoon before 0.4.0 are vulnerable to Reusing a Nonce, Key Pair…

Priority MEDIUM 54CWE-323Published · Updated

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

Exploitation Proof of concept CISA SSVC · not in CISA KEV
EPSS 0.0014 3rd percentileScored 2026-11-07
Fix Fixed cocoon: 0.4.0cocoon (crates.io): 0.4.0

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

VendorProductAffected versionsFixed inStatusSource
—cocoonbefore 0.4.00.4.0Patch availableCNA
—cocoon (crates.io)before 0.4.00.4.0Patch availableGHSA-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

CPEVersionsRoleVendor
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

  1. 2026-10-02 Threatist record created from CVE-2024-21530
  2. 2026-10-03 Alias added: GHSA-6878-6wc2-pf5h

References

Sources