CWEweakness
CWE-392 Missing Report of Error Condition
- Abstraction
- Base
- Structure
- Simple
- Status
- Draft
- Languages
- Not Language-Specific, Python
- CWE version
- 5.0
Description
The product encounters an error but does not provide a status code or return value to indicate that an error has occurred.
Common consequences
• 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.)
Observed examples
• 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.
• [REF-1374]: Chain: JavaScript-based cryptocurrency library can fall back to the insecure Math.random() function instead of reporting a failure (CWE-392), thus reducing the entropy (CWE-332) and leading to generation of non-unique cryptographic keys for Bitcoin wallets (CWE-1391)
• 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.
Related
Observed example · CVE (5)
- CVE-2024-52316 Unchecked Error Condition vulnerability in Apache Tomcat. vulnerability
- CVE-2005-2459 The huft_build function in inflate.c in the zlib routines in the Linux kernel before 2.6.12.5 returns the wrong value, which allows remote… vulnerability
- CVE-2004-0063 The SPP_VerifyPVV function in nCipher payShield SPP library 1.3.12, 1.5.18 and 1.6.18 returns a Status_OK value even if the HSM returns a… vulnerability
- CVE-2002-0499 The d_path function in Linux kernel 2.2.20 and earlier, and 2.4.18 and earlier, truncates long pathnames without generating an error, which… vulnerability
- CVE-2002-1446 The error checking routine used for the C_Verify call on a symmetric verification key in the nCipher PKCS#11 library 1.2.0 and later… vulnerability
Child of · CWE (3)
Referenced by CVE · weakness (12)
- CVE-2026-42246 Net::IMAP implements Internet Message Access Protocol (IMAP) client functionality in Ruby. vulnerability
- CVE-2026-20005 Multiple Cisco products are affected by a vulnerability in the Snort 3 Detection Engine that could allow an unauthenticated, remote… vulnerability
- CVE-2025-59398 The OCPP implementation in libocpp before 0.26.2 allows a denial of service (EVerest crash) via JSON input larger than 255 characters,… vulnerability
- CVE-2025-23270 NVIDIA Jetson Linux contains a vulnerability in UEFI Management mode, where an unprivileged local attacker may cause exposure of sensitive… vulnerability
- CVE-2025-26268 DragonflyDB Dragonfly before 1.27.0 allows authenticated users to cause a denial of service (daemon crash) via a crafted Redis command. vulnerability
- CVE-2025-32743 In ConnMan through 1.44, the lookup string in ns_resolv in dnsproxy.c can be NULL or an empty string when the TC (Truncated) bit is set in… vulnerability
- CVE-2024-12797 Issue summary: Clients using RFC7250 Raw Public Keys (RPKs) to authenticate a server may fail to notice that the server was not… vulnerability
- CVE-2024-39697 phonenumber is a library for parsing, formatting and validating international phone numbers. vulnerability
- CVE-2023-48430 A vulnerability has been identified in SINEC INS (All versions < V1.0 SP2 Update 2). vulnerability
- CVE-2023-42444 phonenumber is a library for parsing, formatting and validating international phone numbers. vulnerability
- CVE-2023-42447 blurhash-rs is a pure Rust implementation of Blurhash, software for encoding images into ASCII strings that can be turned into a gradient… vulnerability
- CVE-2017-2342 MACsec feature on Juniper Networks Junos OS 15.1X49 prior to 15.1X49-D100 on SRX300 series does not report errors when a secure link can… vulnerability
Referenced by CWE · has member (1)
- CWE-884 CWE Cross-section view
Referenced by CWE · peer of (1)
- CWE-1429 Missing Security-Relevant Feedback for Unexecuted Operations in Hardware Interface weakness