---
title: "CWE-313: Cleartext Storage in a File or on Disk"
url: https://radicalnotion.ai/cwe/cwe-313
type: cwe
description: "The product stores sensitive information in cleartext in a file, or on disk."
updated: 2026-11-10
source: RadicalNotion.AI
license: CC BY-NC 4.0 (https://creativecommons.org/licenses/by-nc/4.0/)
---

# CWE-313: Cleartext Storage in a File or on Disk

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

## Description

The product stores sensitive information in cleartext in a file, or on disk.

## Modes of introduction

| Phase | Note |
| --- | --- |
| Architecture and Design | OMISSION: This weakness is caused by missing a security tactic during the architecture and design phase. |

## Common consequences

| Scope | Impact | Note |
| --- | --- | --- |
| Confidentiality | Read Application Data, Read Files or Directories | The sensitive information could be read by attackers with access to the file, or with physical or administrator access to the raw disk. Even if the information is encoded in a way that is not human-readable, certain techniques could determine which encoding is being used, then decode the information. |

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

Effectiveness: High

## 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 they are stored in cleartext.

Bad code:

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

Bad code:

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

## Observed examples

| CVE | Description |
| --- | --- |
| CVE-2001-1481 | Cleartext credentials in world-readable file. |
| CVE-2005-1828 | Password in cleartext in config file. |
| CVE-2005-2209 | Password in cleartext in config file. |
| CVE-2002-1696 | Decrypted copy of a message written to disk given a combination of options and when user replies to an encrypted message. |
| CVE-2004-2397 | Cleartext storage of private key and passphrase in log file when user imports the key. |

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

| CVE | Title | Severity | CVSS | EPSS | CISA KEV | Published |
| --- | --- | --- | --- | --- | --- | --- |
| CVE-2026-125651 | Apache Arrow Rust: Bloom filters written as plaintext when writing encrypted Parquet | critical | 9.1 | - | No | 2026-11-23 |
| CVE-2016-6538 | TrackR Bravo mobile application stores account passwords in cleartext | high | 8.8 | - | No | 2018-07-06 |
| CVE-2024-20448 | Cisco Nexus Dashboard Fabric Controller Credential Information Disclosure Vulnerability | high | 8.6 | - | No | 2024-10-02 |
| CVE-2026-52783 | OpenProject: Information Disclosure (cleartext storage of data) on localhost through memcached via Others "storage. .httpx\_access\_token" leads to Sensitive Data Exposure | high | 8.2 | - | No | 2026-06-26 |
| CVE-2026-24349 | Insufficient protection of key material in WinCC Certificate Manager that could allow an attacker to extract sensitive information. | high | 8.2 | - | No | 2026-06-09 |
| CVE-2016-6547 | Zizai Tech Nut stores the account password in cleartext | high | 7.8 | - | No | 2018-07-13 |
| CVE-2016-6546 | iTrack Easy mobile application stores the user password in base-64 encoding/cleartext | high | 7.8 | - | No | 2018-07-13 |
| CVE-2025-64305 | Columbia Weather Systems MicroServer Cleartext Storage in a File or on Disk | high | 7.1 | - | No | 2026-01-07 |
| CVE-2024-38280 | Cleartext Storage in a File or on Disk in Motorola Solutions Vigilant Fixed LPR Coms Box (BCAV1F2-C600) | high | 7.0 | - | No | 2024-06-13 |
| CVE-2026-5531 | SourceCodester Student Result Management System HTTP GET Request login\_credentials.txt cleartext storage in file | medium | 6.9 | - | No | 2026-04-05 |
| CVE-2025-4397 | Medtronic MyCareLink Patient Monitor Data Encryption Weakness | medium | 6.8 | - | No | 2026-05-07 |
| CVE-2024-6785 | MXview One and MXview One Central Manager Series store cleartext credentials in a local file | medium | 6.8 | - | No | 2024-09-21 |

## Related weaknesses

| Relationship | CWE | Name |
| --- | --- | --- |
| Parent | [CWE-312](https://radicalnotion.ai/cwe/cwe-312) | Cleartext Storage of Sensitive Information |

## Taxonomy mappings

| Taxonomy | Entry | Id | Fit |
| --- | --- | --- | --- |
| PLOVER | Plaintext Storage in File or on Disk | - | - |
| Software Fault Patterns | Exposed Data | SFP23 | - |

## Frequently asked questions

### What is CWE-313?

The product stores sensitive information in cleartext in a file, or on disk.

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

33 recorded CVEs are attributed to CWE-313, including CVE-2026-125651, CVE-2016-6538 and CVE-2024-20448.

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

Exploiting CWE-313 can lead to: Read Application Data, Read Files or Directories.

### Is CWE-313 actively exploited?

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

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

---

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