955
Observed Examples
Reference Description
CVE-2003-1132 DNS server returns wrong response code for non-existent AAAA record, which
effectively says that the domain is inaccessible.
https://www.cve.org/CVERecord?id=CVE-2003-1132
CVE-2001-1509 Hardware-specific implementation of system call causes incorrect results from
geteuid.
https://www.cve.org/CVERecord?id=CVE-2001-1509
CVE-2001-1559 Chain: System call returns wrong value (CWE-393), leading to a resultant
NULL dereference (CWE-476).
https://www.cve.org/CVERecord?id=CVE-2001-1559
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).
https://www.cve.org/CVERecord?id=CVE-2014-1266
MemberOf Relationships
This MemberOf relationships table shows additional CWE Catgeories and Views that reference this
weakness as a member. This information is often useful in understanding where a weakness fits
within the context of external information sources.
Nature Type ID Name Page
MemberOf 884 CWE Cross-section 884 2567
MemberOf 961 SFP Secondary Cluster: Incorrect Exception Behavior 888 2399
MemberOf 1412 Comprehensive Categorization: Poor Coding Practices 1400 2538
Notes
Relationship
This can be primary or resultant, but it is probably most often primary to other issues.
Taxonomy Mappings
Mapped Taxonomy Name Node ID Fit Mapped Node Name
PLOVER Wrong Status Code
Software Fault Patterns SFP6 Incorrect Exception Behavior
CWE-394: Unexpected Status Code or Return Value
Weakness ID : 394
Structure : Simple
Abstraction : Base
Description
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.
Relationships
The table(s) below shows the weaknesses and high level categories that are related to this
weakness. These relationships are defined as ChildOf, ParentOf, MemberOr and give insight to
similar items that may exist at higher and lower levels of abstraction. In addition, relationships such
as PeerOf and CanAlsoBe are defined to show similar weaknesses that may want to be explored.
Relevant to the view "Research Concepts" (CWE-1000)
CWE Version 4.14
CWE-394: Unexpected Status Code or Return Value
CWE-394: Unexpected Status Code or Return Value