---
title: "CAPEC-231: Oversized Serialized Data Payloads"
url: https://radicalnotion.ai/capec/capec-231
type: capec
description: "An adversary injects oversized serialized data payloads into a parser during data processing to produce adverse effects upon the parser such as exhausting system resources and arbitrary code execution."
updated: 2026-06-01
source: RadicalNotion.AI
license: CC BY-NC 4.0 (https://creativecommons.org/licenses/by-nc/4.0/)
---

# CAPEC-231: Oversized Serialized Data Payloads

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

## Description

An adversary injects oversized serialized data payloads into a parser during data processing to produce adverse effects upon the parser such as exhausting system resources and arbitrary code execution.

Applications often need to transform data in and out of serialized data formats, such as XML and YAML, by using a data parser. It may be possible for an adversary to inject data that may have an adverse effect on the parser when it is being processed. By supplying oversized payloads in input vectors that will be processed by the parser, an adversary can cause the parser to consume more resources while processing, causing excessive memory consumption and CPU utilization, and potentially cause execution of arbitrary code. An adversary's goal is to leverage parser failure to their advantage. DoS is most closely associated with web services, SOAP, and Rest, because remote service requesters can post malicious data payloads to the service provider designed to exhaust the service provider's memory, CPU, and/or disk space. This attack exploits the loosely coupled nature of web services, where the service provider has little to no control over the service requester and any messages the service requester sends.

## Alternate terms

- XML Denial of Service (XML DoS)

## Execution flow

### Step 1: Explore

An adversary determines the input data stream that is being processed by an serialized data parser on the victim's side.

### Step 2: Experiment

An adversary crafts input data that may have an adverse effect on the operation of the data parser when the data is parsed on the victim's system.

## Prerequisites

- An application uses an parser for serialized data to perform transformation on user-controllable data.
- An application does not perform sufficient validation to ensure that user-controllable data is safe for a data parser.

## Skills required

- **Low:** Denial of service
- **High:** Arbitrary code execution

## Indicators

- Bad data is passed to the serialized data parser (possibly repeatedly), possibly making it crash or execute arbitrary code.

## Consequences

| Scope | Impact | Note |
| --- | --- | --- |
| Availability | Resource Consumption | - |
| Confidentiality | Read Data | - |
| Confidentiality, Integrity, Availability | Execute Unauthorized Commands | - |
| Confidentiality, Access Control, Authorization | Gain Privileges | - |

## Mitigations

- Carefully validate and sanitize all user-controllable serialized data prior to passing it to the parser routine. Ensure that the resultant data is safe to pass to the parser.
- Perform validation on canonical data.
- Pick a robust implementation of the serialized data parser.
- Validate data against a valid schema or DTD prior to parsing.

## Related weaknesses (CWE)

- [CWE-20](https://radicalnotion.ai/cwe/cwe-20): Improper Input Validation
- [CWE-112](https://radicalnotion.ai/cwe/cwe-112): Missing XML Validation
- [CWE-674](https://radicalnotion.ai/cwe/cwe-674): Uncontrolled Recursion
- [CWE-770](https://radicalnotion.ai/cwe/cwe-770): Allocation of Resources Without Limits or Throttling

## Related attack patterns

| Relationship | CAPEC | Name |
| --- | --- | --- |
| Parent | [CAPEC-130](https://radicalnotion.ai/capec/capec-130) | Excessive Allocation |
| Child | [CAPEC-221](https://radicalnotion.ai/capec/capec-221) | Data Serialization External Entities Blowup |
| Child | [CAPEC-229](https://radicalnotion.ai/capec/capec-229) | Serialized Data Parameter Blowup |

## Frequently asked questions

### What is CAPEC-231?

An adversary injects oversized serialized data payloads into a parser during data processing to produce adverse effects upon the parser such as exhausting system resources and arbitrary code execution.

### How does a Oversized Serialized Data Payloads attack work?

It typically unfolds over 2 phases. It begins with: An adversary determines the input data stream that is being processed by an serialized data parser on the victim's side.

### How do you prevent CAPEC-231?

Carefully validate and sanitize all user-controllable serialized data prior to passing it to the parser routine. Ensure that the resultant data is safe to pass to the parser.

### What weaknesses does CAPEC-231 target?

CAPEC-231 exploits 4 CWE weaknesses: CWE-20 (Improper Input Validation), CWE-112 (Missing XML Validation), CWE-674 (Uncontrolled Recursion) and CWE-770 (Allocation of Resources Without Limits or Throttling).

### How severe is CAPEC-231?

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

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

---

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