Cyber Resilience

CWE · MITRE source

CWE-252Unchecked Return Value

Abstraction: Base · CVEs in our corpus: 177

The product does not check the return value from a method or function, which can prevent it from detecting unexpected states and conditions.

Two common programmer assumptions are "this function call can never fail" and "it doesn't matter if this function call fails". If an attacker can force the function to fail or otherwise return a value that is not expected, then the subsequent program logic could lead to a vulnerability, because the product is not in a state that the programmer assumes. For example, if the program calls a function to drop privileges but does not check the return code to ensure that privileges were successfully dropped, then the program will continue to operate with the higher privileges.

Last updated: 21 August 2026 14:15 UTC

OWASP Top 10 for Web (2025)

This weakness contributes to A10:2025 Mishandling of Exceptional Conditions.

Control responseHuman-reviewed

Answering this weakness across the control lifecycle, from our framework cross-walks.

Prevent
Stop it (NIST 800-53 / CSF Protect)
  • PR.PS-06
  • SA-11 Developer Testing and Evaluation
  • SA-15 Development Process, Standards, and Tools
Detect
Catch it (CSF Detect / Respond)

Harden
Shrink the surface (DISA STIG)

Validate
Prove the fix (OWASP ASVS)

NIST 800-53 r5 controls that address this weakness (0)AI-assisted

Control Title Family Why it addresses this CWE
No NIST controls proposed yet.

Top CVEs of this weakness type, ranked by Risk Priority

CVE Risk CVSS EPSS Published
CVE-2007-3798 9.89.80.70392007-07-16
CVE-2010-0211 8.89.80.27722010-07-28
CVE-2019-15900 7.79.80.02112019-10-18
CVE-1999-0199 7.79.80.02402020-10-06
CVE-2021-38171 7.79.80.02412021-08-21
CVE-2021-26955 7.69.80.01732021-02-09
CVE-2023-52687 7.49.80.00602024-05-17
CVE-2005-4360 7.30.00.86732005-12-20
CVE-2022-23806 7.39.10.03102022-02-11
CVE-2025-665657.39.80.00462025-12-09
CVE-2024-50306 7.29.10.01572024-11-14
CVE-2019-15942 6.98.80.02022019-09-05
CVE-2021-26958 6.98.80.01602021-02-09
CVE-2022-23626 6.98.50.09872022-02-08
CVE-2022-25718 6.89.10.00442022-10-19
CVE-2020-17533 6.78.10.03652020-12-29
CVE-2024-38427 6.68.80.00532024-06-16
CVE-2026-228616.68.80.00602026-01-13
CVE-2019-10902 6.57.50.04662019-04-09
CVE-2026-220476.58.80.00322026-01-07
CVE-2026-222556.58.80.00382026-01-08
CVE-2018-14367 6.47.50.03322018-07-19
CVE-2018-14622 6.47.50.03862018-08-30
CVE-2018-20216 6.47.50.03882018-12-20
CVE-2026-220466.48.80.00292026-01-07