目标达成 感谢每一位支持者 — 我们达成了 100% 目标!

目标: 1000 元 · 已筹: 1336

100%

CWE-681 数值类型间的不正确转换 类漏洞列表 48

CWE-681 数值类型间的不正确转换 类弱点 48 条 CVE 漏洞汇总,含 AI 中文分析。

CWE-681属于数值类型转换错误漏洞,指在不同数据类型(如长整型转整型)转换时,数据被截断或错误翻译导致意外值。攻击者常利用此缺陷构造特殊输入,引发逻辑错误或溢出,从而执行恶意操作或破坏系统完整性。开发者应避免隐式转换,使用显式类型检查与边界验证,确保转换过程安全,防止敏感上下文中的危险行为发生。

MITRE CWE 官方描述
CWE:CWE-681 数值类型间转换错误 (Incorrect Conversion between Numeric Types) 英文:当在不同数据类型之间进行转换时(例如从 long 转换为 integer),数据可能会被省略或以产生意外值的方式进行转换。如果这些结果值被用于敏感上下文中,则可能导致危险行为。
常见影响 (1)
Other, Integrity Unexpected State, Quality Degradation
The program could wind up using the wrong number and generate incorrect results. If the number is used to allocate resources or make a security decision, then this could introduce a vulnerability.
缓解措施 (1)
Implementation Avoid making conversion between numeric types. Always check for the allowed ranges.
代码示例 (2)
In the following Java example, a float literal is cast to an integer, thus causing a loss of precision.
int i = (int) 33457.8f;
Bad · Java
This code adds a float and an integer together, casting the result to an integer.
$floatVal = 1.8345; $intVal = 3; $result = (int)$floatVal + $intVal;
Bad · PHP
CVE ID 标题 CVSS 风险等级 Published
CVE-2022-40138 Facebook Hermes 安全漏洞 — Hermes 9.8 - 2022-10-11
CVE-2022-36025 Hyperledger Besu 安全漏洞 — besu 9.1 Critical 2022-09-24
CVE-2021-27478 EIPStackGroup OpENer 安全漏洞 — OpENer EtherNet/IP 8.2 High 2022-05-12
CVE-2022-27189 F5 BIG-IP 安全漏洞 — BIG-IP 7.5 High 2022-05-05
CVE-2022-0322 Linux kernel 代码问题漏洞 — kernel 5.5 - 2022-03-25
CVE-2021-41272 Matkt Hyperledger Besu 安全漏洞 — besu 7.5 High 2021-12-13
CVE-2021-41202 Google TensorFlow 安全漏洞 — tensorflow 5.5 Medium 2021-11-05
CVE-2021-37669 Google TensorFlow输入验证错误漏洞 — tensorflow 5.5 Medium 2021-08-12
CVE-2021-37646 Google TensorFlow安全漏洞 — tensorflow 5.5 Medium 2021-08-12
CVE-2021-37661 Google TensorFlow 安全漏洞 — tensorflow 5.5 Medium 2021-08-12
CVE-2021-37645 Google TensorFlow 数字错误漏洞 — tensorflow 5.5 Medium 2021-08-12
CVE-2021-29539 Google TensorFlow 安全漏洞 — tensorflow 2.5 Low 2021-05-14
CVE-2020-28588 Linux kernel 安全漏洞 — Linux Kernel 6.2 - 2021-05-10
CVE-2020-15225 Django 安全漏洞 — django-filter 7.5 High 2021-04-29
CVE-2021-3444 Linux kernel 安全漏洞 — kernel 7.8 High 2021-03-23
CVE-2020-4032 FreeRDP 安全漏洞 — FreeRDP 3.1 Low 2020-06-22
CVE-2019-14842 libnbd 输入验证错误漏洞 — libnbd 9.8 - 2019-11-26
CVE-2019-10203 PowerDNS Authoritative Server 资源管理错误漏洞 — pdns 6.5 - 2019-11-22

CWE-681(数值类型间的不正确转换) 是常见的弱点类别,本平台收录该类弱点关联的 48 条 CVE 漏洞。