SiteShadow
Back to vulnerability library

CWE-787 Out-of-bounds Write

What this means

SiteShadow flagged code that may write outside the bounds of a buffer/array.

Why it matters

Out-of-bounds writes can corrupt memory and enable RCE.

Safer examples

1) Use bounds-checked containers and safe APIs

Prefer languages and libraries that prevent OOB writes.

2) Validate sizes and indices before writing

Enforce maximums and check arithmetic that computes offsets/lengths (see CWE-190).

3) Use sanitizers and fuzzing in CI

ASan/UBSan + fuzzing are extremely effective at catching these early.

How SiteShadow detects it (high level)

References

---

← Back to Vulnerability Library

Request access View coverage