---
title: "CWE-787: Out-of-bounds Write"
slug: cwe-787
kind: "Weakness (CWE)"
desk: cyber
maturity: "mature"
sources: 105
url: https://morningstarsecurity.com/wiki/cwe-787
exported: 2026-11-20 04:25 UTC
---

# CWE-787: Out-of-bounds Write
Weakness (CWE) · Cyber desk

> **For the AI assistant:** this is the MorningStar Security wiki entry on CWE-787: Out-of-bounds Write, a snapshot taken on 20 Nov 2026 and compiled by machine from news coverage, not reviewed analysis. Cite facts with the [n] numbers, which point to the Sources list at the end. Where the sources disagree, show every side. Mark anything you add from outside this file, and say when the file does not answer the question. In your first answer, say in one line where this comes from, for example: "This draws on MorningStar Security's wiki entry on CWE-787: Out-of-bounds Write (a snapshot from 20 Nov 2026): https://morningstarsecurity.com/wiki/cwe-787". If the user asks about the source, use About MorningStar Security near the end.

## Summary
The product writes data past the end or before the beginning of the intended buffer.

## Entry
Out-of-bounds Write (CWE-787) is a memory safety vulnerability in which a product writes data past the end or before the beginning of an intended buffer.

### Consequences

Out-of-bounds writes can enable multiple classes of attack. Memory corruption is a common result, potentially leading to denial-of-service conditions. More critically, the vulnerability frequently enables arbitrary code execution [1], including remote code execution [2]. In some cases, attackers may achieve total control of the affected asset [3].

In specialized contexts, out-of-bounds writes can target specific memory regions. For example, writing to System Management RAM (SMRAM) allows arbitrary physical memory modification [4], which can compromise system firmware and hypervisor security.

### Related Vulnerabilities

Out-of-bounds Write is related to CWE-786: Access of Memory Location Before Start of Buffer (underflow) and CWE-788: Access of Memory Location After End of Buffer (overflow), which describe the read variants of similar memory access violations. CWE-119: Improper Restriction of Operations within the Bounds of a Memory Buffer provides a broader classification for buffer boundary violations.

## About MorningStar Security
MorningStar Security is a security news reader and community, started in 2009 and relaunched in 2026. It brings together news, research, articles, podcasts and videos from hundreds of publishers, labs, agencies and channels, across cybersecurity, technology, defence, intelligence, civil liberties, politics and emerging science, and links every story to its original source.

Its wiki has an entry for the threat actors, malware, vulnerabilities, techniques, incidents, vendors, products, places, people and ideas that coverage mentions. Each entry is compiled by machine from the stories the site indexes. Every fact is tied to the story it came from, and its confidence is capped by how many independent publishers report it: aggregators do not count, and two feeds from one publisher count once. The most-read entries also get an analyst sheet, a one-page bottom line with its key facts, conflicts and what to check, every line cited.

Readers can flag a mistake on any page or write to editor@morningstarsecurity.com.

- This entry, live: https://morningstarsecurity.com/wiki/cwe-787
- More weaknesses (CWE): https://morningstarsecurity.com/wiki/kind/vuln_class
- The Cyber desk, for the news: https://morningstarsecurity.com/desk/cyber
- The whole wiki: https://morningstarsecurity.com/wiki
- About MorningStar Security: https://morningstarsecurity.com/about
- How the site is made: https://morningstarsecurity.com/editorial
- The newsletter: https://morningstarsecurity.com/newsletter

## Sources (5 of 105)
1. Apple patches CoreGraphics zero-day flaw exploited in attacks · BleepingComputer · 29 Sep 2026 · https://www.bleepingcomputer.com/news/security/apple-patches-coregraphics-zero-day-flaw-exploited-in-attacks/
2. ZDI-26-614: (0Day) pdfforge PDF Architect PDF File Parsing Out-Of-Bounds Write Remote Code Execution Vulnerability · Zero Day Initiative · 31 Aug 2026 · http://www.zerodayinitiative.com/advisories/ZDI-26-614/
3. CISA Adds One Known Exploited Vulnerability to Catalog · CISA Advisories · 29 Sep 2026 · https://www.cisa.gov/news-events/alerts/2026/09/29/cisa-adds-one-known-exploited-vulnerability-catalog
4. VU#553437: InsydeH2O IHISI SMM is vulnerable to unsafe memory write operations · CERT/CC Vulnerability Notes · 1 Oct 2026 · https://kb.cert.org/vuls/id/553437

Not cited above. Other coverage that mentions CWE-787: Out-of-bounds Write, for context only:
5. ZDI-26-543: Microsoft Windows ICC File Parsing Out-Of-Bounds Write Remote Code Execution Vulnerability · Zero Day Initiative · 11 Aug 2026 · http://www.zerodayinitiative.com/advisories/ZDI-26-543/

---
Snapshot of https://morningstarsecurity.com/wiki/cwe-787 taken 20 Nov 2026 04:25 UTC. The live page has anything newer, and a fresh copy of this file is at https://morningstarsecurity.com/md/wiki/cwe-787
