Cyber Resilience

CWE · MITRE source

CWE-394Unexpected Status Code or Return Value

Abstraction: Base · CVEs in our corpus: 15

The product does not properly check when a function or operation returns a value that is legitimate for the function, but is not expected by the product.

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-8 Security and Privacy Engineering Principles
  • 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-2025-12515 7.29.80.00342025-10-30
CVE-2025-12516 7.29.80.00342025-10-30
CVE-2026-25085 6.58.60.00462026-02-27
CVE-2019-0066 6.17.50.01362019-10-09
CVE-2023-25948 5.97.50.00572023-07-13
CVE-2018-20802 5.46.50.01482020-11-23
CVE-2019-20924 5.46.50.01302020-11-23
CVE-2024-1713 5.37.20.00552024-03-14
CVE-2025-485105.17.10.00132025-11-24
CVE-2022-24880 4.75.30.01162022-04-25
CVE-2026-769564.55.90.00252026-08-20
CVE-2023-28975 3.74.60.00292023-04-17
CVE-2023-48429 2.72.70.00592023-12-12