CWE-1295: Debug Messages Revealing Unnecessary Information
The product fails to adequately prevent the revealing of unnecessary and potentially sensitive system information within debugging messages.
Last updated
Overview
Debug messages are messages that help troubleshoot an issue by revealing the internal state of the system. For example, debug data in design can be exposed through internal memory array dumps or boot logs through interfaces like UART via TAP commands, scan chain, etc. Thus, the more information contained in a debug message, the easier it is to debug. However, there is also the risk of revealing information that could help an attacker either decipher a vulnerability, and/or gain a better understanding of the system. Thus, this extra information could lower the "security by obscurity" factor. While "security by obscurity" alone is insufficient, it can help as a part of "Defense-in-depth".
Real-world CVEs
19 recorded CVEs are caused by CWE-1295 (Debug Messages Revealing Unnecessary Information). The highest-severity and most recent are shown first. 1 new CWE-1295 CVE has been recorded so far in 2026 (8 in 2025).
- CVE-2024-38516High · CVSS 8.8 · EPSS 40th2024-06-25
- CVE-2025-31001
WordPress GTM Kit plugin <= 2.4.0 - Sensitive Data Exposure vulnerability
High · CVSS 7.5 · EPSS 38th2025-04-01 - CVE-2024-45784
Apache Airflow: Sensitive configuration values are not masked in the logs by default
High · CVSS 7.5 · EPSS 67th2024-11-15 - CVE-2023-5392High · CVSS 7.5 · EPSS 38th2024-04-11
- CVE-2023-4215High · CVSS 7.5 · EPSS 37th2023-10-16
- CVE-2025-42604
Detailed Error Response Vulnerability in Meon KYC solutions
Medium · CVSS 6.9 · EPSS 35th2025-04-23 - CVE-2025-2877
Event-driven-ansible: exposure inventory passwords in plain text when starting a rulebook activation with verbosity set to debug in eda
Medium · CVSS 6.5 · EPSS 30th2025-03-28 - CVE-2025-12910Medium · CVSS 6.2 · EPSS 1th2025-11-07
- CVE-2025-20643Medium · CVSS 5.7 · EPSS 1th2025-02-03
- CVE-2025-2469
Debug Messages Revealing Unnecessary Information in GitLab
Medium · CVSS 5.3 · EPSS 29th2025-04-10 - CVE-2021-31412Medium · CVSS 5.3 · EPSS 68th2021-06-24
- CVE-2025-46775Medium · CVSS 5.2 · EPSS 5th2025-11-18
Showing 12 of 19 recorded CWE-1295 CVEs. Track new ones as they are published and get AI-written analysis and fixes.
Monitor CWE-1295 vulnerabilitiesCommon consequences
What can happen when CWE-1295 is exploited.
Read Memory, Bypass Protection Mechanism, Gain Privileges or Assume Identity, Varies by Context
Affects: Confidentiality, Integrity, Availability, Access Control, Accountability, Authentication, Authorization, Non-Repudiation
How it happens
When it is introduced
Typically introduced during these phases of the software lifecycle.
How to prevent it
Practical mitigations for CWE-1295, grouped by where in the lifecycle they apply.
Ensure that a debug message does not reveal any unnecessary information during the debug process for the intended response.
How to detect it
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.)
Code examples
Illustrative examples from MITRE showing how the weakness appears in code.
This example here shows how an attacker can take advantage of unnecessary information in debug messages.
Illustrative examples
Real CVEs that MITRE cites as examples of this weakness.
- CVE-2022-34364 — Java-based SDK for TLS has a debug message with unnecessary information
- CVE-2021-25476 — Digital Rights Management (DRM) capability for mobile platform leaks pointer information, simplifying ASLR bypass
- CVE-2020-24491 — Processor generates debug message that contains sensitive information ("addresses of memory transactions").
- CVE-2017-18326 — modem debug messages include cryptographic keys
Attack patterns
CAPEC attack patterns that exploit this weakness.
Frequently asked questions
Common questions about CWE-1295.
- What is CWE-1295?
- The product fails to adequately prevent the revealing of unnecessary and potentially sensitive system information within debugging messages.
- What CVEs are caused by CWE-1295?
- 19 recorded CVEs are attributed to CWE-1295, including CVE-2024-38516, CVE-2025-31001, CVE-2024-45784.
- How do you prevent CWE-1295?
- Ensure that a debug message does not reveal any unnecessary information during the debug process for the intended response.
- How is CWE-1295 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-1295?
- Exploiting CWE-1295 can lead to: Read Memory, Bypass Protection Mechanism, Gain Privileges or Assume Identity, Varies by Context.
- Is CWE-1295 actively exploited?
- 19 recorded CVEs are caused by CWE-1295; none are currently in CISA's KEV catalog of actively exploited flaws.
References
- MITRE CWE definition (CWE-1295) (opens in a new tab)
- CWE-1295 vulnerabilities on NVD (opens in a new tab)
- Learn: What is a CWE?
Weakness data is sourced from the MITRE CWE catalog (v4.20). CVE associations are aggregated and kept current by RadicalNotion.AI.
Stay ahead of CWE-1295
Get alerted the moment a new CWE-1295 vulnerability affects your stack, with AI-written analysis, severity context, and remediation guidance.