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-632395.42026-07-29CVE-2026-134637.52026-07-28CVE-2021-320878.82026-07-27CVE-2021-320858.82026-07-27CVE-2026-120012026-07-27CVE-2026-555799.82026-07-27CVE-2025-591802026-07-27CVE-2026-658799.82026-07-27CVE-2026-89832026-07-21CVE-2026-89822026-07-21CVE-2026-474109.82026-07-21CVE-2026-472558.22026-07-20CVE-2026-134469.82026-07-17CVE-2024-323875.72026-07-16CVE-2026-4533610.02026-07-16CVE-2026-493529.82026-07-15CVE-2026-617402026-07-15CVE-2026-616842026-07-15CVE-2026-372709.82026-07-07CVE-2026-571722026-07-07