Common Weakness Enumeration

    CWE Definition / CWE-823

    CWE-823: Use of Out-of-range Pointer Offset

    The product performs pointer arithmetic on a valid pointer, but it uses an offset that can point outside of the intended range of valid memory locations for the resulting pointer.

    Published:22 Sep 2010
    Organization:MITRE
    Modified:11 Dec 2025

    Related Weakness

    CWE-119: Improper Restriction of Operations within the Bounds of a Memory Buffer

    CWE-119: Improper Restriction of Operations within the Bounds of a Memory Buffer

    CWE-119: Improper Restriction of Operations within the Bounds of a Memory Buffer

    CWE-125: Out-of-bounds Read

    CWE-787: Out-of-bounds Write