---
title: "CWE-258: Empty Password in Configuration File"
url: https://radicalnotion.ai/cwe/cwe-258
type: cwe
description: "Using an empty string as a password is insecure."
updated: 2026-11-10
source: RadicalNotion.AI
license: CC BY-NC 4.0 (https://creativecommons.org/licenses/by-nc/4.0/)
---

# CWE-258: Empty Password in Configuration File

- **Abstraction:** Variant
- **Structure:** Simple
- **Status:** Incomplete
- **Likelihood of exploit:** High
- **CVEs with this as primary weakness:** 14
- **Of those, in CISA KEV:** 0
- **New in 2026:** 4
- **CWE catalog version:** 4.21

## Description

Using an empty string as a password is insecure.

## Modes of introduction

| Phase | Note |
| --- | --- |
| Architecture and Design | - |
| Implementation | REALIZATION: This weakness is caused during implementation of an architectural security tactic. |
| Operation | - |

## Common consequences

| Scope | Impact | Note |
| --- | --- | --- |
| 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.)

## Demonstrative examples

### Example 1

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.

Bad code:

```java
# Java Web App ResourceBundle properties file
...
webapp.ldap.username=secretUsername
webapp.ldap.password=
...
```

Bad code:

```aspnet
...
<connectionStrings>
<add name="ud_DEV" connectionString="connectDB=uDB; uid=db2admin; pwd=; dbalias=uDB;" providerName="System.Data.Odbc" />
</connectionStrings>
...
```

## Observed examples

| CVE | Description |
| --- | --- |
| CVE-2022-26117 | Network access control (NAC) product has a configuration file with an empty password |

## Real CVEs with this weakness (sample of 12 of 14)

| CVE | Title | Severity | CVSS | EPSS | CISA KEV | Published |
| --- | --- | --- | --- | --- | --- | --- |
| CVE-2025-9276 | Cockroach Labs cockroach-k8s-request-cert Empty Root Password Authentication Bypass Vulnerability | critical | 9.8 | - | No | 2025-09-02 |
| CVE-2023-39439 | SAP Commerce accepts empty passphrases. | critical | 9.8 | - | No | 2023-08-08 |
| CVE-2019-5021 | Alpine Linux Docker Image root User Hard-Coded Credential Vulnerability | critical | 9.8 | - | No | 2019-05-08 |
| CVE-2018-17914 | Empty Password in Configuration File in AVEVA InduSoft Web Studio and InTouch Edge HMI (formerly InTouch Machine Edition) | critical | 9.8 | - | No | 2018-11-02 |
| CVE-2026-126812 | blueprintUE Self-Hosted Edition before 4.3.7 Empty MariaDB Root Password via Docker Compose | critical | 9.3 | - | No | 2026-11-11 |
| CVE-2026-113736 | D-Link DHP-W610AV HNAP Login defaultvalue.xml login\_prepare\_hnap empty password | critical | 9.3 | - | No | 2026-10-21 |
| CVE-2024-28744 | FURUNO SYSTEMS Managed Switch ACERA 9010 running in non MS mode with the initial configuration has no password | high | 8.8 | - | No | 2024-04-08 |
| CVE-2026-84398 | CareCam CM2507 Empty Password in Configuration File | high | 8.7 | - | No | 2026-09-18 |
| CVE-2020-29478 | - | high | 7.5 | - | No | 2021-01-05 |
| CVE-2025-15679 | BMC root account active without password on BullSequana XH3406 and XH3515 | high | 7.3 | - | No | 2026-09-11 |
| CVE-2023-43016 | IBM Security Access Manager Container unauthorized access | high | 7.3 | - | No | 2024-02-03 |
| CVE-2025-4395 | Medtronic MyCareLink Patient Monitor Empty Password Vulnerability | medium | 6.8 | - | No | 2025-07-24 |

## Related weaknesses

| Relationship | CWE | Name |
| --- | --- | --- |
| Parent | [CWE-260](https://radicalnotion.ai/cwe/cwe-260) | Password in Configuration File |
| Parent | [CWE-521](https://radicalnotion.ai/cwe/cwe-521) | Weak Password Requirements |

## Taxonomy mappings

| Taxonomy | Entry | Id | Fit |
| --- | --- | --- | --- |
| 7 Pernicious Kingdoms | Password Management: Empty Password in Configuration File | - | - |

## Frequently asked questions

### What is CWE-258?

Using an empty string as a password is insecure.

### What CVEs are caused by CWE-258?

14 recorded CVEs are attributed to CWE-258, including CVE-2025-9276, CVE-2023-39439 and CVE-2019-5021.

### How do you prevent CWE-258?

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.

### How is CWE-258 detected?

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.)

### What are the consequences of CWE-258?

Exploiting CWE-258 can lead to: Gain Privileges or Assume Identity.

### Is CWE-258 actively exploited?

14 recorded CVEs are caused by CWE-258; none are currently in CISA's KEV catalog of actively exploited flaws.

Primary source: [MITRE CWE](https://cwe.mitre.org/data/definitions/258.html)

---

Source: [RadicalNotion.AI](https://radicalnotion.ai/cwe/cwe-258). Licensed CC BY-NC 4.0; attribute RadicalNotion.AI and link the source page when you reuse this data.
