CWE-786: Access of Memory Location Before Start of Buffer

low-risk

The product reads or writes to a buffer using an index or pointer that references a memory location prior to the beginning of the buffer.

Abstraction: Base

Common Consequences

Confidentiality Read Memory
Integrity Modify Memory
Integrity Modify Memory

Detection Methods

Fuzzing

Fuzz testing (fuzzing) is a powerful technique for generating large numbers of diverse inputs - either randomly or algorithmically - and dynamically invoking the code with those inputs. Even with random inputs, it is often capable of generating unexpected results such as crashes, memory corruption, or resource consumption. Fuzzing effectively produces repeatable test cases that clearly indicate bugs, which helps developers to diagnose the issues.

Automated Dynamic Analysis

Use tools that are integrated during compilation to insert runtime error-checking mechanisms related to memory safety errors, such as AddressSanitizer (ASan) for C/C++ [REF-1518].

Real-World Examples (9)

CVE CVSS EPSS KEV
CVE-2024-27808 8.8 0.8%
CVE-2023-46724 8.6 0.4%
CVE-2022-0522 7.1 0.4%
CVE-2024-5700 7.0 0.2%
CVE-2026-20058 5.8 0.1%
CVE-2024-27828 7.8 0.1%
CVE-2024-27831 7.8 0.1%
CVE-2022-0351 7.8 0.1%
CVE-2024-27840 6.3 0.0%
0
/ 100
low-risk
Active Threat 0/50 · Minimal
Exploit Availability 0/50 · Minimal