- What is CWE-124?
- The product writes to a buffer using an index or pointer that references a memory location prior to the beginning of the buffer.
- What CVEs are caused by CWE-124?
- 34 recorded CVEs are attributed to CWE-124, including CVE-2015-2426, CVE-2026-44631, CVE-2025-53101. 1 are listed in CISA's Known Exploited Vulnerabilities (KEV) catalog.
- How do you prevent CWE-124?
- Choose a language that is not susceptible to these issues.
- How is CWE-124 detected?
- 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.)
- What are the consequences of CWE-124?
- Exploiting CWE-124 can lead to: Modify Memory, DoS: Crash, Exit, or Restart, Execute Unauthorized Code or Commands, Bypass Protection Mechanism, Other.
- Is CWE-124 actively exploited?
- Yes. 1 CWE-124 vulnerabilities are in CISA's KEV catalog of actively exploited flaws, out of 34 recorded CVEs.