1. CVE archive
  2. Vulnerability types
  3. CWE-197
CWE-197 · #202 most frequent type in the archive

Numeric Truncation Error

Truncation errors occur when a primitive is cast to a primitive of a smaller size and data is lost in the conversion.

Part of: CWE-681 · Incorrect Conversion between Numeric Types

76CVEs of this type in the archive
5critical (CVSS ≥ 9)
40high severity (7–8.9)
Nov 24, 2026latest published

What it is

Truncation errors occur when a primitive is cast to a primitive of a smaller size and data is lost in the conversion.

Impact on systems

ScopeImpact
Integrity Modify Memory, Varies by Context
When a primitive is cast to a smaller primitive, the high order bits of the large value are lost in the conversion, potentially resulting in an unexpected value that is not equal to the original value. This value may be required as an index into a buffer, a loop iterator, or simply necessary state data. In any case, the value cannot be trusted and the system will be in an undefined state.

How to prevent it

Implementation Ensure that no casts, implicit or explicit, take place that move from a larger size primitive or a smaller size primitive.

Source: MITRE CWE catalog · Official entry on the MITRE website

CWE-197 CVEs published per year

2026: year in progress, updated every hour

Show the data as a table
YearCVE
20201
20221
20233
202423
20253
202645

All CWE-197 CVEs

76 results

Dottor Marc

Is this type of vulnerability in your systems?

An archive tells you what exists; a Vulnerability Assessment tells you what is exposed on your side. Dottor Marc tests your web applications and network with automated and manual checks.