CVE-2024-21530
Raw vector
CVSS:3.1/AV:L/AC:H/PR:N/UI:N/S:C/C:L/I:L/A:NCVSS and EPSS are reproduced from their sources (NVD, FIRST EPSS). EPSS, Forum of Incident Response and Security Teams (FIRST), epss.first.org. Risk Priority is our own derived reading, not an NVD score.
Summary
CVE-2024-21530 is a medium-severity Reusing a Nonce, Key Pair in Encryption (CWE-323) vulnerability in Rustsec (inferred from references). Its CVSS base score is 4.5 (Medium).
Operationally, exploitation aligns with the MITRE ATT&CK technique Exploitation for Credential Access (T1212); ranked at the 3th percentile by exploit likelihood (below the median); it is not currently listed in the CISA KEV catalog.
The strongest mitigations our analysis identified map to SA-11 (Developer Testing and Evaluation) and SA-8 (Security and Privacy Engineering Principles) — see the control section below for these in your framework.
OWASP Top 10 for Web (2025)
EU & UK References
- 🇪🇺 ENISA EUVD: EUVD-2024-3124
Vulnerability Data
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…
more
with the same cocoon object. **Note:** The issue does NOT affect objects created with Cocoon::new which utilizes ThreadRng.
- CWE(s)
Related Threats
MITRE ATT&CK Enterprise Techniques
MITRE ATT&CK v20.0
CVEs Like This One
Affected Assets
Mitigating Controls
Control response
—
—
—
V6.8.3V11.3.4
Mitigating Controls (NIST 800-53 r5)
Our mappings, made for this CVE.
Developer testing and evaluation can discover nonce reuse through static analysis, fuzzing, or known-answer tests.
Engineering principles include correct use of cryptographic primitives such as unique nonces per key.
Selecting and implementing appropriate cryptographic algorithms and modes reduces nonce-reuse exposure.
Mitigating Controls (NIST CSF 2.0)
Our mappings, derived directly from the weakness types (CWEs) cited in the NVD entry via our CWE→CSF cross-walk — links open the control.
Secure SDLC practices directly prevent nonce/key reuse errors in cryptographic implementations.
Mitigating Controls (ISO/IEC 27001:2022 Annex A)
Our mappings, derived directly from the weakness types (CWEs) cited in the NVD entry via our CWE→ISO cross-walk — links open the control.
Mandates proper cryptographic key and nonce management, directly preventing nonce/key-pair reuse.
Security testing can detect nonce reuse, yet the control addresses many other issues beyond this CWE.
A.6.3's training for technical teams covers cryptographic skills and best practices, which prevents some instances of nonce/key pair reuse, but the flaw is a subtle implementation detail (often arising from RNG resets, object cloning, or hardcoded nonces) that even trained developers introduce, so the effect is a minority one — consistent with the A.6.3 vs CWE-598 anchor on developer-introduced weaknesses.
Secure-coding rules can require unique nonces, but the control is broader than this single weakness.
A.8.30 carries its effect through the secure-development practices its contract requires of the supplier (8.25 to 8.29), so a well-implemented contract reduces ordinary software weaknesses in delivered code the way those practices do; nonce reuse is a code-level cryptographic defect that secure coding guidance (8.28) and security testing (8.29) reach, but the clause depends on supplier implementation and developers are fallible, leaving a nameable remainder.
A.8.8's reach is DISCLOSURE — it surfaces only instances that carry a vendor-published flaw. CWE-323 does surface as CVEs (CVE-2024-36289, CVE-2024-21530), so vulnerability scanning and management will find those disclosed third-party instances, but the bulk of nonce-reuse defects live in first-party cryptographic code that no advisory names, leaving a nameable remainder outside the clause's reach.