CWE · MITRE source
CWE-259Use of Hard-coded Password
The product contains a hard-coded password, which it uses for its own inbound authentication or for outbound communication to external components.
There are two main variations of a hard-coded password:
Last updated: 22 August 2026 14:14 UTC
OWASP Top 10 for Web (2025)
This weakness contributes to A07:2025 Authentication Failures.
Control responseHuman-reviewed
Answering this weakness across the control lifecycle, from our framework cross-walks.
NIST 800-53 r5 controls that address this weakness (4)AI-assisted
| Control | Title | Family | Why it addresses this CWE |
|---|---|---|---|
IA-5 | Authenticator Management | IA | Changing default authenticators prior to first use directly prevents use of hard-coded passwords. |
PM-16 | Threat Awareness Program | PM | Shared threat data frequently highlights products or deployments still using hard-coded passwords, enabling remediation that directly blocks credential-based attacks. |
SA-21 | Developer Screening | SA | Background checks and authorization requirements decrease the probability that a developer will hard-code passwords for later unauthorized access. |
SR-6 | Supplier Assessments and Reviews | SR | Reviews of supplier deliverables reduce the chance that hard-coded passwords are introduced into the system. |
Top CVEs of this weakness type, ranked by Risk Priority
| CVE | Risk | CVSS | EPSS | Published |
|---|---|---|---|---|
CVE-2024-7332 UPD | 8.6 | 9.8 | 0.2074 | 2024-08-01 |
CVE-2023-2645 UPD | 7.8 | 9.8 | 0.0315 | 2023-05-11 |
CVE-2025-8730 UPD | 7.8 | 9.8 | 0.0324 | 2025-08-08 |
CVE-2016-9358 UPD | 7.7 | 9.8 | 0.0213 | 2017-06-30 |
CVE-2015-3953 UPD | 7.7 | 9.8 | 0.0197 | 2019-03-25 |
CVE-2017-6022 UPD | 7.6 | 9.8 | 0.0175 | 2017-06-30 |
CVE-2014-5434 UPD | 7.6 | 9.8 | 0.0156 | 2019-03-26 |
CVE-2020-12016 UPD | 7.6 | 9.8 | 0.0186 | 2020-06-29 |
CVE-2020-12045 UPD | 7.6 | 9.8 | 0.0168 | 2020-06-29 |
CVE-2020-12047 UPD | 7.6 | 9.8 | 0.0168 | 2020-06-29 |
CVE-2021-27440 UPD | 7.6 | 9.8 | 0.0135 | 2021-03-25 |
CVE-2021-22729 UPD | 7.6 | 9.8 | 0.0176 | 2021-07-21 |
CVE-2022-45444 UPD | 7.6 | 10.0 | 0.0094 | 2023-01-18 |
CVE-2019-10881 UPD | 7.5 | 9.8 | 0.0099 | 2021-04-13 |
CVE-2021-38456 UPD | 7.5 | 9.8 | 0.0118 | 2021-10-12 |
CVE-2021-34601 UPD | 7.5 | 9.8 | 0.0104 | 2022-04-27 |
CVE-2017-20039 UPD | 7.5 | 9.8 | 0.0119 | 2022-06-11 |
CVE-2022-30271 UPD | 7.5 | 9.8 | 0.0098 | 2022-07-26 |
CVE-2022-22144 UPD | 7.5 | 9.8 | 0.0094 | 2022-08-05 |
CVE-2023-5222 UPD | 7.5 | 6.3 | 0.7452 | 2023-09-27 |
CVE-2024-32741 UPD | 7.5 | 10.0 | 0.0063 | 2024-05-14 |
CVE-2024-4708 UPD | 7.5 | 9.8 | 0.0100 | 2024-07-02 |
CVE-2023-46685 UPD | 7.5 | 9.8 | 0.0100 | 2024-07-08 |
CVE-2024-36526 UPD | 7.5 | 9.8 | 0.0088 | 2024-07-09 |
CVE-2025-27638 UPD | 7.5 | 9.8 | 0.0087 | 2025-03-05 |