CWE-787 / WEAKNESS
Out-of-bounds Write
A write occurs outside the bounds of its intended memory region.
- Category
- CWE weaknesses
- Version / scope
- MITRE CWE live reference; snapshot 2026-11-18
- Affected / relevant technologies
- Native code / Memory management
- Evidence
- Documentation: editorial summary; publisher link access checked. Execution: not tested. Editorial: curated reference.
Defensive analysis and explicitly authorized assessment only. This website performs no scans, exploitation, model calls or infrastructure changes. Indicators below are investigation opportunities, not proof of compromise or guaranteed detectors.
Mechanism and prerequisites
An affected memory-handling path can be reached with triggering input.
Potential impact
Crashes, corruption or code execution depending on exploitability.
Detection and investigation
- Use controlled sanitizer/fuzz test evidence and crash diagnostics; a crash alone is not proof of exploitation.
Preserve source timestamps, asset identity and collection context. Correlate independent evidence before attributing malicious intent. In OT, review passive evidence with the process owner; do not induce failures, replay commands or write to controllers to test a hypothesis.
Mitigation and response
- Use memory-safe abstractions, bounds validation and supported patched components.
Apply changes through the asset owner's approved change and recovery process. Documentation review is separate from successful testing or verified production protection.
Related technical context
No protocol-specific mapping is asserted for this entry.
Related security reading
Continue directly to another reference. Editorial reading connections do not assert official CWE/CAPEC/ATT&CK/OWASP equivalence or mappings.
- CAPEC-100 — Overflow Buffers (attack-pattern)
Publisher weakness and attack-pattern relationships
These relationships retain the publisher's source attributes and view context; they do not establish that an attack or weakness applies to a particular system.
- CWE-120 → ChildOf → CWE-787 Open related reference
- CWE-120 → ChildOf → CWE-787 Open related reference
- CWE-120 → ChildOf → CWE-787 Open related reference
- CWE-121 → ChildOf → CWE-787 Open related reference
- CWE-122 → ChildOf → CWE-787 Open related reference
- CWE-123 → ChildOf → CWE-787 Open related reference
- CWE-123 → ChildOf → CWE-787 Open related reference
- CWE-124 → ChildOf → CWE-787 Open related reference
- CWE-785 → ChildOf → CWE-787 Open related reference
- CWE-787 → ChildOf → CWE-119 Open related reference
- CWE-787 → ChildOf → CWE-119 Open related reference
- CWE-787 → ChildOf → CWE-119 Open related reference
- CWE-787 → ChildOf → CWE-119 Open related reference
- CWE-788 → Overlaps → CWE-787 Open related reference
- CWE-822 → CanPrecede → CWE-787 Open related reference
- CWE-823 → CanPrecede → CWE-787 Open related reference
- CWE-824 → CanPrecede → CWE-787 Open related reference
- CWE-825 → CanPrecede → CWE-787 Open related reference
Authoritative sources and attribution
Identifiers and source titles belong to OWASP, MITRE, the CVE Program, CISA, NIST or the cited vendor. Summaries are original editorial explanations. This is not an official framework mirror. Review baseline: 2026-11-18. Live documents can change; check exact current applicability.
- CWE - CWE-787: Out-of-bounds Write (5.0) — source accessed 2026-11-18
Source review supports bounded reference text. It is not execution evidence, a completeness claim, a CVSS assessment, a compliance certification or verification of production security.
