CWE-126: Buffer Over-read

VariantDraft

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

View on MITRE
Back to CWE Lookup

Technical Details

Structure
Simple

Applicable To

Languages
CC++
Platforms

Frequently Asked Questions

What is CWE-126: Buffer Over-read?+

CWE-126: Buffer Over-read is a Common Weakness Enumeration (CWE) entry maintained by MITRE. The product reads from a buffer using buffer access mechanisms such as indexes or pointers that reference memory locations after the targeted buffer.

What are the security consequences of Buffer Over-read?+

If exploited, CWE-126 (Buffer Over-read) it can compromise Confidentiality, Availability and Integrity, leading to outcomes such as Read Memory, Bypass Protection Mechanism and DoS: Crash, Exit, or Restart.

Which programming languages are affected by Buffer Over-read?+

CWE-126 commonly affects C and C++. Note that weaknesses are often language-agnostic patterns, so secure coding practices apply broadly.

What are real-world examples of Buffer Over-read?+

MITRE documents real CVEs mapped to CWE-126, including CVE-2022-1733, CVE-2014-0160 and CVE-2009-2523. You can look up the full details of each CVE, including CVSS scores and remediation guidance, on our CVE Lookup tool.

What is the difference between a CWE and a CVE?+

A CWE (Common Weakness Enumeration) like CWE-126 describes a category of software weakness — the underlying flaw type. A CVE (Common Vulnerabilities and Exposures) identifies a specific, real-world vulnerability in a particular product. In short, a CWE is the kind of mistake, and a CVE is an instance of that mistake being found in software.

Learn More