CWE-258: Empty Password in Configuration File
Using an empty string as a password is insecure.
Last updated
Using an empty string as a password is insecure.
Last updated
14 recorded CVEs are caused by CWE-258 (Empty Password in Configuration File). The highest-severity and most recent are shown first. 4 new CWE-258 CVEs have been recorded so far in 2026 (2 in 2025).
Cockroach Labs cockroach-k8s-request-cert Empty Root Password Authentication Bypass Vulnerability
SAP Commerce accepts empty passphrases.
Alpine Linux Docker Image root User Hard-Coded Credential Vulnerability
Empty Password in Configuration File in AVEVA InduSoft Web Studio and InTouch Edge HMI (formerly InTouch Machine Edition)
blueprintUE Self-Hosted Edition before 4.3.7 Empty MariaDB Root Password via Docker Compose
D-Link DHP-W610AV HNAP Login defaultvalue.xml login_prepare_hnap empty password
FURUNO SYSTEMS Managed Switch ACERA 9010 running in non MS mode with the initial configuration has no password
CareCam CM2507 Empty Password in Configuration File
BMC root account active without password on BullSequana XH3406 and XH3515
IBM Security Access Manager Container unauthorized access
Medtronic MyCareLink Patient Monitor Empty Password Vulnerability
Showing 12 of 14 recorded CWE-258 CVEs. Get an alert for each new one, with AI-written analysis and fixes.
Monitor these CVEsWhat can happen when CWE-258 is exploited.
Gain Privileges or Assume Identity
Affects: Access Control
Typically introduced during these phases of the software lifecycle.
Practical mitigations for CWE-258, grouped by where in the lifecycle they apply.
Passwords should be at least eight characters long -- the longer the better. Avoid passwords that are in any way similar to other passwords you have. Avoid using words that may be found in a dictionary, names book, on a map, etc. Consider incorporating numbers and/or punctuation into your password. If you do use common words, consider replacing letters in that word with numbers and punctuation. However, do not use "similar-looking" punctuation. For example, it is not a good idea to change cat to c@t, ca+, (@+, or anything similar. Finally, it is never appropriate to use an empty string as a password.
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.)
MITRE examples of the weakness in code.
The following examples show a portion of properties and configuration files for Java and ASP.NET applications. The files include username and password information but the password is provided as an empty string.
Vulnerable example
# Java Web App ResourceBundle properties file
...
webapp.ldap.username=secretUsername
webapp.ldap.password=
...Vulnerable example
...
<connectionStrings>
<add name="ud_DEV" connectionString="connectDB=uDB; uid=db2admin; pwd=; dbalias=uDB;" providerName="System.Data.Odbc" />
</connectionStrings>
...Real CVEs that MITRE cites as examples of this weakness.
Common questions about CWE-258.
Weakness data is sourced from the MITRE CWE catalog (v4.21). CVE associations are aggregated and kept current by RadicalNotion.AI.
Get an alert when a new CWE-258 CVE affects your products, with AI-written analysis and remediation steps.