cve.bz

CAPEC-586

Object Injection

High severityMedium likelihoodMeta pattern

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.

On this page

Ask an AI about this attack pattern

Show the promptExplain the attack pattern CAPEC-586: Object Injection: how it unfolds, what it needs and how to prevent and detect it in my systems. Use https://capec.mitre.org/data/definitions/586.html and https://cve.bz/cve/capec/586?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.

Prerequisites

  • The target application must unserialize data before validation.

Consequences

What a successful attack can lead to
ImpactAffectsNote
Resource ConsumptionAvailabilityIf 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.
Modify DataIntegrityAttackers can modify objects or data that was assumed to be safe from modification.
Execute Unauthorized CommandsAuthorizationFunctions 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.

Weaknesses it exploits

  • CWE-502 Deserialization of Untrusted Data

Recent CVEs with these weaknesses

  1. 9.2CVE-2026-140281

    GPT-SoVITS through 20250606v2pro contains an unsafe deserialization vulnerability in the api.py /set_model endpoint that allows unauthenticated attackers to load arbitrary model checkpoints. Attackers can set gpt_model_path or sovits_model…

  2. 8.4CVE-2026-138444

    CHGNet through 0.4.2 contains an insecure deserialization vulnerability that allows attackers to execute code because CHGNet.from_file() calls torch.load() with weights_only=False. Attackers can supply a crafted .pth.tar model file contain…

  3. 8.5CVE-2026-138118

    HyperSpy from 1.4.0 before 2.6.0 contains an insecure deserialization vulnerability that allows attackers to execute arbitrary Python code by supplying crafted stored-model data in .hspy or .zspy files. Attackers can embed a malicious pick…

  4. 8.5CVE-2026-137998

    Detoxify 0.5.3 through 0.5.4 contains an insecure deserialization vulnerability in load_checkpoint that allows attackers to execute code by supplying a crafted checkpoint file. Attackers can embed a pickle __reduce__ gadget in a .ckpt file…

  5. 8.5CVE-2026-137997

    HCIPy through 0.7.1 contains an insecure deserialization vulnerability that allows attackers to execute code by supplying crafted .pkl files to read_field, read_grid or read_mode_basis. Because hcipy/util/io.py selects pickle by file exten…

  6. 8.5CVE-2026-137994

    Leo through 6.8.10 contains an insecure deserialization vulnerability that allows attackers to execute code by embedding pickled data in unknown XML attributes of .leo outlines. Attackers can place a pickle __reduce__ gadget in a <t> or <v…

  7. 9.8CVE-2026-134994

    Deserialization of Untrusted Data vulnerability in Nitramix Revertix &#8211; Backup, Migration, Staging &amp; Clone revertix allows Object Injection.This issue affects Revertix &#8211; Backup, Migration, Staging &amp; Clone: from n/a throu…

  8. 9.4CVE-2026-106169

    A Deserialization of Untrusted Data vulnerability in the eventbus execution in Google Cloud Application Integration versions prior to 2026-09-22 on Google Cloud Platform allows an authenticated attacker to achieve remote code execution usi…

The newest records naming one of them. Each weakness's page lists them all.

MITRE's words, unchanged: CAPEC-586 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.