BaseDraft

CWE-393Return of Wrong Status Code

Category: other

Description

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. This can lead to unpredictable behavior. If the function is used to make security-critical decisions or provide security-critical information, then the wrong status code can cause the product to assume that an action is safe or correct, even when it is not.

Common consequences· 1

  • Integrity / Other — Unexpected State, Alter Execution Logic
    This weakness could place the system in a state that could lead unexpected logic to be executed or other unintended behaviors.

References

  1. https://cwe.mitre.org/data/definitions/393.html

(incoming)1

TypeTargetConfidenceTier
VulnerabilityCVE-2025-5987cve-2025-59870%live

Related by meaning· 6

Nearest entities by semantic similarity across the cs-graph corpus.

CWE
Unexpected Status Code or Return Value
CWE
Unchecked Return Value
CWE
Incorrect Check of Function Return Value
CWE
Incorrect Provision of Specified Functionality
CWE
Function Call With Incorrectly Specified Argument Value
CWE
Function Call with Incorrectly Specified Arguments
Sourced from MITRE CWE 4.20. Curated for EU compliance use cases by Adam Lundqvist, Founder at SQUR.