- What is CWE-321?
- The product uses a hard-coded, unchangeable cryptographic key.
- What CVEs are caused by CWE-321?
- 280 recorded CVEs are attributed to CWE-321, including CVE-2025-30406, CVE-2016-4437, CVE-2025-34256. 2 are listed in CISA's Known Exploited Vulnerabilities (KEV) catalog.
- Is CWE-321 part of the OWASP Top 10?
- CWE-321 maps to OWASP Top Ten 2007: Insecure Cryptographic Storage (A8) in the OWASP security taxonomy.
- How do you prevent CWE-321?
- Prevention schemes mirror that of hard-coded password storage.
- How is CWE-321 detected?
- Automated Static Analysis: Automated static analysis, commonly referred to as Static Application Security Testing (SAST), can find some instances of this weakness by analyzing source code (or binary/compiled code) without having to execute it. Typically, this is done by building a model of data flow and control flow, then searching for potentially-vulnerable patterns that connect "sources" (origins of input) with "sinks" (destinations where the data interacts with external components, a lower layer such as the OS, etc.)
- What are the consequences of CWE-321?
- Exploiting CWE-321 can lead to: Bypass Protection Mechanism, Gain Privileges or Assume Identity, Read Application Data.
- Is CWE-321 actively exploited?
- Yes. 2 CWE-321 vulnerabilities are in CISA's KEV catalog of actively exploited flaws, out of 280 recorded CVEs.