CWE-571: Expression is Always True
The product contains an expression that will always evaluate to true.
Last updated
Overview
CWE-571 (Expression is Always True) is a base-level software weakness catalogued by MITRE in the Common Weakness Enumeration (CWE). It describes a recurring type of mistake that can lead to exploitable security vulnerabilities.
Common consequences
What can happen when CWE-571 is exploited.
Quality Degradation, Varies by Context
Affects: Other
How it happens
When it is introduced
Typically introduced during these phases of the software lifecycle.
How to prevent it
Practical mitigations for CWE-571, grouped by where in the lifecycle they apply.
Consider refactoring the code, or determine if the code is not including a condition that could cause the expression to become false.