---
title: "CWE-118: Incorrect Access of Indexable Resource"
url: https://radicalnotion.ai/cwe/cwe-118
type: cwe
description: "The product does not restrict or incorrectly restricts operations within the boundaries of a resource that is accessed using an index or pointer, such as memory or files."
updated: 2026-11-10
source: RadicalNotion.AI
license: CC BY-NC 4.0 (https://creativecommons.org/licenses/by-nc/4.0/)
---

# CWE-118: Incorrect Access of Indexable Resource

- **Abstraction:** Class
- **Structure:** Simple
- **Status:** Incomplete
- **CVEs with this as primary weakness:** 27
- **Of those, in CISA KEV:** 0
- **New in 2026:** 1
- **CWE catalog version:** 4.21

## Description

The product does not restrict or incorrectly restricts operations within the boundaries of a resource that is accessed using an index or pointer, such as memory or files.

## Alternate terms

- Range Error

## Modes of introduction

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

## Common consequences

| Scope | Impact | Note |
| --- | --- | --- |
| Other | Varies by Context | - |

## Real CVEs with this weakness (sample of 12 of 27)

| CVE | Title | Severity | CVSS | EPSS | CISA KEV | Published |
| --- | --- | --- | --- | --- | --- | --- |
| CVE-2015-9142 | - | critical | 9.8 | - | No | 2018-04-18 |
| CVE-2016-10495 | - | critical | 9.8 | - | No | 2018-04-18 |
| CVE-2015-2004 | - | critical | 9.8 | - | No | 2018-03-29 |
| CVE-2015-2003 | - | critical | 9.8 | - | No | 2018-03-29 |
| CVE-2015-2002 | - | critical | 9.8 | - | No | 2018-03-29 |
| CVE-2015-2001 | - | critical | 9.8 | - | No | 2018-03-29 |
| CVE-2015-2000 | - | critical | 9.8 | - | No | 2018-03-29 |
| CVE-2014-9411 | - | critical | 9.8 | - | No | 2017-08-18 |
| CVE-2022-38072 | ADMesh improper array index validation | high | 8.8 | - | No | 2023-04-03 |
| CVE-2026-50367 | Windows Sensor Data Service Elevation of Privilege Vulnerability | high | 7.8 | - | No | 2026-07-14 |
| CVE-2024-26601 | ext4: regenerate buddy after block freeing failed if under fc replay | high | 7.8 | - | No | 2024-02-24 |
| CVE-2023-37923 | GTKWave VCD sorted bsearch arbitrary write vulnerabilities | high | 7.8 | - | No | 2024-01-08 |

## Related attack patterns (CAPEC)

- [CAPEC-10](https://radicalnotion.ai/capec/capec-10): Buffer Overflow via Environment Variables
- [CAPEC-14](https://radicalnotion.ai/capec/capec-14): Client-side Injection-induced Buffer Overflow
- [CAPEC-24](https://radicalnotion.ai/capec/capec-24): Filter Failure through Buffer Overflow
- [CAPEC-45](https://radicalnotion.ai/capec/capec-45): Buffer Overflow via Symbolic Links
- [CAPEC-46](https://radicalnotion.ai/capec/capec-46): Overflow Variables and Tags
- [CAPEC-47](https://radicalnotion.ai/capec/capec-47): Buffer Overflow via Parameter Expansion
- [CAPEC-8](https://radicalnotion.ai/capec/capec-8): Buffer Overflow in an API Call
- [CAPEC-9](https://radicalnotion.ai/capec/capec-9): Buffer Overflow in Local Command-Line Utilities

## Related weaknesses

| Relationship | CWE | Name |
| --- | --- | --- |
| Parent | [CWE-664](https://radicalnotion.ai/cwe/cwe-664) | Improper Control of a Resource Through its Lifetime |
| Child | [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 |
| --- | --- | --- | --- |
| Software Fault Patterns | Faulty Buffer Access | SFP8 | - |

## Frequently asked questions

### What is CWE-118?

The product does not restrict or incorrectly restricts operations within the boundaries of a resource that is accessed using an index or pointer, such as memory or files.

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

27 recorded CVEs are attributed to CWE-118, including CVE-2015-9142, CVE-2016-10495 and CVE-2015-2004.

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

Exploiting CWE-118 can lead to: Varies by Context.

### Is CWE-118 actively exploited?

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

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

---

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