---
title: "CWE-555: J2EE Misconfiguration: Plaintext Password in Configuration File"
url: https://radicalnotion.ai/cwe/cwe-555
type: cwe
description: "The J2EE application stores a plaintext password in a configuration file."
updated: 2026-11-10
source: RadicalNotion.AI
license: CC BY-NC 4.0 (https://creativecommons.org/licenses/by-nc/4.0/)
---

# CWE-555: J2EE Misconfiguration: Plaintext Password in Configuration File

- **Abstraction:** Variant
- **Structure:** Simple
- **Status:** Draft
- **CVEs with this as primary weakness:** 2
- **Of those, in CISA KEV:** 0
- **New in 2026:** 0
- **CWE catalog version:** 4.21

## Description

The J2EE application stores a plaintext password in a configuration file.

## Modes of introduction

| Phase | Note |
| --- | --- |
| Architecture and Design | - |
| Implementation | - |

## Applicable platforms

**Languages:** Java (Undetermined)

## Common consequences

| Scope | Impact | Note |
| --- | --- | --- |
| Access Control | Bypass Protection Mechanism | Storing a plaintext password in a configuration file allows anyone who can read the file to access the password-protected resource, making it an easy target for attackers. |

## Potential mitigations

### Architecture and Design

Do not hardwire passwords into your software.

### Architecture and Design

Use industry standard libraries to encrypt passwords before storage in configuration files.

## 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

Below is a snippet from a Java properties file in which the LDAP server password is stored in plaintext.

Bad code:

```java
webapp.ldap.username=secretUsername
webapp.ldap.password=secretPassword
```

## Real CVEs with this weakness

| CVE | Title | Severity | CVSS | EPSS | CISA KEV | Published |
| --- | --- | --- | --- | --- | --- | --- |
| CVE-2023-20059 | Cisco DNA Center Information Disclosure Vulnerability | medium | 6.5 | - | No | 2023-03-23 |
| CVE-2025-46119 | - | medium | 6.3 | - | No | 2025-07-21 |

## Related weaknesses

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

## Frequently asked questions

### What is CWE-555?

The J2EE application stores a plaintext password in a configuration file.

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

2 recorded CVEs are attributed to CWE-555, including CVE-2023-20059 and CVE-2025-46119.

### How do you prevent CWE-555?

Do not hardwire passwords into your software.

### How is CWE-555 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-555?

Exploiting CWE-555 can lead to: Bypass Protection Mechanism.

### Is CWE-555 actively exploited?

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

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

---

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