---
title: "CWE-466: Return of Pointer Value Outside of Expected Range"
url: https://radicalnotion.ai/cwe/cwe-466
type: cwe
description: "A function can return a pointer to memory that is outside of the buffer that the pointer is expected to reference."
updated: 2026-11-10
source: RadicalNotion.AI
license: CC BY-NC 4.0 (https://creativecommons.org/licenses/by-nc/4.0/)
---

# CWE-466: Return of Pointer Value Outside of Expected Range

- **Abstraction:** Base
- **Structure:** Simple
- **Status:** Draft
- **CVEs with this as primary weakness:** 9
- **Of those, in CISA KEV:** 0
- **New in 2026:** 6
- **CWE catalog version:** 4.21

## Description

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

## Modes of introduction

| Phase | Note |
| --- | --- |
| Implementation | - |

## Applicable platforms

**Languages:** Memory-Unsafe (Undetermined), C (Undetermined), C++ (Undetermined)

## Common consequences

| Scope | Impact | Note |
| --- | --- | --- |
| Confidentiality, Integrity | Read Memory, Modify Memory | - |

## Detection methods

### Automated Static Analysis

Automated static analysis, commonly referred to as Static Application Security Testing (SAST), can find some instances of this weakness by analyzing source code (or binary/compiled code) without having to execute it. Typically, this is done by building a model of data flow and control flow, then searching for potentially-vulnerable patterns that connect "sources" (origins of input) with "sinks" (destinations where the data interacts with external components, a lower layer such as the OS, etc.)

### Automated Dynamic Analysis

Use tools that are integrated during compilation to insert runtime error-checking mechanisms related to memory safety errors, such as AddressSanitizer (ASan) for C/C++ \[REF-1518\].

Effectiveness: Moderate. Crafted inputs are necessary to reach the code containing the error, such as generated by fuzzers. Also, these tools may reduce performance, and they only report the error condition - not the original mistake that led to the error.

## Real CVEs with this weakness

| CVE | Title | Severity | CVSS | EPSS | CISA KEV | Published |
| --- | --- | --- | --- | --- | --- | --- |
| CVE-2019-10356 | Return of Pointer Value Outside of Expected Rang in Jenkins Script Security Plugin | high | 8.8 | - | No | 2019-07-31 |
| CVE-2024-21849 | BIG-IP Websockets vulnerability | high | 7.5 | - | No | 2024-02-14 |
| CVE-2024-33602 | nscd: netgroup cache assumes NSS callback uses in-buffer strings | high | 7.4 | - | No | 2024-05-06 |
| CVE-2018-25234 | SmartFTP Client 9.0.2615.0 Denial of Service via Host Field | medium | 6.9 | - | No | 2026-03-30 |
| CVE-2018-25227 | Valentina Studio 9.0.4 Denial of Service via Host Parameter | medium | 6.9 | - | No | 2026-03-30 |
| CVE-2019-25599 | Backup Key Recovery 2.2.4 Denial of Service via Name Field | medium | 6.9 | - | No | 2026-03-22 |
| CVE-2019-25586 | Deluge 1.3.15 Denial of Service via URL Field | medium | 6.9 | - | No | 2026-03-22 |
| CVE-2019-25548 | BlueStacks 4.80.0.1060 Denial of Service via Search Field | medium | 6.9 | - | No | 2026-03-21 |
| CVE-2026-57025 | Junos OS and Junos OS Evolved: EX Series, QFX Series, MX Series: A specific 'show l2-learning/ethernet-switching' command causes l2ald crash | medium | 6.8 | - | No | 2026-07-09 |

## Related weaknesses

| Relationship | CWE | Name |
| --- | --- | --- |
| Parent | [CWE-20](https://radicalnotion.ai/cwe/cwe-20) | Improper Input Validation |
| Parent | [CWE-119](https://radicalnotion.ai/cwe/cwe-119) | Improper Restriction of Operations within the Bounds of a Memory Buffer |

## Taxonomy mappings

| Taxonomy | Entry | Id | Fit |
| --- | --- | --- | --- |
| 7 Pernicious Kingdoms | Illegal Pointer Value | - | - |
| Software Fault Patterns | Glitch in computation | SFP1 | - |

## Frequently asked questions

### What is CWE-466?

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

### What CVEs are caused by CWE-466?

9 recorded CVEs are attributed to CWE-466, including CVE-2019-10356, CVE-2024-21849 and CVE-2024-33602.

### How is CWE-466 detected?

Automated Static Analysis: Automated static analysis, commonly referred to as Static Application Security Testing (SAST), can find some instances of this weakness by analyzing source code (or binary/compiled code) without having to execute it. Typically, this is done by building a model of data flow and control flow, then searching for potentially-vulnerable patterns that connect "sources" (origins of input) with "sinks" (destinations where the data interacts with external components, a lower layer such as the OS, etc.)

### What are the consequences of CWE-466?

Exploiting CWE-466 can lead to: Read Memory, Modify Memory.

### Is CWE-466 actively exploited?

9 recorded CVEs are caused by CWE-466; none are currently in CISA's KEV catalog of actively exploited flaws.

Primary source: [MITRE CWE](https://cwe.mitre.org/data/definitions/466.html)

---

Source: [RadicalNotion.AI](https://radicalnotion.ai/cwe/cwe-466). Licensed CC BY-NC 4.0; attribute RadicalNotion.AI and link the source page when you reuse this data.
