---
title: "CAPEC-586: Object Injection"
url: https://radicalnotion.ai/capec/capec-586
type: capec
description: "An adversary attempts to exploit an application by injecting additional, malicious content during its processing of serialized objects. Developers leverage serialization in order to convert data or state into a static, binary format for saving to disk or transferring over a network. These objects are then deserialized when needed to recover the data/state. By injecting a malformed object into a vulnerable application, an adversary can potentially compromise the application by manipulating the deserialization process. This can result in a number of unwanted outcomes, including remote code execution."
updated: 2026-06-01
source: RadicalNotion.AI
license: CC BY-NC 4.0 (https://creativecommons.org/licenses/by-nc/4.0/)
---

# CAPEC-586: Object Injection

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

## Description

An adversary attempts to exploit an application by injecting additional, malicious content during its processing of serialized objects. Developers leverage serialization in order to convert data or state into a static, binary format for saving to disk or transferring over a network. These objects are then deserialized when needed to recover the data/state. By injecting a malformed object into a vulnerable application, an adversary can potentially compromise the application by manipulating the deserialization process. This can result in a number of unwanted outcomes, including remote code execution.

## Prerequisites

- The target application must unserialize data before validation.

## Consequences

| Scope | Impact | Note |
| --- | --- | --- |
| Availability | Resource Consumption | If a function is making an assumption on when to terminate, based on a sentry in a string, it could easily never terminate and exhaust available resources. |
| Integrity | Modify Data | Attackers can modify objects or data that was assumed to be safe from modification. |
| Authorization | Execute Unauthorized Commands | Functions that assume information in the deserialized object is valid could be exploited. |

## Mitigations

- Implementation: Validate object before deserialization process
- Design: Limit which types can be deserialized.
- Implementation: Avoid having unnecessary types or gadgets available that can be leveraged for malicious ends. Use an allowlist of acceptable classes.
- Implementation: Keep session state on the server, when possible.

## Related weaknesses (CWE)

- [CWE-502](https://radicalnotion.ai/cwe/cwe-502): Deserialization of Untrusted Data

## Frequently asked questions

### What is CAPEC-586?

An adversary attempts to exploit an application by injecting additional, malicious content during its processing of serialized objects. Developers leverage serialization in order to convert data or state into a static, binary format for saving to disk or transferring over a network. These objects are then deserialized when needed to recover the data/state. By injecting a malformed object into a vulnerable application, an adversary can potentially compromise the application by manipulating the deserialization process. This can result in a number of unwanted outcomes, including remote code execution.

### How do you prevent CAPEC-586?

Implementation: Validate object before deserialization process

### What weaknesses does CAPEC-586 target?

CAPEC-586 exploits one CWE weakness: CWE-502 (Deserialization of Untrusted Data).

### How severe is CAPEC-586?

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

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

---

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