CWE-126: Buffer Over-read

Variant Draft Simple

CWE版本: 4.18

更新日期: 2025-09-09

弱点描述

The product reads from a buffer using buffer access mechanisms such as indexes or pointers that reference memory locations after the targeted buffer.

常见后果

影响范围: Confidentiality

技术影响: Read Memory

影响范围: Confidentiality

技术影响: Bypass Protection Mechanism

说明: By reading out-of-bounds memory, an attacker might be able to get secret values, such as memory addresses, which can bypass protection mechanisms such as ASLR in order to improve the reliability and likelihood of exploiting a separate weakness to achieve code execution instead of just denial of service.

影响范围: Availability Integrity

技术影响: DoS: Crash, Exit, or Restart

说明: An attacker might be able to cause a crash or other denial of service by causing the product to read a memory location that is not allowed (such as a segmentation fault), or to cause other conditions in which the read operation returns more data than is expected.

检测方法

方法: Automated Static Analysis

Automated static analysis, commonly referred to as Static Application Security Testing (SAST), can find some instances of this weakness by analyzing source code (or binary/compiled code) without having to execute it. Typically, this is done by building a model of data flow and control flow, then searching for potentially-vulnerable patterns that connect "sources" (origins of input) with "sinks" (destinations where the data interacts with external components, a lower layer such as the OS, etc.)

有效性: High

观察示例

参考: CVE-2022-1733

Text editor has out-of-bounds read past end of line while indenting C code

参考: CVE-2014-0160

Chain: "Heartbleed" bug receives an inconsistent length parameter (CWE-130) enabling an out-of-bounds read (CWE-126), returning memory that could include private cryptographic keys and other sensitive data.

参考: CVE-2009-2523

Chain: product does not handle when an input string is not NULL terminated, leading to buffer over-read or heap-based buffer overflow.

引入模式

阶段 说明
Implementation -

适用平台

编程语言
C (Undetermined) C++ (Undetermined)

分类映射

分类名称 条目ID 条目名称 映射适配度
PLOVER - Buffer over-read -
Software Fault Patterns SFP8 Faulty Buffer Access -
关键信息

CWE ID: CWE-126

抽象级别: Variant

结构: Simple

状态: Draft

相关弱点