CWE · MITRE source
CWE-197Numeric Truncation Error
Truncation errors occur when a primitive is cast to a primitive of a smaller size and data is lost in the conversion.
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. While this method may be employed viably to isolate the low bits of a value, this usage is rare, and truncation usually implies that an implementation error has occurred.
Last updated: 21 August 2026 20:21 UTC
Control responseHuman-reviewed
Answering this weakness across the control lifecycle, from our framework cross-walks.
NIST 800-53 r5 controls that address this weakness (0)AI-assisted
| Control | Title | Family | Why it addresses this CWE |
|---|---|---|---|
| No NIST controls proposed yet. | |||
Top CVEs of this weakness type, ranked by Risk Priority
| CVE | Risk | CVSS | EPSS | Published |
|---|---|---|---|---|
CVE-2022-42475 KEV UPD | 9.9 | 9.8 | 0.9947 | 2023-01-02 |
CVE-2024-43639 | 8.1 | 9.8 | 0.0894 | 2024-11-12 |
CVE-2025-6965 UPD | 8.1 | 7.7 | 0.7487 | 2025-07-15 |
CVE-2024-28944 UPD | 7.0 | 8.8 | 0.0235 | 2024-04-09 |
CVE-2024-21352 UPD | 6.9 | 8.8 | 0.0163 | 2024-02-13 |
CVE-2024-21391 UPD | 6.9 | 8.8 | 0.0163 | 2024-02-13 |
CVE-2024-21440 UPD | 6.9 | 8.8 | 0.0203 | 2024-03-12 |
CVE-2024-21451 UPD | 6.9 | 8.8 | 0.0195 | 2024-03-12 |
CVE-2024-30009 UPD | 6.9 | 8.8 | 0.0171 | 2024-05-14 |
CVE-2024-49018 | 6.9 | 8.8 | 0.0154 | 2024-11-12 |
CVE-2024-21310 UPD | 6.8 | 7.8 | 0.1151 | 2024-01-09 |
CVE-2023-32143 UPD | 6.8 | 8.8 | 0.0113 | 2024-05-03 |
CVE-2024-43519 UPD | 6.8 | 8.8 | 0.0141 | 2024-10-08 |
CVE-2020-15202 UPD | 6.6 | 9.0 | 0.0129 | 2020-09-25 |
CVE-2024-29050 UPD | 6.6 | 8.4 | 0.0125 | 2024-04-09 |
CVE-2024-38125 | 6.6 | 7.8 | 0.0594 | 2024-08-13 |
CVE-2023-36710 UPD | 6.1 | 7.8 | 0.0111 | 2023-10-10 |
CVE-2024-21434 UPD | 6.0 | 7.8 | 0.0083 | 2024-03-12 |
CVE-2024-30014 UPD | 6.0 | 7.5 | 0.0149 | 2024-05-14 |
CVE-2024-30015 UPD | 6.0 | 7.5 | 0.0149 | 2024-05-14 |
CVE-2024-30022 UPD | 6.0 | 7.5 | 0.0154 | 2024-05-14 |
CVE-2024-30023 UPD | 6.0 | 7.5 | 0.0154 | 2024-05-14 |
CVE-2024-30024 UPD | 6.0 | 7.5 | 0.0154 | 2024-05-14 |
CVE-2024-30029 UPD | 6.0 | 7.5 | 0.0149 | 2024-05-14 |
CVE-2026-42944 UPD | 6.0 | 7.5 | 0.0084 | 2026-05-20 |