Appsecure logo

CVE-2026-21452: High Vulnerability in MessagePack for Java

A high-severity denial-of-service vulnerability exists in MessagePack for Java versions prior to 0.9.11. Exploitation can lead to heap exhaustion and service unavailability. Immediate patching is recommended.

HIGHCVSS 7.5 · Published January 2, 2026

Not a customer? See how AppSecure simulates real world attacks to protect your infrastructure.

Speak to Experts

This vulnerability allows a denial-of-service attack against MessagePack for Java due to unbounded heap allocation during deserialization. Affected versions prior to 0.9.11 can be exploited by sending malicious .msgpack files containing EXT32 objects with attacker-controlled payload lengths. This can lead to JVM heap exhaustion, service termination, and unavailability.

The CVSS score of 7.5 categorizes this vulnerability as high severity. Organizations utilizing MessagePack for Java should take this risk seriously, as the attack vector is network-based and exploits can be executed remotely without any user interaction or elevated privileges.

Given the potential impact on production systems, including cascading failures, organizations should prioritize patching immediately.

The vulnerability was publicly disclosed on January 2, 2026, and it is critical for users to upgrade to version 0.9.11 or later to mitigate this risk.

Vulnerability Details

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.

This vulnerability is triggered during model loading / deserialization, making it a model format vulnerability suitable for remote exploitation. 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.

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.

Version 0.9.11 fixes the vulnerability.

Technical Analysis

The root cause of this vulnerability lies in the handling of the EXT32 payload during deserialization. The MessagePack library does not impose an upper limit on the payload size declared in the EXT header. This can lead to excessive memory allocation when processing maliciously crafted .msgpack files.

The attack vector is network-based, meaning that an attacker can exploit it remotely by sending a specially crafted .msgpack file to a vulnerable application. The attack complexity is low, as it does not require user interaction or elevated privileges.

This vulnerability primarily impacts the availability of the affected applications, as it can lead to a complete denial of service due to JVM termination from OutOfMemoryError.

Risk & Impact Analysis

Risk to organizations includes potential service unavailability, which can lead to significant operational disruptions, especially in environments that rely on real-time processing and model inference. The attack is particularly impactful in production systems, where exploitation can result in cascading failures.

Given the high CVSS score of 7.5 and the associated risks, organizations should address this vulnerability in their priority patch cycle. The small size of the malicious payload may allow it to bypass basic validation mechanisms, further complicating mitigation efforts.

Exploitation Status

Signal

Status

Known Exploit

No

Public PoC

No

Actively Exploited

No

Ransomware Use

No

Affected Versions

The vulnerable versions of MessagePack for Java are all versions prior to 0.9.11. Specifically, version 0.9.10 is confirmed vulnerable.

Mitigation & Remediation

To mitigate this vulnerability, organizations should upgrade to MessagePack for Java version 0.9.11 or later. Additionally, implementing strict validation and scanning mechanisms for .msgpack files can help identify potentially malicious files before they are processed.

Organizations may also consider employing network controls to restrict access to their services, thus minimizing the risk of exploitation. Continuous monitoring for unusual behaviors, such as unexpected memory usage, can also aid in early detection of potential attacks.

For further security assessments, organizations can engage in penetration testing to validate their remediation effectiveness.

Detection Guidance

Organizations should monitor logs for any anomalies related to memory allocation and unexpected service terminations. Behavioral indicators, such as increased garbage collection frequency or OutOfMemoryErrors, should be closely watched.

Network signatures that capture the characteristics of .msgpack file uploads can assist in identifying potential attacks in real time.

AppSecure Threat Intelligence Insight

The significance of CVE-2026-21452 lies in its demonstration of how seemingly benign file formats can harbor critical vulnerabilities. Security teams should remain vigilant about the risks associated with file deserialization, ensuring that all inputs are validated thoroughly.

The trend of vulnerabilities in serialization libraries highlights the need for robust security practices around data handling and processing. This incident underscores the importance of regular updates and patch management.

For further insights on maintaining robust application security, organizations can refer to our penetration testing methodology and best practices.

Engaging in proactive security assessments, such as vulnerability management programs, can help in identifying and mitigating risks before they are exploited.

Lastly, organizations should stay informed about emerging vulnerabilities and threats by following updates through security advisories and community discussions.

Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.

Latest CVEs. Recently published vulnerabilities from the NVD database.

View all vulnerabilities
CVE IDSeverity
CVE-2025-65418HIGH
CVE-2025-65417MEDIUM
CVE-2025-65416MEDIUM
CVE-2025-65415MEDIUM
CVE-2025-61314HIGH

Protect Your Business with Hacker-Focused Approach.