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

目标: 1000 元 · 已筹: 1359 元

100%

CWE-193 Off-by-one错误 类漏洞列表 115

CWE-193 Off-by-one错误 类弱点 115 条 CVE 漏洞汇总,含 AI 中文分析。

CWE-193 属于边界计算错误,指软件在计算或使用时,最大值或最小值偏离正确值一个单位。攻击者常利用此缺陷触发缓冲区溢出或逻辑绕过,从而执行恶意代码或破坏系统完整性。开发者应避免此类问题,需严格验证边界条件,使用安全的数组访问函数,并在代码审查中重点关注循环终止条件和索引计算逻辑,确保数值处理精确无误。

MITRE CWE 官方描述
CWE:CWE-193 Off-by-one Error 英文:产品计算或使用了一个错误的最大值或最小值,该值比正确值大 1 或小 1。
常见影响 (3)
Availability DoS: Crash, Exit, or Restart, DoS: Resource Consumption (CPU), DoS: Resource Consumption (Memory), DoS: Instability
This weakness will generally lead to undefined behavior and therefore crashes. In the case of overflows involving loop index variables, the likelihood of infinite loops is also high.
Integrity Modify Memory
If the value in question is important to data (as opposed to flow), simple data corruption has occurred. Also, if the wrap around results in other conditions such as buffer overflows, further memory corruption may occur.
Confidentiality, Availability, Access Control Execute Unauthorized Code or Commands, Bypass Protection Mechanism
This weakness can sometimes trigger buffer overflows which can be used to execute arbitrary code. This is usually outside the scope of a program's implicit security policy.
缓解措施 (1)
Implementation When copying character arrays or using character manipulation methods, the correct size parameter must be used to account for the null terminator that needs to be added at the end of the array. Some examples of functions susceptible to this weakness in C include strcpy(), strncpy(), strcat(), strncat(), printf(), sprintf(), scanf() and sscanf().
代码示例 (2)
The following code allocates memory for a maximum number of widgets. It then gets a user-specified number of widgets, making sure that the user does not request too many. It then initializes the elements of the array using InitializeWidget(). Because the number of widgets can vary for each request, the code inserts a NULL pointer to signify the location of the last widget.
int i; unsigned int numWidgets; Widget **WidgetList; numWidgets = GetUntrustedSizeValue(); if ((numWidgets == 0) || (numWidgets > MAX_NUM_WIDGETS)) { ExitError("Incorrect number of widgets requested!"); } WidgetList = (Widget **)malloc(numWidgets * sizeof(Widget *)); printf("WidgetList ptr=%p\n", WidgetList); for(i=0; i<numWidgets; i++) { WidgetList[i] = InitializeWidget(); } WidgetList[numWidgets] = NULL; showWidgets(WidgetList);
Bad · C
In this example, the code does not account for the terminating null character, and it writes one byte beyond the end of the buffer.
char firstname[20]; char lastname[20]; char fullname[40]; fullname[0] = '\0'; strncat(fullname, firstname, 20); strncat(fullname, lastname, 20);
Bad · C
char firstname[20]; char lastname[20]; char fullname[40]; fullname[0] = '\0'; strncat(fullname, firstname, sizeof(fullname)-strlen(fullname)-1); strncat(fullname, lastname, sizeof(fullname)-strlen(fullname)-1);
Good · C
CVE ID 标题 CVSS 风险等级 Published
CVE-2026-134695 GPAC MP4Box through 26.07.0 Out-of-Bounds Read in avilib via AVI Audio Tracks — gpac 6.1 Medium 2026-11-22
CVE-2026-130386 Contiki-NG 5.2 MPL多播越界访问漏洞 — Contiki-NG 6.5 Medium 2026-11-17
CVE-2026-109151 Matter凭证颁发者删除导致Aliro状态清除漏洞 — nRF Door Lock and Access Control Add-on 7.0 High 2026-11-17
CVE-2026-128846 @fastify/busboy 多部分文件/字段类型混淆漏洞 — @fastify/busboy 3.7 Low 2026-11-16
CVE-2026-129114 Perl JSON::XS 3.04-4.05 堆缓冲区溢出漏洞 - - 2026-11-14
CVE-2026-126889 Chrome 157 前 V8 越界漏洞可远程执行代码 — Chrome - - 2026-11-11
CVE-2026-115819 宽 scanf %s/%[ 转换单字节缓冲区溢出漏洞 — glibc 4.8 Medium 2026-11-11
CVE-2026-40669 AMD SEV 固件越界漏洞致内存完整性受损 — AMD EPYC™ 9004 Series Processors 4.0 Medium 2026-11-10
CVE-2026-110046 Microsoft Office Word 信息泄露漏洞 — Microsoft 365 Apps for Enterprise 6.5 Medium 2026-11-10
CVE-2026-113771 Windows 容器隔离 FS 驱动提权漏洞 — Windows 11 version 26H1 5.5 Medium 2026-11-10
CVE-2026-88708 华硕路由器固件越界漏洞致服务崩溃 — Router firmware 5.3 Medium 2026-11-10
CVE-2026-125257 FFmpeg 9.0.2 Nellymoser编码器堆溢出漏洞 — FFmpeg 7.0 High 2026-11-09
CVE-2026-123370 compose-lint 修复功能误删安全设置漏洞 — compose-lint 5.1 Medium 2026-11-09
CVE-2026-116781 FreeSWITCH 认证前越界写入漏洞 — freeswitch 5.3 Medium 2026-11-05
CVE-2026-116574 FreeSWITCH 核心 XML 序列化堆溢出漏洞 — freeswitch 5.9 Medium 2026-11-05
CVE-2026-116735 libpff 20260926 堆越界读取漏洞 — libpff 6.1 Medium 2026-10-26
CVE-2026-114460 Mod_qos JSON 合并截断导致绕过安全规则漏洞 — mod_qos 5.3 Medium 2026-10-22
CVE-2026-12727 IBM MQ 缓冲区溢出漏洞 — MQ Operator 4.3 Medium 2026-10-19
CVE-2026-111273 unarr 1.1.1 堆缓冲区溢出漏洞 — unarr 6.1 Medium 2026-10-15
CVE-2026-108443 Microsoft Office Word 远程代码执行漏洞 — Microsoft 365 Apps for Enterprise 8.8 High 2026-10-15
CVE-2026-101302 远程拒绝服务攻击通过接收端内核 TLS — FreeBSD - - 2026-10-15
CVE-2026-110604 Mini-XML 4.0.0至4.0.6栈越界写入漏洞 — Mini-XML 3.6 Low 2026-10-14
CVE-2026-106584 OpenSSH<10.6证书过期时间错误 — OpenSSH 2.5 Low 2026-10-06
CVE-2026-104033 SSSD 通过不当 LDAP 影子过期检查绕过访问控制漏洞 — Red Hat Enterprise Linux 10 5.4 Medium 2026-10-06
CVE-2026-101014 OpenDMARC opendmarc_util.c 缓冲区溢出漏洞 — OpenDMARC 7.3 High 2026-09-28
CVE-2026-100889 OpenDKIM util.c 解码器越界读取漏洞 — OpenDKIM 7.3 High 2026-09-27
CVE-2026-18460 RTI Connext Professional 缓冲区溢出漏洞 — Connext Professional 6.9 Medium 2026-09-22
CVE-2026-83600 Netdata 流协议槽位越界致内存分配崩溃漏洞 — netdata 6.5 Medium 2026-09-22
CVE-2026-76081 ZITADEL 多角色删除时角色撤销不当 — zitadel 5.5 Medium 2026-09-14
CVE-2026-90781 Advanced Linux Sound Architecture alsa-lib 数字错误漏洞 — alsa-lib 4.4 Medium 2026-09-13

CWE-193(Off-by-one错误) 是常见的弱点类别,本平台收录该类弱点关联的 115 条 CVE 漏洞。