---
title: "CWE-756: Missing Custom Error Page"
url: https://radicalnotion.ai/cwe/cwe-756
type: cwe
description: "The product does not return custom error pages to the user, possibly exposing sensitive information."
updated: 2026-11-10
source: RadicalNotion.AI
license: CC BY-NC 4.0 (https://creativecommons.org/licenses/by-nc/4.0/)
---

# CWE-756: Missing Custom Error Page

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

## Description

The product does not return custom error pages to the user, possibly exposing sensitive information.

## Modes of introduction

| Phase | Note |
| --- | --- |
| Installation | - |
| System Configuration | - |
| Operation | - |

## Applicable platforms

**Technologies:** Web Server (Sometimes)

## Common consequences

| Scope | Impact | Note |
| --- | --- | --- |
| Confidentiality | Read Application Data | Attackers can leverage the additional information provided by a default error page to mount attacks targeted on the framework, database, or other resources used by the application. |

## Demonstrative examples

### Example 1

In the snippet below, an unchecked runtime exception thrown from within the try block may cause the container to display its default error page (which may contain a full stack trace, among other things).

Bad code:

```java
Public void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {
    try {
        ...
    } catch (ApplicationSpecificException ase) {
        logger.error("Caught: " + ase.toString());
    }
}
```

### Example 2

The mode attribute of the \<customErrors\> tag in the Web.config file defines whether custom or default error pages are used.

Bad code:

```aspnet
<customErrors mode="Off" />
```

Good code:

```aspnet
<customErrors mode="RemoteOnly" />
```

Good code:

```aspnet
<customErrors mode="On" defaultRedirect="YourErrorPage.htm" />
```

## Observed examples

| CVE | Description |
| --- | --- |
| CVE-2023-27998 | analytics platform does not have a custom error page, allowing access to sensitive information |

## Real CVEs with this weakness

| CVE | Title | Severity | CVSS | EPSS | CISA KEV | Published |
| --- | --- | --- | --- | --- | --- | --- |
| CVE-2018-8913 | - | high | 7.1 | - | No | 2019-04-01 |
| CVE-2023-27998 | - | medium | 5.3 | - | No | 2023-09-13 |
| CVE-2022-3175 | Missing Custom Error Page in ikus060/rdiffweb | medium | 5.3 | - | No | 2022-09-13 |

## Related weaknesses

| Relationship | CWE | Name |
| --- | --- | --- |
| Parent | [CWE-755](https://radicalnotion.ai/cwe/cwe-755) | Improper Handling of Exceptional Conditions |
| Child | [CWE-7](https://radicalnotion.ai/cwe/cwe-7) | J2EE Misconfiguration: Missing Custom Error Page |
| Child | [CWE-12](https://radicalnotion.ai/cwe/cwe-12) | ASP.NET Misconfiguration: Missing Custom Error Page |
| Can precede | [CWE-209](https://radicalnotion.ai/cwe/cwe-209) | Generation of Error Message Containing Sensitive Information |

## Frequently asked questions

### What is CWE-756?

The product does not return custom error pages to the user, possibly exposing sensitive information.

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

3 recorded CVEs are attributed to CWE-756, including CVE-2018-8913, CVE-2023-27998 and CVE-2022-3175.

### What are the consequences of CWE-756?

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

### Is CWE-756 actively exploited?

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

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

---

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