---
title: "CAPEC-679: Exploitation of Improperly Configured or Implemented Memory Protections"
url: https://radicalnotion.ai/capec/capec-679
type: capec
description: "An adversary takes advantage of missing or incorrectly configured access control within memory to read/write data or inject malicious code into said memory."
updated: 2026-06-01
source: RadicalNotion.AI
license: CC BY-NC 4.0 (https://creativecommons.org/licenses/by-nc/4.0/)
---

# CAPEC-679: Exploitation of Improperly Configured or Implemented Memory Protections

- **Abstraction:** Detailed
- **Status:** Draft
- **Typical severity:** Very High
- **Likelihood of attack:** Medium
- **CAPEC catalog version:** 3.9

## Description

An adversary takes advantage of missing or incorrectly configured access control within memory to read/write data or inject malicious code into said memory.

Hardware product designs often need to implement memory protection features to prevent users from reading and modifying memory reserved for security operations such as secure booting, authenticating code, device attestation, and more. However, these protection features may be missing if not configured by developers. For example, this can occur if the developers assume these features are configured elsewhere. Additionally, developers often attempt to impose proper protection features, but may incorrectly configure these controls. One such example would be setting controls with insufficient granularity for protected address regions. If an adversary is able to discover improper access controls surrounding memory, it could result in the adversary obtaining sensitive data, executing code, circumventing security mechanisms, escalating privileges, or even denying service to higher privilege software.

## Prerequisites

- Access to the hardware being leveraged.

## Skills required

- **Medium:** Ability to craft malicious code to inject into the memory region.
- **High:** Intricate knowledge of memory structures.

## Consequences

| Scope | Impact | Note |
| --- | --- | --- |
| Integrity | Modify Data | - |
| Confidentiality | Read Data | - |
| Confidentiality, Integrity, Availability | Execute Unauthorized Commands | Run Arbitrary Code |
| Confidentiality, Access Control, Authorization | Gain Privileges | - |

## Mitigations

- Ensure that protected and unprotected memory ranges are isolated and do not overlap.
- If memory regions must overlap, leverage memory priority schemes if memory regions can overlap.
- Ensure that original and mirrored memory regions apply the same protections.
- Ensure immutable code or data is programmed into ROM or write-once memory.

## Example instances

A hardware product contains non-volatile memory, which itself contains boot code that is insufficiently protected. An adversary then modifies this memory to either bypass the secure boot process or to execute their own code.

A hardware product leverages a CPU that does not possess a memory-protection unit (MPU) and a memory-management unit (MMU) nor a special bit to support write exclusivity, resulting in no write exclusivity. Because of this, an adversary is able to inject malicious code into the memory and later execute it to achieve the desired outcome.

## Related weaknesses (CWE)

- [CWE-1222](https://radicalnotion.ai/cwe/cwe-1222): Insufficient Granularity of Address Regions Protected by Register Locks
- [CWE-1252](https://radicalnotion.ai/cwe/cwe-1252): CPU Hardware Not Configured to Support Exclusivity of Write and Execute Operations
- [CWE-1257](https://radicalnotion.ai/cwe/cwe-1257): Improper Access Control Applied to Mirrored or Aliased Memory Regions
- [CWE-1260](https://radicalnotion.ai/cwe/cwe-1260): Improper Handling of Overlap Between Protected Memory Ranges
- [CWE-1274](https://radicalnotion.ai/cwe/cwe-1274): Improper Access Control for Volatile Memory Containing Boot Code
- [CWE-1282](https://radicalnotion.ai/cwe/cwe-1282): Assumed-Immutable Data is Stored in Writable Memory
- [CWE-1312](https://radicalnotion.ai/cwe/cwe-1312): Missing Protection for Mirrored Regions in On-Chip Fabric Firewall
- [CWE-1316](https://radicalnotion.ai/cwe/cwe-1316): Fabric-Address Map Allows Programming of Unwarranted Overlaps of Protected and Unprotected Ranges
- [CWE-1326](https://radicalnotion.ai/cwe/cwe-1326): Missing Immutable Root of Trust in Hardware

## Related attack patterns

| Relationship | CAPEC | Name |
| --- | --- | --- |
| Parent | [CAPEC-1](https://radicalnotion.ai/capec/capec-1) | Accessing Functionality Not Properly Constrained by ACLs |
| Parent | [CAPEC-180](https://radicalnotion.ai/capec/capec-180) | Exploiting Incorrectly Configured Access Control Security Levels |

## Frequently asked questions

### What is CAPEC-679?

An adversary takes advantage of missing or incorrectly configured access control within memory to read/write data or inject malicious code into said memory.

### How do you prevent CAPEC-679?

Ensure that protected and unprotected memory ranges are isolated and do not overlap.

### What weaknesses does CAPEC-679 target?

CAPEC-679 exploits 9 CWE weaknesses, including CWE-1222 (Insufficient Granularity of Address Regions Protected by Register Locks), CWE-1252 (CPU Hardware Not Configured to Support Exclusivity of Write and Execute Operations), CWE-1257 (Improper Access Control Applied to Mirrored or Aliased Memory Regions) and CWE-1260 (Improper Handling of Overlap Between Protected Memory Ranges).

### How severe is CAPEC-679?

MITRE rates CAPEC-679 as Very High severity with medium likelihood of attack.

Primary source: [MITRE CAPEC](https://capec.mitre.org/data/definitions/679.html)

---

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