CWE-215: Insertion of Sensitive Information Into Debugging Code
The product inserts sensitive information into debugging code.
Last updated
The product inserts sensitive information into debugging code.
Last updated
29 recorded CVEs are caused by CWE-215 (Insertion of Sensitive Information Into Debugging Code). The highest-severity and most recent are shown first. 17 new CWE-215 CVEs have been recorded so far in 2026 (5 in 2025).
Cadmos LTI exposure of sensitive information via debug mode
SiYuan before 3.7.4 Unauthenticated Debug Endpoint Information Disclosure
CF CLI does not sanitize user's password in verbose/trace/debug
CVE-2026-22061 Debug Log Information Disclosure Vulnerability in Trident
ksmbd: Don't log keys in SMB3 signing and encryption key generation
NATS credentials are exposed in monitoring port via command-line argv
crypto: caam - use print_hex_dump_devel to guard key hex dumps
Exposed tokens in SUSE Rancher AI Agent logs
YesWiki from 4.6.0 before 4.7.0 SQL Query Disclosure via showreq Parameter
Webkul Aureus ERP composer.json insertion of sensitive information into debugging code
Showing 12 of 29 recorded CWE-215 CVEs. Get an alert for each new one, with AI-written analysis and fixes.
Monitor these CVEsWhat can happen when CWE-215 is exploited.
Read Application Data
Affects: Confidentiality
Sensitive information could be exposed if the debugging code is not disabled in production.
Practical mitigations for CWE-215, grouped by where in the lifecycle they apply.
Do not leave debug statements that could be executed in the source code. Ensure that all debug information is eradicated before releasing the software.
Compartmentalize the system to have "safe" areas where trust boundaries can be unambiguously drawn. Do not allow sensitive data to go outside of the trust boundary and always be careful when interfacing with a compartment outside of the safe area.
Ensure that appropriate compartmentalization is built into the system design, and the compartmentalization allows for and reinforces privilege separation functionality. Architects and designers should rely on the principle of least privilege to decide the appropriate time to use privileges and the time to drop privileges.
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
MITRE examples of the weakness in code.
The following program changes its behavior based on a debug flag.
Vulnerable example
<% if (Boolean.getBoolean("debugEnabled")) {
%>
User account number: <%= acctNo %>
<%
} %>The code writes sensitive debug information to the client browser if the "debugEnabled" flag is set to true .
Real CVEs that MITRE cites as examples of this weakness.
Common questions about CWE-215.
Weakness data is sourced from the MITRE CWE catalog (v4.21). CVE associations are aggregated and kept current by RadicalNotion.AI.
Get an alert when a new CWE-215 CVE affects your products, with AI-written analysis and remediation steps.