CWE-197 数值截断错误 类弱点 83 条 CVE 漏洞汇总,含 AI 中文分析。
CWE-197 数值截断错误属于数据转换漏洞,发生在将较大类型的数据强制转换为较小类型时,导致高位数据丢失。攻击者常利用此缺陷构造恶意输入,使截断后的值被用作缓冲区索引或循环迭代器,从而引发越界访问或逻辑绕过。开发者应避免隐式类型转换,在数据转换前进行严格的范围检查与验证,确保数值在目标类型的安全范围内,以消除潜在风险。
int intPrimitive; short shortPrimitive; intPrimitive = (int)(~((int)0) ^ (1 << (sizeof(int)*8-1))); shortPrimitive = intPrimitive; printf("Int MAXINT: %d\nShort MAXINT: %d\n", intPrimitive, shortPrimitive);
Int MAXINT: 2147483647 Short MAXINT: -1
... // update sales database for number of product sold with product ID public void updateSalesForProduct(String productID, int amountSold) { // get the total number of products in inventory database int productCount = inventory.getProductCount(productID); // convert integer values to short, the method for the // sales object requires the parameters to be of type short short count = (short) productCount; short sold = (short) amountSold; // update sales database for product sales.updateSalesCount(productID, count, sold); } ...
... // update sales database for number of product sold with product ID public void updateSalesForProduct(String productID, int amountSold) { // get the total number of products in inventory database int productCount = inventory.getProductCount(productID); // make sure that integer numbers are not greater than // maximum value for type short before converting if ((productCount < Short.MAX_VALUE) && (amountSold < Short.MAX_VALUE)) { // convert integer values to short, the method for the // sales object requires the parameters to be of type short short count = (short) productCount; short sold =
| CVE ID | 标题 | CVSS | 风险等级 | Published |
|---|---|---|---|---|
| CVE-2026-65798 | Microsoft Windows DNS 数字错误漏洞 — Windows 10 Version 1607 | 6.7 | Medium | 2026-08-11 |
| CVE-2026-65797 | Microsoft Windows DNS 缓冲区错误漏洞 — Windows 10 Version 1607 | 6.7 | Medium | 2026-08-11 |
| CVE-2026-65795 | Microsoft Windows DNS 安全漏洞 — Windows 10 Version 1607 | 6.7 | Medium | 2026-08-11 |
| CVE-2026-63525 | Microsoft Office Word 数字错误漏洞 — Microsoft 365 Apps for Enterprise | 7.8 | High | 2026-08-11 |
| CVE-2026-62883 | Microsoft Windows DNS 缓冲区错误漏洞 — Windows 10 Version 1607 | 6.7 | Medium | 2026-08-11 |
| CVE-2026-62881 | Microsoft Windows DNS 缓冲区错误漏洞 — Windows 10 Version 1607 | 6.7 | Medium | 2026-08-11 |
| CVE-2026-62769 | Microsoft Windows DNS 缓冲区错误漏洞 — Windows 10 Version 1607 | 6.7 | Medium | 2026-08-11 |
| CVE-2026-62698 | Microsoft Windows 数字错误漏洞 — Windows 10 Version 1607 | 7.8 | High | 2026-08-11 |
| CVE-2026-55142 | Microsoft Office Word 数字错误漏洞 — Microsoft 365 Apps for Enterprise | 5.5 | Medium | 2026-07-14 |
| CVE-2026-50357 | Microsoft Windows Resilient File System 数字错误漏洞 — Windows 10 Version 1607 | 7.8 | High | 2026-07-14 |
| CVE-2026-49792 | Microsoft Windows Resilient File System 数字错误漏洞 — Windows 10 Version 1607 | 7.8 | High | 2026-07-14 |
| CVE-2026-44823 | Microsoft Office Excel 安全漏洞 — Microsoft 365 Apps for Enterprise | 7.8 | High | 2026-06-09 |
| CVE-2026-40409 | Microsoft Windows Universal Disk Format File System Driver 安全漏洞 — Windows 10 Version 1607 | 7.8 | High | 2026-06-09 |
| CVE-2026-42944 | NLnet Labs Unbound 安全漏洞 — Unbound | 8.7 | High | 2026-05-20 |
| CVE-2026-44927 | Uriparser 安全漏洞 — uriparser | 2.9 | Low | 2026-05-08 |
| CVE-2026-42371 | Uriparser 安全漏洞 — uriparser | 5.1 | Medium | 2026-04-27 |
| CVE-2026-32240 | capnproto 环境问题漏洞 — capnproto | 8.2AI | High AI | 2026-03-12 |
| CVE-2025-53723 | Microsoft Hyper-V 安全漏洞 — Windows 10 Version 1507 | 7.8 | High | 2025-08-12 |
| CVE-2025-6965 | SQLite 安全漏洞 — SQLite | 7.2 | High | 2025-07-15 |
| CVE-2025-49679 | Microsoft Windows Shell 安全漏洞 — Windows 10 Version 1507 | 7.8 | High | 2025-07-08 |
| CVE-2024-49018 | Microsoft SQL Server 安全漏洞 — Microsoft SQL Server 2017 (GDR) | 8.8 | High | 2024-11-12 |
| CVE-2024-43639 | Microsoft Windows Kerberos 安全漏洞 — Windows Server 2025 | 9.8 | Critical | 2024-11-12 |
| CVE-2024-43519 | Microsoft OLE DB Provider for SQL Server 安全漏洞 — Windows 10 Version 1507 | 8.8 | High | 2024-10-08 |
| CVE-2024-37337 | Microsoft SQL Server 安全漏洞 — Microsoft SQL Server 2017 (CU 31) | 7.1 | High | 2024-09-10 |
| CVE-2024-38125 | Microsoft Windows 安全漏洞 — Windows 10 Version 1809 | 7.8 | High | 2024-08-13 |
| CVE-2024-38044 | Microsoft Windows 安全漏洞 — Windows Server 2019 | 7.2 | High | 2024-07-09 |
| CVE-2024-38086 | Microsoft Azure 安全漏洞 — Azure Kinect SDK | 6.4 | Medium | 2024-07-09 |
| CVE-2024-30029 | Microsoft Windows Routing and Remote Access Service 安全漏洞 — Windows 10 Version 1809 | 7.5 | High | 2024-05-14 |
| CVE-2024-30024 | Microsoft Windows Routing and Remote Access Service 安全漏洞 — Windows 10 Version 1809 | 7.5 | High | 2024-05-14 |
| CVE-2024-30023 | Microsoft Windows Routing and Remote Access Service 安全漏洞 — Windows 10 Version 1809 | 7.5 | High | 2024-05-14 |
CWE-197(数值截断错误) 是常见的弱点类别,本平台收录该类弱点关联的 83 条 CVE 漏洞。