CWE-193: Off-by-one Error
Also known as: off-by-five
A product calculates or uses an incorrect maximum or minimum value that is 1 more, or 1 less, than the correct value.
Overview
CWE-193 (Off-by-one Error) 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.