- What is CWE-257?
- 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 CVEs are caused by CWE-257?
- 60 recorded CVEs are attributed to CWE-257, including CVE-2026-20128, CVE-2022-32519, CVE-2025-8095. 1 are listed in CISA's Known Exploited Vulnerabilities (KEV) catalog.
- How do you prevent CWE-257?
- Use strong, non-reversible encryption to protect stored passwords.
- How is CWE-257 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-257?
- Exploiting CWE-257 can lead to: Gain Privileges or Assume Identity.
- Is CWE-257 actively exploited?
- Yes. 1 CWE-257 vulnerabilities are in CISA's KEV catalog of actively exploited flaws, out of 60 recorded CVEs.