CWE Database
/

CWE-466

Back to CWE list

CWE-466

Return of Pointer Value Outside of Expected Range

Base
Draft

Description

A function can return a pointer to memory that is outside of the buffer that the pointer is expected to reference.

Common Consequences

Scope

Confidentiality
Integrity

Impact

Read Memory, Modify Memory

Applicable Platforms

Memory-Unsafe
C
C++

Security Training

Train your team to recognize and prevent security threats with our comprehensive security awareness program.

Start Training

Vulnerability Scanning

Discover vulnerabilities in your applications and infrastructure before attackers do.

Scan Now