Back to CWE list
CWE-570
Expression is Always False
Base
Draft
Description
The product contains an expression that will always evaluate to false.
Parent Weaknesses (ChildOf)
Related Weaknesses
Common Consequences
Scope
Other
Impact
Quality Degradation, Varies by Context
Potential Mitigations
Implementation
Consider refactoring the code, or determine if the code is not including a condition that could cause the expression to become false.
Applicable Platforms
Not Language-Specific
Security Training
Train your team to recognize and prevent security threats with our comprehensive security awareness program.
Start TrainingVulnerability Scanning
Discover vulnerabilities in your applications and infrastructure before attackers do.
Scan Now