Cyber Resilience

CWE · MITRE source

CWE-197Numeric Truncation Error

Abstraction: Base · CVEs in our corpus: 66

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.

Prevent
Stop it (NIST 800-53 / CSF Protect)
  • PR.PS-06
  • SA-11 Developer Testing and Evaluation
  • SA-8 Security and Privacy Engineering Principles
  • SA-15 Development Process, Standards, and Tools
Detect
Catch it (CSF Detect / Respond)

Harden
Shrink the surface (DISA STIG)

Validate
Prove the fix (OWASP ASVS)

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 9.99.80.99472023-01-02
CVE-2024-436398.19.80.08942024-11-12
CVE-2025-6965 8.17.70.74872025-07-15
CVE-2024-28944 7.08.80.02352024-04-09
CVE-2024-21352 6.98.80.01632024-02-13
CVE-2024-21391 6.98.80.01632024-02-13
CVE-2024-21440 6.98.80.02032024-03-12
CVE-2024-21451 6.98.80.01952024-03-12
CVE-2024-30009 6.98.80.01712024-05-14
CVE-2024-490186.98.80.01542024-11-12
CVE-2024-21310 6.87.80.11512024-01-09
CVE-2023-32143 6.88.80.01132024-05-03
CVE-2024-43519 6.88.80.01412024-10-08
CVE-2020-15202 6.69.00.01292020-09-25
CVE-2024-29050 6.68.40.01252024-04-09
CVE-2024-381256.67.80.05942024-08-13
CVE-2023-36710 6.17.80.01112023-10-10
CVE-2024-21434 6.07.80.00832024-03-12
CVE-2024-30014 6.07.50.01492024-05-14
CVE-2024-30015 6.07.50.01492024-05-14
CVE-2024-30022 6.07.50.01542024-05-14
CVE-2024-30023 6.07.50.01542024-05-14
CVE-2024-30024 6.07.50.01542024-05-14
CVE-2024-30029 6.07.50.01492024-05-14
CVE-2026-42944 6.07.50.00842026-05-20