CWE-253: Incorrect Check of Function Return Value

low-risk

The product incorrectly checks a return value from a function, which prevents it from detecting errors or exceptional conditions.

Abstraction: Base

Common Consequences

Availability Unexpected State

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

Real-World Examples (10)

CVE CVSS EPSS KEV
CVE-2023-24487 6.3 30.2%
CVE-2024-43521 7.5 7.9%
CVE-2023-49286 8.6 1.9%
CVE-2017-7474 9.8 1.7%
CVE-2026-35091 8.2 0.3%
CVE-2025-54090 6.3 0.3%
CVE-2020-6107 5.5 0.3%
CVE-2022-24880 5.3 0.2%
CVE-2023-34449 5.3 0.2%
CVE-2024-1622 7.5 0.2%
2
/ 100
low-risk
Active Threat 2/50 · Minimal
Exploit Availability 0/50 · Minimal