CWE-197: Numeric Truncation Error
92 CVEs have CWE-197 as their primary weakness. 1 of them are in the CISA KEV catalog. The highest EPSS score among them is 99.474%.
Truncation errors occur when a primitive is cast to a primitive of a smaller size and data is lost in the conversion.
Child of CWE-681: Incorrect Conversion between Numeric Types
Mitigations
- Implementation: Ensure that no casts, implicit or explicit, take place that move from a larger size primitive or a smaller size primitive.
Observed examples
- CVE-2020-17087: Chain: integer truncation (CWE-197) causes small buffer allocation (CWE-131) leading to out-of-bounds write (CWE-787) in kernel pool, as exploited in the wild per CISA KEV.
- CVE-2009-0231: Integer truncation of length value leads to heap-based buffer overflow.
- CVE-2008-3282: Size of a particular type changes for 64-bit platforms, leading to an integer truncation in document processor causes incorrect index to be generated.
Top released CVEs
KEV first, then the highest EPSS score, the highest CVSS score and the newest.
| CVE | Published | Severity | CVSS | EPSS | Description |
|---|---|---|---|---|---|
| CVE-2022-42475 | 2023-01-02 | CRITICAL | 9.3 | 99.474% | A heap-based buffer overflow vulnerability [CWE-122] in FortiOS SSL-VPN 7.2.0 through 7.2.2, 7.0.0 through 7.0.8, 6.4.0 through 6.4.10, 6.2.0 through 6.2.11… |
Get more CVE data from the API.
curl 'https://api.contrastcyber.com/cwe_lookup/CWE-197'curl 'https://api.contrastcyber.com/cve_search?cwe_id=CWE-197'
Sources
- Vulnerability data from the National Vulnerability Database (NIST) and the CVE Program. CVE records: Copyright © 1999-2026, The MITRE Corporation, used under the CVE Program Terms of Use. CVE® is a registered trademark of The MITRE Corporation.
- CWE definitions: Copyright © 2006-2026, The MITRE Corporation, used under the CWE Terms of Use. CWE is a trademark of The MITRE Corporation.
- EPSS scores by FIRST.org EPSS, used with attribution.
- KEV catalog and SSVC decisions by CISA.
- Advisory data from the GitHub Advisory Database through OSV.dev (CC BY 4.0).
- Exploit metadata from the Exploit Database (GPL-2.0-only, metadata only).
- Nuclei template names from nuclei-templates (MIT).