CVE-2024-21217: Unbounded Memory Allocation in Java MessageFormat
- Vendor
- Oracle Corporation
CVE-2024-21217 is an unbounded memory allocation vulnerability in the Serialization component of Oracle Java SE, Oracle GraalVM for JDK, and Oracle GraalVM Enterprise Edition, also affecting OpenJDK. Excessively large ArgumentIndex values in java.text.MessageFormat can cause an out-of-memory error and partial denial of service. The affected functionality includes MessageFormat pattern processing and deserialization. Affected Oracle versions include Java SE 8u421, 8u421-perf, 11.0.24, 17.0.12, 21.0.4, and 23; GraalVM for JDK 17.0.12, 21.0.4, and 23; and GraalVM Enterprise Edition 20.3.15 and 21.3.11. An unauthenticated network attacker can exploit applications exposing the affected APIs to attacker-controlled data. Sandboxed Java Web Start applications and applets running untrusted code are also exposed. Exploitation has high complexity.
Impact, mitigation & remediation
What it means and what to do now: patch path, interim mitigations, and the assume-compromise checklist.
Impact
What an attacker gets, and what they’ve been doing with it.
Successful exploitation can exhaust memory in the affected Java runtime, resulting in an out-of-memory error and partial denial of service. The assessed impact is limited to availability, with no confidentiality or integrity impact. The CVSS v3.1 base score is 3.7, with vector CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:L.
Mitigation
If you can’t patch tonight, do this now.
No vendor-confirmed workaround is specified. As defense in depth pending an update, prevent untrusted inputs from reaching MessageFormat pattern processing or deserialization, validate externally supplied patterns to reject ArgumentIndex values of 10,000 or greater, and restrict access to services exposing affected APIs. Avoid running untrusted Java applets or Java Web Start applications. These measures are not substitutes for installing the security update.
Remediation
Patch, then assume compromise.
Apply the vendor security update for the deployed Java distribution. Fixed Oracle Java SE releases include 8u431, 8u431-perf, 11.0.25, 17.0.13, 21.0.5, and 23.0.1. Fixed Red Hat OpenJDK releases include 8u432, 11.0.25, 17.0.13, and 21.0.5. Apply the corresponding Oracle updates for affected GraalVM products; exact fixed GraalVM versions are not specified. The fix limits MessageFormat ArgumentIndex values to less than 10,000: constructors, applyPattern, and the static format method reject excessive values with IllegalArgumentException, while deserialization rejects them with InvalidObjectException.
Exploits
No public exploits tracked yet. Mallory keeps watching.
Affected products & vendors
Products and vendors Mallory has correlated with this vulnerability. Open in Mallory to drill down to specific CPE configurations and version ranges.
References
Frequently asked questions
- Is CVE-2024-21217 exploited in the wild?
- As of Nov 27, 2026, Mallory has no reports of CVE-2024-21217 being exploited in the wild. It is not listed in CISA KEV.
- Is there a public exploit for CVE-2024-21217?
- As of Nov 27, 2026, Mallory has found no public exploit for CVE-2024-21217.
- Is there a patch for CVE-2024-21217?
- Apply the vendor security update for the deployed Java distribution. Fixed Oracle Java SE releases include 8u431, 8u431-perf, 11.0.25, 17.0.13, 21.0.5, and 23.0.1.
- What products are affected by CVE-2024-21217?
- Oracle Corporation Graalvm, Oracle Corporation Java Se, Oracle Corporation Jdk, Oracle Corporation Oracle GraalVM for JDK, and Oracle Corporation Jre.
- How severe is CVE-2024-21217?
- CVE-2024-21217 has a CVSS v3.1 score of 3.7 (Low) and an EPSS score of 1.2% (68th percentile) as of Nov 27, 2026.
Recent activity
28 sources tracked across advisories, community write-ups, and news. New activity surfaces here as Mallory finds it.