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.
[object Object]
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-905097.32026-09-13CVE-2026-850836.82026-09-11CVE-2026-759409.12026-09-10CVE-2026-170382026-09-10CVE-2026-816408.82026-09-09CVE-2026-799507.52026-09-09CVE-2026-797407.52026-09-09CVE-2026-797387.52026-09-09CVE-2026-797314.42026-09-09CVE-2026-864642026-09-08CVE-2026-866737.32026-09-08CVE-2026-801706.52026-09-07CVE-2026-801347.72026-09-07CVE-2026-862767.32026-09-07CVE-2026-861504.12026-09-05CVE-2026-778476.52026-09-04CVE-2026-55226.72026-09-04CVE-2026-851495.32026-09-04CVE-2026-851489.82026-09-04CVE-2026-851469.82026-09-04