CWE•Base•Incomplete•20 recent CVEs
CWE-197Numeric Truncation Error
Description
Truncation errors occur when a primitive is cast to a primitive of a smaller size and data is lost in the conversion.
Common consequences
- Integrity→Modify Memory,Varies by ContextWhen 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
Potential mitigations
- ImplementationEnsure that no casts, implicit or explicit, take place that move from a larger size primitive or a smaller size primitive.
Related CWEs
Recent CVEs classified under this CWE
CVE-2026-132697.52026-11-12CVE-2026-1262549.62026-11-11CVE-2026-1209753.12026-11-10CVE-2026-882137.82026-11-10CVE-2026-1199887.12026-11-10CVE-2026-1198754.02026-11-10CVE-2026-1129817.82026-11-10CVE-2026-1127657.02026-11-10CVE-2026-1127545.52026-11-10CVE-2026-1127505.52026-11-10CVE-2026-1127268.82026-11-10CVE-2026-1127228.82026-11-10CVE-2026-1127218.82026-11-10CVE-2026-1113088.82026-11-10CVE-2026-1112936.52026-11-10CVE-2026-1100648.82026-11-10CVE-2026-1252137.02026-11-09CVE-2026-1074792026-11-04CVE-2026-1170697.52026-11-02CVE-2026-1167424.42026-10-26