ADVISORIES

Vulnerability

CVE-2026-21452

MessagePack for Java is a serializer implementation for Java. A denial-of-service vulnerability exists in versions prior to 0.9.11 when deserializing .msgpack files containing EXT32 objects with attacker-controlled payload lengths. While MessagePack-Java parses extension headers lazily, it later trusts the declared EXT payload length when materializing the extension data. When ExtensionValue.getData() is invoked, the library attempts to allocate a byte array of the declared length without enforcing any upper bound. A malicious .msgpack file of only a few bytes can therefore trigger unbounded heap allocation, resulting in JVM heap exhaustion, process termination, or service unavailability. This vulnerability is triggered during model loading / deserialization, making it a model format vulnerability suitable for remote exploitation. The vulnerability enables a remote denial-of-service attack against applications that deserialize untrusted .msgpack model files using MessagePack for Java. A specially crafted but syntactically valid .msgpack file containing an EXT32 object with an attacker-controlled, excessively large payload length can trigger unbounded memory allocation during deserialization. When the model file is loaded, the library trusts the declared length metadata and attempts to allocate a byte array of that size, leading to rapid heap exhaustion, excessive garbage collection, or immediate JVM termination with an OutOfMemoryError. The attack requires no malformed bytes, user interaction, or elevated privileges and can be exploited remotely in real-world environments such as model registries, inference services, CI/CD pipelines, and cloud-based model hosting platforms that accept or fetch .msgpack artifacts. Because the malicious file is extremely small yet valid, it can bypass basic validation and scanning mechanisms, resulting in complete service unavailability and potential cascading failures in production systems. Version 0.9.11 fixes the vulnerability.

13 advisories report this vulnerability, across 4 ecosystems.

Advisories

  • CGA-68m7-456v-rx6h
    CVE-2026-21452 Chainguard Updated 5 November 2026
  • CGA-6gfw-pc5v-jmj2
    CVE-2026-21452 Chainguard Updated 5 November 2026
  • CGA-6qfj-h5j3-2jjq
    CVE-2026-21452 Chainguard Updated 5 November 2026
  • CGA-c4j9-wfh9-9j23
    CVE-2026-21452 Chainguard Updated 5 November 2026
  • CGA-c8rq-mqhq-3526
    CVE-2026-21452 Chainguard Updated 5 November 2026
  • CGA-j63h-cmfq-499m
    CVE-2026-21452 Chainguard Updated 5 November 2026
  • CGA-pf3q-r5qv-vj8v
    CVE-2026-21452 Chainguard Updated 5 November 2026
  • CGA-qm6c-4c7v-mpxw
    CVE-2026-21452 Chainguard Updated 5 November 2026
  • CGA-rx8m-5386-cmm4
    CVE-2026-21452 Chainguard Updated 5 November 2026
  • CGA-v7fh-64j6-g4rm
    CVE-2026-21452 Chainguard Updated 5 November 2026
  • DEBIAN-CVE-2026-21452

    MessagePack for Java is a serializer implementation for Java. A denial-of-service vulnerability exists in versions prior to 0.9.11 when deserializing .msgpack files containing EXT32 objects with attacker-controlled…

    CVE-2026-21452 Debian Updated 1 October 2026
  • GHSA-cw39-r4h6-8j3x

    MessagePack for Java Vulnerable to Remote DoS via Malicious EXT Payload Allocation

    High CVE-2026-21452 Maven Updated 10 September 2026
  • UBUNTU-CVE-2026-21452

    MessagePack for Java is a serializer implementation for Java. A denial-of-service vulnerability exists in versions prior to 0.9.11 when deserializing .msgpack files containing EXT32 objects with attacker-controlled…

    CVE-2026-21452 Ubuntu Updated 17 October 2026

References