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

- Severity: High 7.5 (CVSS:3.1, scored by GitHub_M) `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.60%, higher than 50% of CVEs (2026-12-01)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2026-01-02T20:47:44.874Z
- Modified: 2026-09-10T03:50:32.939Z
- Also known as: GHSA-cw39-r4h6-8j3x
- Weaknesses: CWE-400, CWE-789
- SSVC (CISA-ADP): exploitation poc, automatable yes, technical impact partial
- Assigned by: GitHub_M

## Description

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.

(As written by CVE List.)

## Affected

- msgpack msgpack-java: < 0.9.11
- org.msgpack:msgpack-core (Maven): before 0.9.11
- msgpack messagepack: 0.9.10

## Every score

- GitHub_M: CVSS:3.1 7.5 High `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H`
- GitHub: CVSS:3.1 7.5 High `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H`

## References

- <https://github.com/msgpack/msgpack-java/security/advisories/GHSA-cw39-r4h6-8j3x> (exploit, third-party-advisory, web)
- <https://github.com/msgpack/msgpack-java/commit/daa2ea6b2f11f500e22c70a22f689f7a9debdeae> (patch, web)
- <https://github.com/msgpack/msgpack-java/releases/tag/v0.9.11> (release-notes, web)
- <https://nvd.nist.gov/vuln/detail/CVE-2026-21452> (advisory)
- <https://github.com/msgpack/msgpack-java> (package)

## Sources

- CVE List: [CVE-2026-21452](https://www.cve.org/CVERecord?id=CVE-2026-21452), CVE Terms of Use, modified 2026-01-02
- GitHub Advisory Database: [GHSA-cw39-r4h6-8j3x](https://github.com/advisories/GHSA-cw39-r4h6-8j3x), CC-BY-4.0, modified 2026-09-10
- NVD: [CVE-2026-21452](https://nvd.nist.gov/vuln/detail/CVE-2026-21452), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2026-21452 · Whole record: https://cve.day/CVE-2026-21452.json · Rebuilt by cve.day 2026-11-25T22:59:12.598Z
