CWE-532: Insertion of Sensitive Information into Log File

low-risk

The product writes sensitive information to a log file.

Abstraction: Base

Common Consequences

Confidentiality Read Application Data

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

Real-World Examples (10)

CVE CVSS EPSS KEV
CVE-2023-43261 7.5 93.1%
CVE-2023-43261 7.5 93.1%
CVE-2019-1622 5.3 84.8%
CVE-2020-35234 7.5 81.5%
CVE-2024-20440 7.5 77.3%
CVE-2024-20440 7.5 77.3%
CVE-2025-14437 7.5 47.6%
CVE-2023-22649 8.4 45.2%
CVE-2018-12604 7.5 22.1%
CVE-2024-9466 6.5 20.1%
1
/ 100
low-risk
Active Threat 1/50 · Minimal
Exploit Availability 0/50 · Minimal