---
title: "CWE-615: Inclusion of Sensitive Information in Source Code Comments"
url: https://radicalnotion.ai/cwe/cwe-615
type: cwe
description: "The product's source code includes comments that contain sensitive information, such as filenames related to the application, old links or links that were not meant to be browsed by users, old code fragments, etc."
updated: 2026-11-10
source: RadicalNotion.AI
license: CC BY-NC 4.0 (https://creativecommons.org/licenses/by-nc/4.0/)
---

# CWE-615: Inclusion of Sensitive Information in Source Code Comments

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

## Description

The product's source code includes comments that contain sensitive information, such as filenames related to the application, old links or links that were not meant to be browsed by users, old code fragments, etc.

## Modes of introduction

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

## Common consequences

| Scope | Impact | Note |
| --- | --- | --- |
| Confidentiality | Read Application Data | An attacker who finds these comments can map the application's structure and files, expose hidden parts of the site, and study the fragments of code to reverse engineer the application, which may help develop further attacks against the site. |

## Potential mitigations

### Distribution

Remove comments which have sensitive information about the design/implementation of the application. Some of the comments may be exposed to the user and affect the security posture of the application.

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

Effectiveness: High

## Demonstrative examples

### Example 1

The following comment, embedded in a JSP, will be displayed in the resulting HTML output.

Bad code:

```jsp
<!-- FIXME: calling this with more than 30 args kills the JDBC server -->
```

## Observed examples

| CVE | Description |
| --- | --- |
| CVE-2007-6197 | Version numbers and internal hostnames leaked in HTML comments. |
| CVE-2007-4072 | CMS places full pathname of server in HTML comment. |
| CVE-2009-2431 | blog software leaks real username in HTML comment. |

## Real CVEs with this weakness

| CVE | Title | Severity | CVSS | EPSS | CISA KEV | Published |
| --- | --- | --- | --- | --- | --- | --- |
| CVE-2024-52298 | macro-pdfviewer's preview in WYSIWYG editor allows accessing any PDF document as the last author | high | 7.5 | - | No | 2024-11-13 |
| CVE-2026-3157 | Security Vulnerability in IBM Sterling B2B Integrator and IBM Sterling File Gateway due to information disclosure in mailbox UI | medium | 4.3 | - | No | 2026-07-28 |
| CVE-2026-3158 | Security Vulnerability in IBM Sterling B2B Integrator and IBM Sterling File Gateway due to information disclosure | medium | 4.3 | - | No | 2026-07-28 |

## Related weaknesses

| Relationship | CWE | Name |
| --- | --- | --- |
| Parent | [CWE-540](https://radicalnotion.ai/cwe/cwe-540) | Inclusion of Sensitive Information in Source Code |
| Peer | [CWE-546](https://radicalnotion.ai/cwe/cwe-546) | Suspicious Comment |

## Frequently asked questions

### What is CWE-615?

The product's source code includes comments that contain sensitive information, such as filenames related to the application, old links or links that were not meant to be browsed by users, old code fragments, etc.

### What CVEs are caused by CWE-615?

3 recorded CVEs are attributed to CWE-615, including CVE-2024-52298, CVE-2026-3157 and CVE-2026-3158.

### How do you prevent CWE-615?

Remove comments which have sensitive information about the design/implementation of the application. Some of the comments may be exposed to the user and affect the security posture of the application.

### How is CWE-615 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-615?

Exploiting CWE-615 can lead to: Read Application Data.

### Is CWE-615 actively exploited?

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

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

---

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