CWE-193: Off-by-one Error

234 CVEs have CWE-193 as their primary weakness. 1 of them are in the CISA KEV catalog. The highest EPSS score among them is 99.962%.

A product calculates or uses an incorrect maximum or minimum value that is 1 more, or 1 less, than the correct value.

Child of CWE-682: Incorrect Calculation

Mitigations

Observed examples

Top released CVEs

KEV first, then the highest EPSS score, the highest CVSS score and the newest.

CVEPublishedSeverityCVSSEPSSDescription
CVE-2021-31562021-01-26HIGH7.899.962%Sudo before 1.9.5p2 contains an off-by-one error that can result in a heap-based buffer overflow, which allows privilege escalation to root via "sudoedit -s"…
CVE-2026-1288462026-11-16LOW3.70.253%@fastify/busboy is a streaming parser for multipart form data used by Fastify. In versions 3.2.1 through 3.2.5, the parser can interpret the same multipart…
CVE-2026-1091512026-11-17HIGH7.00.169%In the Matter and Aliro Door Lock Application of the Nordic Semiconductor nRF Door Lock and Access Control Add-on v1.0.0 through v1.1.1 with…
CVE-2026-1303862026-11-17MEDIUM6.5not scoredContiki-NG through 5.2 contains an out-of-bounds access vulnerability in buffer_reclaim() and domain_set_free() in mpl.c that iterate the seed_set array one…

Get more CVE data from the API.

Free without a key or signup. Pro adds monitoring and higher limits: pricing.

Sources