CWE-570: Expression is Always False
Description
The product contains an expression that will always evaluate to false.
- Abstraction
- BaseA weakness specific enough to point to detection and prevention methods.
- Likelihood of exploit
- Not rated by MITRE
- Status
- Draft
Common consequences
- Other
Quality Degradation; Varies by Context
Potential mitigations
- ImplementationRefactoring
Consider refactoring the code, or determine if the code is not including a condition that could cause the expression to become false.
Related weaknesses
Parent weaknesses
Can lead to
CAPEC attack patterns that exploit it
CWE 4.20 links no CAPEC attack pattern to this weakness.