---
title: "CWE-392: Missing Report of Error Condition"
url: https://radicalnotion.ai/cwe/cwe-392
type: cwe
description: "The product encounters an error but does not provide a status code or return value to indicate that an error has occurred."
updated: 2026-11-10
source: RadicalNotion.AI
license: CC BY-NC 4.0 (https://creativecommons.org/licenses/by-nc/4.0/)
---

# CWE-392: Missing Report of Error Condition

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

## Description

The product encounters an error but does not provide a status code or return value to indicate that an error has occurred.

## Modes of introduction

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

## Applicable platforms

**Languages:** Python (Undetermined)

## Common consequences

| Scope | Impact | Note |
| --- | --- | --- |
| Integrity, Other | Varies by Context, Unexpected State | Errors that are not properly reported could place the system in an unexpected state that could lead to unintended behaviors. |

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

In the following snippet from a doPost() servlet method, the server returns "200 OK" (default) even if an error occurs.

Bad code:

```java
try {

    // Something that may throw an exception.
    ...
} catch (Throwable t) {
    logger.error("Caught: " + t.toString());
    return;
}
```

## Observed examples

| CVE | Description |
| --- | --- |
| CVE-2024-52316 | Web-based product can throw an exception during authentication but does not report the failure in the HTTP status code, allowing authentication bypass. |
| CVE-2004-0063 | Function returns "OK" even if another function returns a different status code than expected, leading to accepting an invalid PIN number. |
| CVE-2002-1446 | Error checking routine in PKCS#11 library returns "OK" status even when invalid signature is detected, allowing spoofed messages. |
| CVE-2002-0499 | Kernel function truncates long pathnames without generating an error, leading to operation on wrong directory. |
| CVE-2005-2459 | Function returns non-error value when a particular erroneous condition is encountered, leading to resultant NULL dereference. |

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

| CVE | Title | Severity | CVSS | EPSS | CISA KEV | Published |
| --- | --- | --- | --- | --- | --- | --- |
| CVE-2025-32743 | - | critical | 9.0 | - | No | 2025-04-10 |
| CVE-2017-2342 | SRX Series: MACsec failure to report errors | high | 8.1 | - | No | 2017-07-14 |
| CVE-2024-42304 | ext4: make sure the first directory block is not a hole | high | 7.8 | - | No | 2024-08-17 |
| CVE-2026-42246 | net-imap vulnerable to STARTTLS stripping via invalid response timing | high | 7.6 | - | No | 2026-05-09 |
| CVE-2024-12797 | RFC7250 handshakes with unauthenticated servers don't abort as expected | high | 7.4 | - | No | 2025-02-11 |
| CVE-2025-23270 | - | high | 7.1 | - | No | 2025-07-17 |
| CVE-2025-26268 | - | medium | 6.5 | - | No | 2025-04-17 |
| CVE-2026-20005 | Multiple Cisco Products Snort 3 Denial of Service Vulnerabilities | medium | 5.8 | - | No | 2026-03-04 |
| CVE-2023-53666 | ASoC: codecs: wcd938x: fix missing mbhc init error handling | medium | 5.5 | - | No | 2025-10-07 |
| CVE-2023-53295 | udf: Do not update file length for failed writes to inline files | medium | 5.5 | - | No | 2025-09-16 |
| CVE-2025-22076 | exfat: fix missing shutdown check | medium | 5.5 | - | No | 2025-04-16 |
| CVE-2023-53841 | devlink: report devlink\_port\_type\_warn source device | medium | 5.2 | - | No | 2025-12-09 |

## Related weaknesses

| Relationship | CWE | Name |
| --- | --- | --- |
| Parent | [CWE-684](https://radicalnotion.ai/cwe/cwe-684) | Incorrect Provision of Specified Functionality |
| Parent | [CWE-703](https://radicalnotion.ai/cwe/cwe-703) | Improper Check or Handling of Exceptional Conditions |
| Parent | [CWE-755](https://radicalnotion.ai/cwe/cwe-755) | Improper Handling of Exceptional Conditions |
| Peer | [CWE-1429](https://radicalnotion.ai/cwe/cwe-1429) | Missing Security-Relevant Feedback for Unexecuted Operations in Hardware Interface |

## Taxonomy mappings

| Taxonomy | Entry | Id | Fit |
| --- | --- | --- | --- |
| PLOVER | Missing Error Status Code | - | - |
| The CERT Oracle Secure Coding Standard for Java (2011) | Ensure that tasks executing in a thread pool do not fail silently | TPS03-J | - |
| Software Fault Patterns | Incorrect Exception Behavior | SFP6 | - |
| OpenSSF Secure Coding Guide for Python | Ensure Thread Pool Tasks Do Not Fail Silently | pyscg-0030 | - |

## Frequently asked questions

### What is CWE-392?

The product encounters an error but does not provide a status code or return value to indicate that an error has occurred.

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

18 recorded CVEs are attributed to CWE-392, including CVE-2025-32743, CVE-2017-2342 and CVE-2024-42304.

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

Exploiting CWE-392 can lead to: Varies by Context, Unexpected State.

### Is CWE-392 actively exploited?

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

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

---

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