CWEweakness
CWE-321 Use of Hard-coded Cryptographic Key
High
Official page ↗
- Abstraction
- Variant
- Structure
- Simple
- Status
- Draft
- Likelihood of exploit
- High
- Languages
- Go, Not Language-Specific
- CWE version
- 5.0
Description
The product uses a hard-coded, unchangeable cryptographic key.
Common consequences
• 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.
Potential mitigations
• [Architecture and Design] Prevention schemes mirror that of hard-coded password storage.
Detection methods
• 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.)
Observed examples
• CVE-2022-29960: Engineering Workstation uses hard-coded cryptographic keys that could allow for unauthorized filesystem access and privilege escalation
• CVE-2022-30271: Remote Terminal Unit (RTU) uses a hard-coded SSH private key that is likely to be used in typical deployments.
• CVE-2020-10884: WiFi router service has a hard-coded encryption key, allowing root access
• CVE-2014-2198: Communications / collaboration product has a hardcoded SSH private key, allowing access to root account
Related
Observed example · CVE (4)
- CVE-2022-29960 Emerson OpenBSI through 2022-04-29 uses weak cryptography. vulnerability
- CVE-2022-30271 The Motorola ACE1000 RTU through 2022-05-02 ships with a hardcoded SSH private key and initialization scripts (such as… vulnerability
- CVE-2020-10884 This vulnerability allows network-adjacent attackers execute arbitrary code on affected installations of TP-Link Archer A7 Firmware Ver:… vulnerability
- CVE-2014-2198 Cisco Unified Communications Domain Manager (CDM) in Unified CDM Platform Software before 4.4.2 has a hardcoded SSH private key, which… vulnerability
Child of · CWE (1)
- CWE-798 Use of Hard-coded Credentials weakness
Referenced by CVE · weakness (417)
- CVE-2025-62839 An use of hard-coded cryptographic key vulnerability has been reported to affect HBS 3 Hybrid Backup Sync and Hybrid Backup Sync. vulnerability
- CVE-2025-62841 An use of hard-coded cryptographic key vulnerability has been reported to affect HBS 3 Hybrid Backup Sync and Hybrid Backup Sync. vulnerability
- CVE-2026-86384 Dell PowerProtect Data Domain, Feature Release versions 7.7.1.0 through 8.8, LTS2024 release versions 7.13.1.0 through 7.13.1.80, LTS2025… vulnerability
- CVE-2026-102812 A hard-coded cryptographic key vulnerability exists in the user-configuration backup mechanism of TP-Link RE305 V3 and Archer C7 V5. vulnerability
- CVE-2026-111460 A hard-coded cryptographic key vulnerability exists in the OnCell G3150A-LTE Series. vulnerability
- CVE-2026-117564 nest-admin before 1.0.1 contains an authentication bypass vulnerability that allows unauthenticated attackers to forge administrator tokens… vulnerability
- CVE-2014-125135 A security vulnerability has been detected in OctoPrint 1.0.0/1.1.0. vulnerability
- CVE-2026-110474 This vulnerability exists in the CreditNirvana Agentic AI Call Centre application due to hardcoded static API Key in the client side… vulnerability
- CVE-2026-112345 TTLock Android application before v9.8.260718 and associated smart-lock firmware contain a hardcoded static AES key vulnerability that… vulnerability
- CVE-2026-116747 Kener 3.0.0 before 4.1.10 contains an authentication bypass vulnerability that allows unauthenticated attackers to forge session tokens by… vulnerability
- CVE-2026-71456 Use of hard-coded cryptographic key vulnerability in Johnson Controls Kantech Entrapass allows Padding Oracle Crypto Attack. vulnerability
- CVE-2026-76298 In Splunk Enterprise versions below 10.4.4 and 10.2.8, a user who does not hold the "admin" or "power" Splunk roles could derive the… vulnerability
- CVE-2026-89052 A hardcoded cryptographic key management vulnerability exists in Archer C6 due to the use of a universal cryptographic key shared across… vulnerability
- CVE-2026-113466 A security vulnerability has been detected in MinIO up to RELEASE.2025-10-15T17-29-55Z. vulnerability
- CVE-2026-82891 IBM Guardium Data Protection 12.1, and 12.2 could allow a remote attacker to obtain sensitive information due to use of a hard-coded… vulnerability
- CVE-2026-112014 LobsterAI before 2026.10.16 contains a hardcoded password vulnerability that allows attackers to decrypt exported provider API keys… vulnerability
- CVE-2026-109813 A hard-coded cryptographic key vulnerability exists in the `/usr/bin/sysman` of some of Moxa's industrial computing products. vulnerability
- CVE-2026-111612 netdisk-fast-download through 0.4.8 contains an information disclosure vulnerability that allows unauthenticated attackers to retrieve… vulnerability
- CVE-2026-111633 ZKEACMS through 4.4 contains an authentication bypass vulnerability that allows unauthenticated attackers to forge REST API JWT bearer… vulnerability
- CVE-2026-111636 OpenBMB StaffDeck through 0.5.6 contains an authentication bypass vulnerability that allows unauthenticated attackers to forge… vulnerability
- CVE-2026-111642 FastapiAdmin through 3.0 contains a hard-coded JWT signing secret in backend/app/config/setting.py that allows low-privileged users to… vulnerability
- CVE-2026-111690 Simple Admin Core through 1.8.7 contains an authentication bypass vulnerability that allows unauthenticated attackers to forge super… vulnerability
- CVE-2026-111692 DataBuff ai-apm-web through 0.1.10 contains an authentication bypass vulnerability that allows unauthenticated attackers to forge admin… vulnerability
- CVE-2026-111696 data-platform-open through commit efeacd3 uses a hardcoded, publicly known default AES key in AesPasswordEncAndDecServiceImpl, allowing… vulnerability
- CVE-2026-105035 The EnergizeLab FirmwareUpdater (AArch64 ELF, distributed in the CDN bin.zip) uses a single hard-coded AES key shared by all installations. vulnerability
- CVE-2026-111347 go-ldap-admin through 0.6.2 embeds a hard-coded RSA private key, published in the public repository, that protects encrypted login… vulnerability
- CVE-2026-100413 SeaweedFS is a distributed storage system for files and blobs. vulnerability
- CVE-2026-107171 An Hardcoded Cryptographic Key vulnerability existed in Trellix Agent 5.8.4 via mfecryptc.dll leads to Database Decryption by Regular Users. vulnerability
- CVE-2026-108336 When the default self-signed certificate is used, an attacker could gain administrative access to the application. vulnerability
- CVE-2026-110612 vlife through 2.0.1 contains an authentication bypass vulnerability that allows unauthenticated attackers to forge JWTs using the hardcoded… vulnerability
Referenced by CWE · can precede (1)
- CWE-656 Reliance on Security Through Obscurity weakness
Referenced by CWE · has member (1)
- CWE-1468 Weaknesses Addressed by the OWASP Golang Secure Coding Practices Guide view