CVE-2024-21530

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.

Severity
MEDIUM
CVSS v3
4.5
CVSS:3.1/AV:L/AC:H/PR:N/UI:N/S:C/C:L/I:L/A:N/E:P · source cna
Exploit chance (EPSS)
0.140%
chance of exploitation in the next 30 days
higher than 3.4% of scored CVEs · 2026-11-17
CISA KEV
Not listed
Public exploit code
None public
Exploit references (NVD and CNA): 0
Metasploit modules: 0
Nuclei templates: 0

Weakness

CISA SSVC decision points

Exploitationpoc
Automatableno
Technical impactpartial
Scored2024-10-02

Timeline

  1. 2023-10-24GitHub advisory published (GHSA-6878-6wc2-pf5h)344 days before publication
  2. 2024-10-02Published by the CNA05:00 UTC
  3. 2024-10-02CISA SSVC decision recordedsame day

The timeline shows what already happened. To be told when this CVE changes next, watch it from the API.

Exploit and advisory records

GitHub advisory GHSA-6878-6wc2-pf5h, affected packages:

PackageVulnerable versionsFixed in
crates.io cocoonbefore 0.4.00.4.0

References

Get more CVE data from the API.

Free without a key or signup. Pro adds monitoring and higher limits: pricing.

Sources