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-478769.32026-07-30CVE-2026-175442026-07-30CVE-2026-177272026-07-30CVE-2026-177212026-07-30CVE-2026-176912026-07-30CVE-2026-176752026-07-30CVE-2026-623635.02026-07-30CVE-2026-180228.82026-07-29CVE-2026-129272026-07-29CVE-2026-182207.82026-07-29CVE-2026-581888.22026-07-29CVE-2026-581873.72026-07-29CVE-2026-581848.22026-07-29CVE-2026-581778.12026-07-29CVE-2026-581548.92026-07-29CVE-2026-352266.52026-07-29CVE-2026-150577.52026-07-28CVE-2026-483947.82026-07-28CVE-2026-483937.82026-07-28CVE-2026-483927.82026-07-28