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

Goal: 1000 CNY · Raised: 1359 CNY

100%

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

382 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 Control Bypass 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 Design Prevention 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 ID Title CVSS Severity Published
CVE-2025-68948 SiYuan: Information Disclosure and Authentication Bypass via Hardcoded Session Secret — siyuan 8.4 - 2025-12-27
CVE-2025-52601 Hardcoding sensitive information — Device Manager 4.3 - 2025-12-26
CVE-2025-15016 Ragic|Enterprise Cloud Database - Hard-coded Cryptographic Key — Enterprise Cloud Database 9.8 Critical 2025-12-22
CVE-2025-15005 CouchCMS reCAPTCHA config.example.php hard-coded key — CouchCMS 3.7 Low 2025-12-22
CVE-2025-14651 MartialBE one-hub docker-compose.yml hard-coded key — one-hub 3.7 Low 2025-12-14
CVE-2025-54947 Apache StreamPark: Use hard-coded key vulnerability — Apache StreamPark 9.8AI Critical AI 2025-12-12
CVE-2025-34256 Advantech WISE-DeviceOn Server < 5.4 Hard-coded JWT Key Authentication Bypass — WISE-DeviceOn Server 10.0 Critical 2025-12-05
CVE-2025-13948 opsre go-ldap-admin JWT docker-compose.yaml hard-coded key — go-ldap-admin 5.6 Medium 2025-12-03
CVE-2025-66454 Arcade MCP Default Hardcoded Worker Secret Allows Full Unauthorized Access to All HTTP MCP Worker Endpoints — arcade-mcp 6.5 Medium 2025-12-02
CVE-2025-13877 nocobase JWT Service jwt-service.ts hard-coded key — nocobase 5.6 Medium 2025-12-02
CVE-2025-11781 Use of hardcoded cryptographic keys in Circutor SGE-PLC1000/SGE-PLC50 — Circutor 7.8AI High AI 2025-12-02
CVE-2025-6666 motogadget mo.lock Ignition Lock NFC hard-coded key — mo.lock Ignition Lock 2.0 Low 2025-11-29
CVE-2025-64304 FujiTelevison FOD app 安全漏洞 — "FOD" App for Android 5.5AI Medium AI 2025-11-25
CVE-2025-65998 Apache Syncope: Default AES key used for internal password encryption — Apache Syncope 6.5AI Medium AI 2025-11-24
CVE-2025-13316 Hard-coded encryption keys in Twonky Server — Twonky Server 9.8AI Critical AI 2025-11-19
CVE-2025-12177 Download Manager <= 3.3.30 - Unauthenticated Cron Trigger due to Hardcoded Cron Key — Download Manager 5.3 Medium 2025-11-08
CVE-2025-12615 PHPGurukul News Portal settings.py hard-coded key — News Portal 5.0 Medium 2025-11-03
CVE-2025-12599 Multiple Devices are Sharing the Same Secrets for SDKSocket (TCP/5000) — BLU-IC2 7.5 - 2025-11-01
CVE-2025-54471 NeuVector is shipping cryptographic material into its binary — neuvector 6.5 Medium 2025-10-30
CVE-2025-46582 Private Key Disclosure Vulnerability in ZTE ZXMP M721 Product — ZXMP M721 7.7 High 2025-10-27
CVE-2025-34500 Shuffle Master Deck Mate 2 Insecure Update Chain — Deck Mate 2 7.0 High 2025-10-24
CVE-2025-11899 Flowring Technology|Agentflow - Use of Hard-coded Cryptographic Key — Agentflow 8.1 High 2025-10-17
CVE-2025-58426 Desknets Neo 安全漏洞 — desknet's NEO 9.8AI Critical AI 2025-10-16
CVE-2025-11609 code-projects Hospital Management System express-session hard-coded key — Hospital Management System 3.7 Low 2025-10-11
CVE-2025-35052 Newforma Info Exchange (NIX) shared hard-coded secret key — Project Center 5.3 Medium 2025-10-09
CVE-2025-11290 CRMEB JWT HMAC Secret hard-coded key — CRMEB 5.6 Medium 2025-10-05
CVE-2025-24525 Keysight Ixia Vision Product Family Use of Hard-coded Cryptographic Key — Ixia Vision Product Family 7.5 High 2025-09-30
CVE-2025-34217 Vasion Print (formerly PrinterLogic) Undocumented Hardcoded SSH Key — Print Virtual Appliance Host 9.8 - 2025-09-30
CVE-2025-8625 Copypress Rest API 1.1 - 1.2 - Missing Configurable JWT Secret and File-Type Validation to Unauthenticated Remote Code Execution — Copypress Rest API 9.8 Critical 2025-09-30
CVE-2025-34211 Vasion Print (formerly PrinterLogic) Hardcoded SSL Certificate and Private Keys — Print Virtual Appliance Host 7.5AI High AI 2025-09-29

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