Umbra Wiki weakness weakness/CWE-570
Back to wiki

CWE-570 — Expression is Always False

provenance: imported · CWE: CWE-570

CWE-570: Expression is Always False

MITRE CWE weakness

Kind Weakness
Abstraction Base
Status Draft
Likelihood of exploit

Description

The product contains an expression that will always evaluate to false.

Common consequences

  • Other: Quality Degradation, Varies by Context

Mitigations

Implementation — Consider refactoring the code, or determine if the code is not including a condition that could cause the expression to become false.

References

  • CWE page: https://cwe.mitre.org/data/definitions/570.html
  • CWE list: https://cwe.mitre.org/data/index.html