Goal Reached Thanks to every supporter — we hit 100%!

Goal: 1000 CNY · Raised: 1310 CNY

100%

CWE-321 (使用硬编码的密码学密钥) — Vulnerability Class 262

262 vulnerabilities classified as CWE-321 (使用硬编码的密码学密钥). AI Chinese analysis included.

CWE-321 represents a critical implementation weakness where software embeds static, unchangeable cryptographic keys directly into its source code or binary. This flaw severely compromises confidentiality and integrity because attackers can easily extract these keys through reverse engineering or simple code inspection, bypassing the need for complex decryption attacks. Once obtained, adversaries can impersonate legitimate users, decrypt sensitive data, or forge digital signatures with impunity. To mitigate this risk, developers must avoid hardcoding secrets entirely. Instead, they should implement robust key management systems that generate, store, and rotate keys dynamically. Utilizing secure hardware modules, operating system keychains, or dedicated secret management services ensures that cryptographic material remains isolated from the application logic, significantly raising the barrier for potential attackers seeking to compromise the system’s security posture.

MITRE CWE Description
The product uses a hard-coded, unchangeable cryptographic key.
Common Consequences (1)
Access ControlBypass Protection Mechanism, Gain Privileges or Assume Identity, Read Application Data
If hard-coded cryptographic keys are used, it is almost certain that malicious users will gain access through the account in question. The use of a hard-coded cryptographic key significantly increases the possibility that encrypted data may be recovered.
Mitigations (1)
Architecture and DesignPrevention schemes mirror that of hard-coded password storage.
Examples (2)
The following code examples attempt to verify a password using a hard-coded cryptographic key.
int VerifyAdmin(char *password) { if (strcmp(password,"68af404b513073584c4b6f22b6c63e6b")) { printf("Incorrect Password!\n"); return(0); } printf("Entering Diagnostic Mode...\n"); return(1); }
Bad · C
public boolean VerifyAdmin(String password) { if (password.equals("68af404b513073584c4b6f22b6c63e6b")) { System.out.println("Entering Diagnostic Mode..."); return true; } System.out.println("Incorrect Password!"); return false;
Bad · Java
In 2022, the OT:ICEFALL study examined products by 10 different Operational Technology (OT) vendors. The researchers reported 56 vulnerabilities and said that the products were "insecure by design" [REF-1283]. If exploited, these vulnerabilities often allowed adversaries to change how the products operated, ranging from denial of service to changing the code that the products executed. Since these…
CVE IDTitleCVSSSeverityPublished
CVE-2026-28742 Naxclow IoT Platform Use of hard-coded cryptographic key — Smart Doorbell X3 9.8 Critical2026-06-12
CVE-2026-50091 Aqara Home Android SDK hardcoded keys — com.lumiunited.aqarahome 9.1 Critical2026-06-12
CVE-2026-11505 GL.iNet XE3000 glnassys hard-coded key — A1300 5.0 Medium2026-06-08
CVE-2026-11347 Hardcoded Cryptographic Keys and Weak IV Generation in linqi — linqi--2026-06-05
CVE-2026-45433 Hardcoded Cryptographic Key Vulnerability in GX Earth ONT Models — GX Earth 2022--2026-06-04
CVE-2026-50226 Firmware Theft & IMEI Spoofing via Connect-OTA — Connect M6E 5G Portable WiFi Router--2026-06-04
CVE-2026-45041 RustFS: Hard-coded RSA private key in license verifier permits arbitrary license forgery — rustfs--2026-05-28
CVE-2026-24218 NVIDIA DGX OS 安全漏洞 — DGX Spark 8.1 High2026-05-20
CVE-2026-31986 Apache OFBiz: Unauthenticated RCE via Default JWT Signing Key and Widget Template Injection — Apache OFBiz--2026-05-19
CVE-2026-8739 Sanluan PublicCMS SafeConfigComponent.java getSignKey hard-coded key — PublicCMS 5.3 Medium2026-05-17
CVE-2026-25107 ELECOM WRC和ELECOM WAB 安全漏洞 — WRC-X1800GS-B--2026-05-13
CVE-2026-44278 Fortinet FortiClientWindows 安全漏洞 — FortiClientWindows 2.1 Low2026-05-12
CVE-2025-40946 Siemens多款产品 安全漏洞 — blueplanet 100 NX3 M8 8.3 High2026-05-12
CVE-2026-33362 Meari SDK hardcoded cryptographic keys — com.meari.sdk 8.6 High2026-05-11
CVE-2026-8243 Industrial Application Software IAS Canias ERP JNLP Deployment Endpoint hard-coded key — Canias ERP 5.3 Medium2026-05-10
CVE-2026-6787 Usage of a hard-coded cryptographic key in WatchGuard Agent allows inclusion of code into existing process — WatchGuard Agent 8.4AIHighAI2026-05-06
CVE-2026-42518 Information Disclosure Vulnerability in e-Sushrut HMIS — e-Sushrut, Hospital Management Information System (HMIS) 9.1AICriticalAI2026-04-29
CVE-2026-7306 Xuxueli xxl-job OpenAPI Endpoint OpenApiController.java hard-coded key — xxl-job 5.6 Medium2026-04-28
CVE-2026-32644 Milesight Cameras Use of Hard-coded Cryptographic Key — MS-Cxx63-PD 9.8 Critical2026-04-27
CVE-2026-7018 Datavane Datavines JWT Token TokenManager.java hard-coded key — Datavines 5.6 Medium2026-04-26
CVE-2026-6611 liangliangyy DjangoBlog File Upload Endpoint settings.py hard-coded key — DjangoBlog 3.1 Low2026-04-20
CVE-2026-32958 Silex SD-330AC和Silex AMC Manager 安全漏洞 — SD-330AC 6.5 Medium2026-04-20
CVE-2026-6580 liangliangyy DjangoBlog Amap API Call views.py hard-coded key — DjangoBlog 7.3 High2026-04-19
CVE-2026-32324 Anviz CX7 Firmware Use of Hard-coded Cryptographic Key — Anviz CX7 Firmware 7.7 High2026-04-17
CVE-2026-5426 KnowledgeDeliver deployments before February 24, 2026 use a static ASP.NET/IIS machineKey value — KnowledgeDeliver 9.8AICriticalAI2026-04-16
CVE-2026-39810 Fortinet FortiClientEMS 安全漏洞 — FortiClientEMS 5.2 Medium2026-04-14
CVE-2026-33266 Apache OpenMeetings: Hardcoded Remember-Me Cookie Encryption Key and Salt — Apache OpenMeetings 9.8AICriticalAI2026-04-09
CVE-2026-5622 hcengineering Huly Platform JWT Token token.ts hard-coded key — Huly Platform 3.7 Low2026-04-06
CVE-2026-5549 Tenda AC10 RSA 2048-bit Private Key privkeySrv.pem hard-coded key — AC10 5.3 Medium2026-04-05
CVE-2026-5527 Tenda 4G03 Pro ECDSA P-256 Private Key server.key hard-coded key — 4G03 Pro 5.3 Medium2026-04-04

Vulnerabilities classified as CWE-321 (使用硬编码的密码学密钥) represent 262 CVEs. The CWE taxonomy describes the weakness; review individual CVEs for product-specific impact.