---
title: "CWE-1295: Debug Messages Revealing Unnecessary Information"
url: https://radicalnotion.ai/cwe/cwe-1295
type: cwe
description: "The product fails to adequately prevent the revealing of unnecessary and potentially sensitive system information within debugging messages."
updated: 2026-11-10
source: RadicalNotion.AI
license: CC BY-NC 4.0 (https://creativecommons.org/licenses/by-nc/4.0/)
---

# CWE-1295: Debug Messages Revealing Unnecessary Information

- **Abstraction:** Base
- **Structure:** Simple
- **Status:** Incomplete
- **CVEs with this as primary weakness:** 22
- **Of those, in CISA KEV:** 0
- **New in 2026:** 2
- **CWE catalog version:** 4.21

## Description

The product fails to adequately prevent the revealing of unnecessary and potentially sensitive system information within debugging messages.

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

## Modes of introduction

| Phase | Note |
| --- | --- |
| Implementation | - |

## Common consequences

| Scope | Impact | Note |
| --- | --- | --- |
| Confidentiality, Integrity, Availability, Access Control, Accountability, Authentication, Authorization, Non-Repudiation | Read Memory, Bypass Protection Mechanism, Gain Privileges or Assume Identity, Varies by Context | - |

## Potential mitigations

### Implementation

Ensure that a debug message does not reveal any unnecessary information during the debug process for the intended response.

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

## Demonstrative examples

### Example 1

This example here shows how an attacker can take advantage of unnecessary information in debug messages.

## Observed examples

| CVE | Description |
| --- | --- |
| 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 |

## Real CVEs with this weakness (sample of 12 of 22)

| CVE | Title | Severity | CVSS | EPSS | CISA KEV | Published |
| --- | --- | --- | --- | --- | --- | --- |
| CVE-2024-38516 | Aimeos HTML client may potentially reveal sensitive information in error log | high | 8.8 | - | No | 2024-06-25 |
| CVE-2026-28811 | Apache JSPWiki: Error Handling - Reveals Error Details | high | 7.5 | - | No | 2026-07-30 |
| CVE-2025-31001 | WordPress GTM Kit plugin \<= 2.4.0 - Sensitive Data Exposure vulnerability | high | 7.5 | - | No | 2025-04-01 |
| CVE-2024-45784 | Apache Airflow: Sensitive configuration values are not masked in the logs by default | high | 7.5 | - | No | 2024-11-15 |
| CVE-2023-5392 | Debug Messages Revealing Unnecessary Information in Honeywell Experion PKS, Experion LX, PlantCruise by Experion, Safety Manager, Safety Manager SC | high | 7.5 | - | No | 2024-04-11 |
| CVE-2023-4215 | Advantech WebAccess Debug Messages Revealing Unnecessary Information | high | 7.5 | - | No | 2023-10-16 |
| CVE-2025-42604 | Detailed Error Response Vulnerability in Meon KYC solutions | medium | 6.9 | - | No | 2025-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 | 6.5 | - | No | 2025-03-28 |
| CVE-2025-12910 | Inappropriate implementation in Passkeys | medium | 6.2 | - | No | 2025-11-07 |
| CVE-2025-20643 | - | medium | 5.7 | - | No | 2025-02-03 |
| CVE-2025-2469 | Debug Messages Revealing Unnecessary Information in GitLab | medium | 5.3 | - | No | 2025-04-10 |
| CVE-2021-31412 | Possible route enumeration in production mode via RouteNotFoundError view in Vaadin 10, 11-14, and 15-19 | medium | 5.3 | - | No | 2021-06-24 |

## Related attack patterns (CAPEC)

- [CAPEC-121](https://radicalnotion.ai/capec/capec-121): Exploit Non-Production Interfaces

## Related weaknesses

| Relationship | CWE | Name |
| --- | --- | --- |
| Parent | [CWE-215](https://radicalnotion.ai/cwe/cwe-215) | Insertion of Sensitive Information Into Debugging Code |
| Peer | [CWE-209](https://radicalnotion.ai/cwe/cwe-209) | Generation of Error Message Containing Sensitive Information |

## Frequently asked questions

### 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?

22 recorded CVEs are attributed to CWE-1295, including CVE-2024-38516, CVE-2026-28811 and CVE-2025-31001.

### 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?

22 recorded CVEs are caused by CWE-1295; none are currently in CISA's KEV catalog of actively exploited flaws.

Primary source: [MITRE CWE](https://cwe.mitre.org/data/definitions/1295.html)

---

Source: [RadicalNotion.AI](https://radicalnotion.ai/cwe/cwe-1295). Licensed CC BY-NC 4.0; attribute RadicalNotion.AI and link the source page when you reuse this data.
