CWE-393: Return of Wrong Status Code
7 CVEs have CWE-393 as their primary weakness. 0 of them are in the CISA KEV catalog. The highest EPSS score among them is 1.730%.
A function or operation returns an incorrect return value or status code that does not indicate the true result of execution, causing the product to modify its behavior based on the incorrect result.
Child of CWE-684: Incorrect Provision of Specified Functionality
Observed examples
- CVE-2003-1132: DNS server returns wrong response code for non-existent AAAA record, which effectively says that the domain is inaccessible.
- CVE-2001-1509: Hardware-specific implementation of system call causes incorrect results from geteuid.
- CVE-2001-1559: Chain: System call returns wrong value (CWE-393), leading to a resultant NULL dereference (CWE-476).
- CVE-2014-1266: Chain: incorrect goto in Apple SSL product bypasses certificate validation, allowing Adversary-in-the-Middle (AITM) attack (Apple goto fail bug). CWE-705 (Incorrect Control Flow Scoping) -> CWE-561 (Dead Code) -> CWE-295 (Improper Certificate Validation) -> CWE-393 (Return of Wrong Status Code) -> CWE-300 (Channel Accessible by Non-Endpoint). The code's whitespace indentation did not reflect the actual control flow (CWE-1114) and did not explicitly delimit the block (CWE-483), which could have made it more difficult for human code auditors to detect the vulnerability.
Get more CVE data from the API.
curl 'https://api.contrastcyber.com/cwe_lookup/CWE-393'curl 'https://api.contrastcyber.com/cve_search?cwe_id=CWE-393'
Sources
- Vulnerability data from the National Vulnerability Database (NIST) and the CVE Program. CVE records: Copyright © 1999-2026, The MITRE Corporation, used under the CVE Program Terms of Use. CVE® is a registered trademark of The MITRE Corporation.
- CWE definitions: Copyright © 2006-2026, The MITRE Corporation, used under the CWE Terms of Use. CWE is a trademark of The MITRE Corporation.
- EPSS scores by FIRST.org EPSS, used with attribution.
- KEV catalog and SSVC decisions by CISA.
- Advisory data from the GitHub Advisory Database through OSV.dev (CC BY 4.0).
- Exploit metadata from the Exploit Database (GPL-2.0-only, metadata only).
- Nuclei template names from nuclei-templates (MIT).