CVE-2026-21452CWE-400CWE-789

MessagePack-Java Vulnerable to Remote Denial of Service via Malicious .msgpack Model File Triggering Unbounded EXT Payload Allocation

High · published January 2, 2026

CVSS v3.1
7.5
EPSS
1%
Percentile
48.1
In the wild
Unconfirmed
What it is

⚡ A crafty .msgpack file is the perfect recipe for a denial-of-service disaster! Just a few bytes can trigger unbounded memory issues in Java's MessagePack library, leading to application shutdowns. 🔥 This vulnerability is like a restaurant trusting a customer’s order without checking the menu. If they declare they want a dish that serves ten people but only get a tiny plate, the kitchen might go into chaos trying to fulfill that impossible request! An attacker could simply send a valid .msgpack file with an EXT32 object that declares an excessive payload length. This triggers a massive memory allocation attempt, leading to rapid heap exhaustion, which could crash your application. Imagine your service going down at the worst possible moment, causing total unavailability and potential cascading failures — absolutely devastating!

Put simply

This vulnerability is like a restaurant trusting a customer’s order without checking the menu. If they declare they want a dish that serves ten people but only get a tiny plate, the kitchen might go into chaos trying to fulfill that impossible request! The vulnerability arises during deserialization when the library trusts the declared payload length of EXT32 objects without imposing a limit, leading to unbounded heap allocation and possible JVM termination with an OutOfMemoryError.

What to do

An attacker could simply send a valid .msgpack file with an EXT32 object that declares an excessive payload length. This triggers a massive memory allocation attempt, leading to rapid heap exhaustion, which could crash your application. Imagine your service going down at the worst possible moment, causing total unavailability and potential cascading failures — absolutely devastating! To protect against this, upgrade to MessagePack for Java version 0.9.11 or later immediately. Implement strict validation for payload sizes when deserializing .msgpack files, especially in untrusted environments. 🛡️ You’ve got this! By acting quickly, you can secure your applications and keep everything running smoothly! 🚀

The record
Technical detail
CVSS v3.1
7.5 · HIGH
Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
CVSS v4.0
Not supplied
EPSS
0.00602 · 48.1th percentile
Weaknesses
CWE-400 · Uncontrolled Resource Consumption; CWE-789 · Memory Allocation with Excessive Size Value
Published
2026-01-02T20:47Z
EPSS history
Timeline
  • 02 JAN 20:47Z
    MessagePack-Java Vulnerable to Remote Denial of Service via Malicious .msgpack Model File Triggering Unbounded EXT Payload Allocation
    cvelistv5