1. CVE archive
  2. Vulnerability types
  3. CWE-124
CWE-124 · #256 most frequent type in the archive

Buffer Underwrite

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

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

39CVEs of this type in the archive
4critical (CVSS ≥ 9)
17high severity (7–8.9)
Nov 28, 2026latest published

What it is

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

Impact on systems

ScopeImpact
Integrity, Availability Modify Memory, DoS: Crash, Exit, or Restart
Out of bounds memory access will very likely result in the corruption of relevant memory, and perhaps instructions, possibly leading to a crash.
Integrity, Confidentiality, Availability, Access Control, Other Execute Unauthorized Code or Commands, Modify Memory, Bypass Protection Mechanism, Other
If the corrupted memory can be effectively controlled, it may be possible to execute arbitrary code. If the corrupted memory is data rather than instructions, the system will continue to function with improper changes, possibly in violation of an implicit or explicit policy. The consequences would only be limited by how the affected data is used, such as an adjacent memory location that is used to specify whether the user has special privileges.
Access Control, Other Bypass Protection Mechanism, Other
When the consequence is arbitrary code execution, this can often be used to subvert any other security service.

How to prevent it

Requirements Choose a language that is not susceptible to these issues.
Implementation All calculated values that are used as index or for pointer arithmetic should be validated to ensure that they are within an expected range.

Source: MITRE CWE catalog · Official entry on the MITRE website

CWE-124 CVEs published per year

2026: year in progress, updated every hour

Show the data as a table
YearCVE
20211
20221
20241
20259
202627

All CWE-124 CVEs

39 results

Dottor Marc

Is this type of vulnerability in your systems?

An archive tells you what exists; a Vulnerability Assessment tells you what is exposed on your side. Dottor Marc tests your web applications and network with automated and manual checks.