CWE•Base•Draft•20 recent CVEs
CWE-798Use of Hard-coded Credentials
Description
The product contains hard-coded credentials, such as a password or cryptographic key.
Common consequences
- Access Control→Bypass Protection Mechanism[object Object]
- Integrity,Confidentiality,Availability,Access Control,Other→Read Application Data,Gain Privileges or Assume Identity,Execute Unauthorized Code or Commands,Other[object Object]
Potential mitigations
- Architecture and Design[object Object]
- Architecture and DesignFor inbound authentication: Rather than hard-code a default username and password, key, or other authentication credentials for first time logins, utilize a "first login" mode that requires the user to enter a unique strong password or key.
- Architecture and DesignIf the product must contain hard-coded credentials or they cannot be removed, perform access control checks and limit which entities can access the feature that requires the hard-coded credentials. For example, a feature might only be enabled through the system console instead of through a network connection.
- Architecture and Design[object Object]
- Architecture and Design[object Object]
Related CWEs
Recent CVEs classified under this CWE
CVE-2026-1186016.32026-10-28CVE-2026-184497.52026-10-27CVE-2026-546316.32026-10-23CVE-2026-924507.52026-10-22CVE-2026-1142197.42026-10-22CVE-2026-879505.32026-10-22CVE-2026-764669.82026-10-21CVE-2026-539865.32026-10-21CVE-2026-1141199.82026-10-21CVE-2026-1140886.52026-10-21CVE-2026-1091268.82026-10-20CVE-2026-1121467.42026-10-19CVE-2026-1076179.82026-10-16CVE-2026-1112819.82026-10-15CVE-2026-1050338.82026-10-15CVE-2026-774275.92026-10-14CVE-2026-1106677.32026-10-14CVE-2026-819645.52026-10-13CVE-2026-537099.82026-10-13CVE-2026-1097582026-10-13