Skip to main content
← All vulnerabilities
CVE-2024-21530GHSA-6878-6WC2-PF5HGHSA-R2JW-C95Q-RJ29RUSTSEC-2023-0068

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 funct

Published
Last modified
published
Not listed in CISA KEV
Fix
Fixed in 0.4.0
None on Exploit-DB, Metasploit or GitHub
  • Exploitation: poc
  • Automatable: no
  • Technical impact: partial

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.

Timeline

  1. CVE published
  2. CISA SSVC assessment

    Exploitation: poc · Automatable: no · Technical impact: partial

  3. Record last updated

Affected versions

  • n/a cocoon

    fixed in 0.4.0

  • cocooncrates.io

    fixed in 0.4.0

  • cocooncrates.io

    From 0.0.0-0 · fixed in 0.4.0

References 5

security.snyk.io

GitHub · fadeevab/cocoon

rustsec.org

GitHub Advisory Database