Cyber Posture

CWE · MITRE source

CWE-321Use of Hard-coded Cryptographic Key

Abstraction: Variant · CVEs in our corpus: 276

The product uses a hard-coded, unchangeable cryptographic key.

Last updated: 09 May 2026 03:25 UTC

NIST 800-53 r5 controls that address this weakness (5)AI

Control Title Family Why it addresses this CWE
SA-12Supply Chain ProtectionSASupply chain protection includes scrutiny of cryptographic implementations, reducing hard-coded keys planted by untrusted vendors.
SA-4Acquisition ProcessSAFunctional and assurance requirements specified in acquisition can prohibit hard-coded cryptographic keys in delivered products.
SC-12Cryptographic Key Establishment and ManagementSCProper key establishment and management processes directly preclude embedding static cryptographic keys in source code or binaries.
SC-17Public Key Infrastructure CertificatesSCApproved PKI issuance and trust stores replace ad-hoc or hard-coded keys with properly managed, signed certificates.
SR-6Supplier Assessments and ReviewsSRAssessments can uncover and prevent suppliers from shipping components that contain hard-coded cryptographic keys.

Top CVEs of this weakness type, ranked by Risk Priority

CVE Risk CVSS EPSS Published
CVE-2016-4437 KEV9.69.80.94212016-06-07
CVE-2025-30406 KEV8.89.00.83402025-04-03
CVE-2023-320776.77.50.86562023-08-24
CVE-2023-275845.99.80.66182024-09-19
CVE-2025-133165.98.10.71682025-11-19
CVE-2020-108842.98.80.19072020-03-25
CVE-2021-401192.49.80.07642021-11-04
CVE-2020-17642.18.60.06052020-03-26
CVE-2024-24132.19.80.02902024-03-13
CVE-2023-321692.19.80.02742024-05-03
CVE-2024-302072.110.00.01902024-05-14
CVE-2025-571742.19.80.01512025-09-15
CVE-2017-140212.09.80.00082017-11-01
CVE-2016-93352.010.00.00222018-05-09
CVE-2018-00402.09.80.00162018-07-11
CVE-2019-197502.09.80.00352019-12-12
CVE-2020-69902.09.80.00152020-03-16
CVE-2020-25002.09.80.00262020-07-01
CVE-2021-273892.09.80.00412021-04-22
CVE-2021-325202.09.80.00212021-07-07
CVE-2022-229872.09.80.00202022-02-04
CVE-2022-06642.09.80.00312022-02-18
CVE-2022-26412.09.80.00302022-12-02
CVE-2022-26602.09.80.00232022-12-13
CVE-2023-275832.09.80.00482023-03-13