Goal Reached Thanks to every supporter — we hit 100%!

Goal: 1000 CNY · Raised: 1359 CNY

100%

CWE-787 (跨界内存写) — Vulnerability Class 3158

3158 vulnerabilities classified as CWE-787 (跨界内存写). AI Chinese analysis included.

CWE-787 represents a critical memory management weakness where software incorrectly writes data beyond the allocated boundaries of a buffer. This flaw typically arises from insufficient bounds checking, allowing attackers to overwrite adjacent memory locations with malicious payloads. Exploitation often leads to arbitrary code execution, denial of service, or privilege escalation by corrupting critical system structures or control flow data. Developers mitigate this risk by implementing rigorous input validation and utilizing safe programming practices that enforce strict boundary checks before any memory operation. Employing modern languages with automatic memory management, such as Rust or Java, further reduces exposure by preventing direct pointer arithmetic. Additionally, static analysis tools and fuzzing techniques help identify potential out-of-bounds conditions during the development lifecycle, ensuring that buffer operations remain within their intended limits and preserving application integrity against memory corruption attacks.

MITRE CWE Description
The product writes data past the end, or before the beginning, of the intended buffer.
Common Consequences (3)
Integrity Modify Memory, Execute Unauthorized Code or Commands
Write 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 Restart
Attempting to access out-of-range, invalid, or unauthorized memory could cause the product to crash.
Other Unexpected State
Subsequent write operations can produce undefined or unexpected results.
Mitigations (5)
Requirements Use a language that does not allow this weakness to occur or provides constructs that make this weakness easier to avoid. For example, many languages that perform their own memory management, such as Java and Perl, are not subject to buffer overflows. Other languages, such as Ada and C#, typically provide overflow protection, but the protection can be disabled by the programmer. Be wary that a lan…
Architecture and Design Use a vetted library or framework that does not allow this weakness to occur or provides constructs that make this weakness easier to avoid. Examples include the Safe C String Library (SafeStr) by Messier and Viega [REF-57], and the Strsafe.h library from Microsoft [REF-56]. These libraries provide safer versions of overflow-prone string-handling functions.
Operation, Build and Compilation Use automatic buffer overflow detection mechanisms that are offered by certain compilers or compiler extensions. Examples include: the Microsoft Visual Studio /GS flag, Fedora/Red Hat FORTIFY_SOURCE GCC flag, StackGuard, and ProPolice, which provide various mechanisms including canary-based detection and range/index checking. D3-SFCV (Stack Frame Canary Validation) from D3FEND [REF-1334] discusses…
Effectiveness: Defense in Depth
Implementation Consider adhering to the following rules when allocating and managing an application's memory: Double check that the buffer is as large as specified. When using functions that accept a number of bytes to copy, such as strncpy(), be aware that if the destination buffer size is equal to the source buffer size, it may not NULL-terminate the string. Check buffer boundaries if accessing the buffer in a…
Operation, Build and Compilation Run or compile the software using features or extensions that randomly arrange the positions of a program's executable and libraries in memory. Because this makes the addresses unpredictable, it can prevent an attacker from reliably jumping to exploitable code. Examples include Address Space Layout Randomization (ASLR) [REF-58] [REF-60] and Position-Independent Executables (PIE) [REF-64]. Imported…
Effectiveness: Defense in Depth
Examples (2)
The following code attempts to save four different identification numbers into an array.
int id_sequence[3]; /* Populate the id array. */ id_sequence[0] = 123; id_sequence[1] = 234; id_sequence[2] = 345; id_sequence[3] = 456;
Bad · C
In the following code, it is possible to request that memcpy move a much larger segment of memory than assumed:
int returnChunkSize(void *) { /* if chunk info is valid, return the size of usable memory, * else, return -1 to indicate an error */ ... } int main() { ... memcpy(destBuf, srcBuf, (returnChunkSize(destBuf)-1)); ... }
Bad · C
CVE ID Title CVSS Severity Published
CVE-2026-114458 Mod_qos: undersized connection-monitor scratch array permits heap buffer overflow — mod_qos 5.9 Medium 2026-10-22
CVE-2026-96778 Pillow: Heap buffer overflow writing JPEG comment after ICC profile fills buffer — Pillow 7.7 High 2026-10-21
CVE-2026-78119 Out-of-bounds write in the Nuvoton NPCX eSPI Target-Attached-Flash receive path from an unvalidated host-supplied packet length — zephyr 6.3 Medium 2026-10-21
CVE-2026-76490 Cisco Expressway Series Software Hardening Release: October 2026 - Out-of-bounds Write Vulnerabilities — Cisco TelePresence Video Communication Server (VCS) Expressway 8.6 High 2026-10-21
CVE-2026-20043 Multiple Cisco Products Snort 3 Software Hardening Release: October 2026 — Cisco Cyber Vision 9.0 Critical 2026-10-21
CVE-2026-56388 Apache bRPC: Out-of-Bounds Write in Redis Command Parser — Apache bRPC - - 2026-10-21
CVE-2021-48020 Vyper before 0.3.0 Memory Corruption via Internal Function Calls in Arrays — vyper 6.5 Medium 2026-10-21
CVE-2021-48018 Vyper 0.2.13 before 0.2.15 Storage Corruption via @nonreentrant Decorator — vyper 7.4 High 2026-10-21
CVE-2020-37286 Vyper 0.1.0b4 before 0.3.0 Memory Corruption via Nested Internal Function Calls — vyper 6.5 Medium 2026-10-21
CVE-2026-113029 Chrome 156.0.8078.47 前 ANGLE 组件任意代码执行漏洞 — Chrome - - 2026-10-20
CVE-2026-113160 Chrome 156.0.8078.47 前 Turbolev 释放后使用漏洞 — Chrome - - 2026-10-20
CVE-2026-113293 Chrome 156.0.8078.47 前 ANGLE 释放后使用漏洞 — Chrome - - 2026-10-20
CVE-2026-109576 HMS Networks PEAK-System PCAN Windows drivers Out-of-bounds Write — PEAK-System Device Driver Setup 5.5 Medium 2026-10-20
CVE-2026-100134 Acrobat for Edge | Out-of-bounds Write (CWE-787) — Acrobat for Edge 8.8 High 2026-10-20
CVE-2026-113679 HarfBuzz 8.0.0 through 14.6.0 Out-of-Bounds Write via WebAssembly font_glyph_to_string — harfbuzz 7.0 High 2026-10-20
CVE-2026-93475 Out-of-bounds Write via an Unbounded RSA Modulus in NetX Secure X.509 — Eclipse ThreadX - NetX Duo 9.3 Critical 2026-10-20
CVE-2026-91041 FileX fault-tolerant log replay writes past the destination sector when mounting a crafted FAT image — Eclipse ThreadX - FileX 7.8 High 2026-10-20
CVE-2026-109831 GNU UnRTF 越界写入漏洞致拒绝服务 — UnRTF 5.1 Medium 2026-10-20
CVE-2026-19595 Zephyr RTIO syscall verifier validates output parameters for read instead of write access — zephyr 6.1 Medium 2026-10-19
CVE-2026-112397 Pillow: Out-of-bounds access in _imagingmorph on a zero-width image — Pillow 8.7 High 2026-10-19
CVE-2026-76788 Stack out-of-bounds write in the OSDP Control Panel reply parser — zephyr 8.8 High 2026-10-19
CVE-2026-110680 Cpanel::JSON::XS versions from 4.20 before 4.80 for Perl write out of bounds when a tied or shared hash grows during canonical encoding in encode_hv - - 2026-10-19
CVE-2026-112275 Netpbm through 11.16.00 Heap Out-of-Bounds Write via rasttopnm pr_load_image — Netpbm 6.1 Medium 2026-10-19
CVE-2026-112059 libLAS through 1.8.1 Heap Out-of-Bounds Write via LASSchema VLR — libLAS 6.1 Medium 2026-10-18
CVE-2026-112060 librtmp (RTMPDump) through 2.6 Heap Out-of-Bounds Write via AMF3_Decode — librtmp 6.4 Medium 2026-10-18
CVE-2026-112018 cgltf through 1.15 Heap Out-of-Bounds Write via cgltf_accessor_unpack_floats() — cgltf 7.0 High 2026-10-18
CVE-2026-112012 libtta through 2.3 Stack Out-of-Bounds Write via Zero Channel Count — libtta 5.3 Medium 2026-10-18
CVE-2026-112007 Schism Tracker through 20260524 Heap Out-of-Bounds Write via ULT Loader — Schism Tracker 6.1 Medium 2026-10-18
CVE-2026-111880 FreeRDP 2.0.0 before 3.32.0 Heap Out-of-Bounds Write via NTLM MIC Offset — FreeRDP 7.4 High 2026-10-17
CVE-2026-89088 Parted: parted: denial of service via heap buffer overflow during fat16 resize — Red Hat Enterprise Linux 10 5.5 Medium 2026-10-16

Vulnerabilities classified as CWE-787 (跨界内存写) represent 3158 CVEs. The CWE taxonomy describes the weakness; review individual CVEs for product-specific impact.