CWEweakness
CWE-258 Empty Password in Configuration File
High
Official page ↗
- Abstraction
- Variant
- Structure
- Simple
- Status
- Incomplete
- Likelihood of exploit
- High
- Languages
- Not Language-Specific
- CWE version
- 5.0
Description
Using an empty string as a password is insecure.
Common consequences
• Access Control: Gain Privileges or Assume Identity
Potential mitigations
• [System Configuration] 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.
Detection methods
• Automated Static Analysis: 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.)
Observed examples
• CVE-2022-26117: Network access control (NAC) product has a configuration file with an empty password
Related
Observed example · CVE (1)
- CVE-2022-26117 An empty password in configuration file vulnerability [CWE-258] in FortiNAC version 8.3.7 and below, 8.5.2 and below, 8.5.4, 8.6.0, 8.6.5… vulnerability
Child of · CWE (2)
Referenced by CVE · weakness (13)
- CVE-2026-113736 A vulnerability has been found in D-Link DHP-W610AV 1.02EUb03. vulnerability
- CVE-2026-84398 CM2507 IP cameras accept an empty password for a privileged account exposed through its ONVIF management service. vulnerability
- CVE-2025-15679 Under certain circumstances such as reset to factory default operation, the BMC root account is made active without a password on… vulnerability
- CVE-2025-9276 Cockroach Labs cockroach-k8s-request-cert Empty Root Password Authentication Bypass Vulnerability. vulnerability
- CVE-2025-4395 Medtronic MyCareLink Patient Monitor has a built-in user account with an empty password, which allows an attacker with physical access to… vulnerability
- CVE-2024-35137 IBM Security Access Manager Docker 10.0.0.0 through 10.0.7.1 could allow a local user to possibly elevate their privileges due to sensitive… vulnerability
- CVE-2024-4106 A vulnerability has been found in FAST/TOOLS and CI Server. vulnerability
- CVE-2024-28744 The password is empty in the initial configuration of ACERA 9010-08 firmware v02.04 and earlier, and ACERA 9010-24 firmware v02.04 and… vulnerability
- CVE-2023-43016 IBM Security Access Manager Container (IBM Security Verify Access Appliance 10.0.0.0 through 10.0.6.1 and IBM Security Verify Access Docker… vulnerability
- CVE-2023-39439 SAP Commerce Cloud may accept an empty passphrase for user ID and passphrase authentication, allowing users to log into the system without… vulnerability
- CVE-2020-29478 CA Service Catalog 17.2 and 17.3 contain a vulnerability in the default configuration of the Setup Utility that may allow a remote attacker… vulnerability
- CVE-2019-5021 Versions of the Official Alpine Linux Docker images (since v3.3) contain a NULL password for the `root` user. vulnerability
- CVE-2018-17914 InduSoft Web Studio versions prior to 8.1 SP2, and InTouch Edge HMI (formerly InTouch Machine Edition) versions prior to 2017 SP2. vulnerability
Referenced by OWASP · mapped cwe (1)
- A07:2025 Authentication Failures Top 10 2025