CWE•Base•Draft•20 recent CVEs
CWE-787Out-of-bounds Write
Description
The product writes data past the end, or before the beginning, of the intended buffer.
Common consequences
- Integrity→Modify Memory,Execute Unauthorized Code or CommandsWrite operations could cause memory corruption. In some cases, an adversary can modify control data such as return addresses in order to execute unexpected code.
- Availability→DoS: Crash, Exit, or RestartAttempting to access out-of-range, invalid, or unauthorized memory could cause the product to crash.
- Other→Unexpected StateSubsequent write operations can produce undefined or unexpected results.
Potential mitigations
- Requirements[object Object]
- Architecture and Design[object Object]
- Operation,Build and Compilation[object Object]
- Implementation[object Object]
- Operation,Build and Compilation[object Object]
- Operation[object Object]
- ImplementationReplace unbounded copy functions with analogous functions that support length arguments, such as strcpy with strncpy. Create these if they are not available.
Related CWEs
CWE-119Improper Restriction of Operations within the Bounds of a Memory BufferCWE-119Improper Restriction of Operations within the Bounds of a Memory BufferCWE-119Improper Restriction of Operations within the Bounds of a Memory BufferCWE-119Improper Restriction of Operations within the Bounds of a Memory Buffer
Recent CVEs classified under this CWE
CVE-2026-584586.52026-10-28CVE-2026-829626.52026-10-28CVE-2026-829617.82026-10-28CVE-2026-1033924.82026-10-28CVE-2026-1033915.32026-10-28CVE-2026-472352026-10-28CVE-2026-863777.62026-10-28CVE-2026-1184355.42026-10-28CVE-2026-1183758.12026-10-28CVE-2026-1183429.62026-10-27CVE-2026-571992026-10-27CVE-2026-571922026-10-27CVE-2026-571912026-10-27CVE-2026-571882026-10-27CVE-2026-572017.52026-10-27CVE-2026-571972026-10-27CVE-2026-571945.92026-10-27CVE-2026-571892026-10-27CVE-2026-938662026-10-27CVE-2026-938622026-10-27