CWE-394: Unexpected Status Code or Return Value
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
Overview
CWE-394 (Unexpected Status Code or Return Value) is a base-level software weakness catalogued by MITRE in the Common Weakness Enumeration (CWE). It describes a recurring type of mistake that can lead to exploitable security vulnerabilities.
Real-world CVEs
23 recorded CVEs are caused by CWE-394 (Unexpected Status Code or Return Value), including 1 in CISA's KEV (Known Exploited Vulnerabilities) catalog. KEVs are shown first. 10 new CWE-394 CVEs have been recorded so far in 2026 (6 in 2025).