CWE-257: Storing Passwords in a Recoverable Format

BaseIncompleteExploit Likelihood: High

The storage of passwords in a recoverable format makes them subject to password reuse attacks by malicious users. In fact, it should be noted that recoverable encrypted passwords provide no significant benefit over plaintext passwords since they are subject not only to reuse by malicious attackers but also by malicious insiders. If a system administrator can recover a password directly, or use a brute force search on the available information, the administrator can use the password on other accounts.

View on MITRE
Back to CWE Lookup

Technical Details

Structure
Simple

Applicable To

Languages
Not Language-Specific
Platforms

Frequently Asked Questions

What is CWE-257: Storing Passwords in a Recoverable Format?+

CWE-257: Storing Passwords in a Recoverable Format is a Common Weakness Enumeration (CWE) entry maintained by MITRE. The storage of passwords in a recoverable format makes them subject to password reuse attacks by malicious users. In fact, it should be noted that recoverable encrypted passwords provide no significant benefit over plaintext passwords since they are subject not only to reuse by malicious attackers but also by malicious insiders. If a system administrator can recover a password directly, or use a brute force search on the available information, the administrator can use the password on other accounts.

What are the security consequences of Storing Passwords in a Recoverable Format?+

If exploited, CWE-257 (Storing Passwords in a Recoverable Format) it can compromise Confidentiality and Access Control, leading to outcomes such as Gain Privileges or Assume Identity.

How do you prevent or mitigate Storing Passwords in a Recoverable Format?+

Recommended mitigations for CWE-257 include: Use strong, non-reversible encryption to protect stored passwords.

Which programming languages are affected by Storing Passwords in a Recoverable Format?+

CWE-257 commonly affects Not Language-Specific. Note that weaknesses are often language-agnostic patterns, so secure coding practices apply broadly.

What are real-world examples of Storing Passwords in a Recoverable Format?+

MITRE documents real CVEs mapped to CWE-257, including CVE-2022-30018. You can look up the full details of each CVE, including CVSS scores and remediation guidance, on our CVE Lookup tool.

What is the difference between a CWE and a CVE?+

A CWE (Common Weakness Enumeration) like CWE-257 describes a category of software weakness — the underlying flaw type. A CVE (Common Vulnerabilities and Exposures) identifies a specific, real-world vulnerability in a particular product. In short, a CWE is the kind of mistake, and a CVE is an instance of that mistake being found in software.

Learn More