CAPEC-230
Serialized Data with Nested Payloads
Applications often need to transform data in and out of a data format (e.g., XML and YAML) by using a 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. Many data format languages allow the definition of macro-like structures that can be used to simplify the creation of complex structures. By nesting these structures, causing the data to be repeatedly substituted, an adversary can cause the parser to consume more resources while processing, causing excessive memory consumption and CPU utilization.
On this page
An adversary's goal is to leverage parser failure to their advantage. In most cases this type of an attack will result in a Denial of Service due to an application becoming unstable, freezing, or crashing. However it may be possible to cause a crash resulting in arbitrary code execution, leading to a jump from the data plane to the control plane [REF-89].
This attack is most closely associated with web services using SOAP or a Rest API, because remote service requesters can post malicious payloads to the service provider. The main weakness is that the service provider generally must inspect, parse, and validate the messages to determine routing, workflow, security considerations, and so on. It is exactly these inspection, parsing, and validation routines that this attack targets. 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.
Ask an AI about this attack pattern
Show the prompt
Explain the attack pattern CAPEC-230: Serialized Data with Nested Payloads: how it unfolds, what it needs and how to prevent and detect it in my systems. Use https://capec.mitre.org/data/definitions/230.html and https://cve.bz/cve/capec/230?via=ask-ai-copy, which lists recent CVEs with the weaknesses it exploits. Cite the sources.Opens a third-party assistant; its answer is its own, not cve.bz's. The prompt holds only this attack pattern's id and public links.
How the attack unfolds
Explore
The attacker looks for a way in.
An adversary determines the input data stream that is being processed by a data parser that supports using substitution on the victim's side.
Exploit
They carry out the attack.
An adversary crafts input data that may have an adverse effect on the operation of the parser when the data is parsed on the victim's system.
Prerequisites
An application's user-controllable data is expressed in a language that supports subsitution.
An application does not perform sufficient validation to ensure that user-controllable data is not malicious.
Signs of an attack
Bad data is passed to the data parser (possibly repeatedly), possibly making it crash or execute arbitrary code.
Consequences
| Impact | Affects | Note |
|---|---|---|
| Resource Consumption | Availability | |
| Read Data | Confidentiality | |
| Execute Unauthorized Commands | Confidentiality, Integrity, Availability | |
| Gain Privileges | Confidentiality, Access Control, Authorization |
Mitigations
Carefully validate and sanitize all user-controllable data prior to passing it to the data parser routine. Ensure that the resultant data is safe to pass to the data parser.
Perform validation on canonical data.
Pick a robust implementation of the data parser.
Weaknesses it exploits
- CWE-20 Improper Input Validation
- CWE-112 Missing XML Validation
- CWE-674 Uncontrolled Recursion
- CWE-770 Allocation of Resources Without Limits or Throttling
Recent CVEs with these weaknesses
- 5.3CVE-2026-34870
Allocation of Resources Without Limits or Throttling in Hitachi Disk Array Systems. This issue affects Hitachi Virtual Storage Platform One Block 28: before DKC MAIN A3-05-21-40/00, ESM A3-05-21/00; Hitachi Virtual Storage Platform One Bl…
- 5.5CVE-2026-139984
A weakness has been identified in walinejs Waline up to 1.43.6. The affected element is an unknown function of the component OAuth Login Callback Handler. Executing a manipulation of the argument Type can lead to improper input validation.…
- 6.5CVE-2026-140063
A flaw was found in glib2. An authenticated remote attacker can cause a Denial of Service (DoS) by sending a crafted D-Bus message header declaring a maximum message length before transmitting the message body. This causes the GDBus messag…
- 6.2CVE-2026-139844
A flaw was found in glib2. A local attacker can cause a Denial of Service (DoS) by exhausting file descriptors in an application that communicates over UNIX domain sockets using GDBus. By repeatedly sending malformed or incomplete messages…
- 5.3CVE-2026-121473
A flaw was found in sequoia-net. When retrieving certificates from an HTTP Keyserver Protocol (HKP) or Web Key Directory (WKD) server, incoming responses are buffered in memory without an enforced size limit. A malicious or compromised ser…
- 3.7CVE-2026-140099
Forge, also called node-forge, is a native implementation of Transport Layer Security in JavaScript. Prior to 1.4.4, pki.privateKeyFromPem() and pki.privateKeyFromAsn1() ignore the RSAPrivateKey version and otherPrimeInfos fields and inter…
- 7.5CVE-2026-140015
websocket-driver is a WebSocket protocol handler with pluggable input and output. Prior to 0.9.1, a server piping socket bytes into websocket-driver continued adding data to an internal buffer after a WebSocket close frame caused the drive…
- 7.5CVE-2026-140009
ws is an open source WebSocket client and server for Node.js. Prior to 5.2.8, 6.2.7, 7.5.14, and 8.23.0, a malicious WebSocket peer can send Ping frames while stopping reads, causing ws to generate and buffer automatic Pong responses witho…
The newest records naming one of them. Each weakness's page lists them all.
Related attack patterns
- Part of
- CAPEC-130 Excessive Allocation
MITRE's words, unchanged: CAPEC-230 at MITRE. CAPEC is Copyright © 2007–2026, The MITRE Corporation, used under the CAPEC terms of use: “The MITRE Corporation (MITRE) hereby grants you a non-exclusive, royalty-free license to use Common Attack Pattern Enumeration and Classification (CAPEC™) for research, development, and commercial purposes. Any copy you make for such purposes is authorized provided that you reproduce MITRE’s copyright designation and this license in any such copy.” CAPEC and the CAPEC logo are trademarks of The MITRE Corporation. Credits. All attack patterns.