CVEfocus › CVE database › CVE-2026-21452

CVE-2026-21452MessagePack-Java Vulnerable to Remote Denial of Service via Malicious .msgpack Model…

CVSS 7.5 HighEPSS 0.9% (higher than 56% of CVEs)Published 2026-01-02Updated 2026-01-02Assigner: GitHub_M

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.

CWE-400CWE-789

What to do

Fixed builds are available from Maven: see the table below for the fixed version per release.

Debian, Ubuntu have not shipped a fix for every release yet.

Is your server affected? One read-only command checks every installed package against this CVE and all others, using each vendor's fixed versions. Get started or get a free API key.

curl -sS "https://api.cvefocus.com/v1/check?format=text" -H "Authorization: Bearer $CVEFOCUS_KEY" \
  -H "Content-Type: text/plain" --data-binary @inventory.txt

Vendor status at a glance

1Fixed
5Fix pending
3Under investigation
1Will not fix

Status by vendor and release

From each vendor's own security data and VEX statements. "Fixed" means a fixed build is published for that release.

ReleasePackageStatusFixed versionAdvisory
Ubuntu 26.10msgpack-javaFix pendingUBUNTU-CVE-2026-21452
Ubuntu 26.04msgpack-javaUnder investigationUBUNTU-CVE-2026-21452
Ubuntu 25.10msgpack-javaWill not fix
Ubuntu decided not to fix this in this release
UBUNTU-CVE-2026-21452
Ubuntu 24.04msgpack-javaUnder investigationUBUNTU-CVE-2026-21452
Ubuntu 22.04msgpack-javaUnder investigationUBUNTU-CVE-2026-21452
Ubuntu 20.04msgpack-javaFix pendingUBUNTU-CVE-2026-21452
Debian 14msgpack-javaFix pendingDEBIAN-CVE-2026-21452
Debian 13msgpack-javaFix pendingDEBIAN-CVE-2026-21452
Debian 12msgpack-javaFix pendingDEBIAN-CVE-2026-21452
Maven libraryorg.msgpack:msgpack-coreFixed0.9.11GHSA-cw39-r4h6-8j3x

What the vendor says

As published in the CVE record by GitHub_M, the CVE's assigner (usually the vendor). Check the vendor's advisory before acting.

References

About this page

Compiled by CVEfocus from the CVE List, the security data and VEX statements of Ubuntu, Debian, Red Hat, AlmaLinux, Rocky Linux and Microsoft, CISA's Known Exploited Vulnerabilities catalog and FIRST EPSS, refreshed several times a day (data status). Information only; see the disclaimer. Official record: cve.org · NVD.