CVE-2024-21634 — ion-java
HIGHCVE-2024-21634 is a high-severity (CVSS 7.5) CWE-770 vulnerability in com.amazon.ion:ion-java. A fix is available for com.amazon.ion:ion-java — see the affected versions and patch details below.
Ion Java StackOverflow vulnerability
Exploitation Status
No confirmed exploitation observed yet
- CISA’s own triage has not observed active exploitation or public proof-of-concept code for this CVE as of its last assessment.
Exploitation and automatability from CISA’s SSVC triage for CVE-2024-21634.
EPSS Exploitation Probability
Probability of exploitation in the next 30 days, from FIRST.org EPSS.
How urgent is this, really
Where this sits among everything scored
Real-World Exposure
com.amazon.ion:ion-java☕software.amazon.ion:ion-javaReal-time download stats are indexed for npm and PyPI packages. This vulnerability affects Maven packages — download data is not available via public APIs for these ecosystems.
Description
Impact
A potential denial-of-service issue exists in ion-java for applications that use ion-java to:
- Deserialize Ion text encoded data, or
- Deserialize Ion text or binary encoded data into the
IonValuemodel and then invoke certainIonValuemethods on that in-memory representation.
An actor could craft Ion data that, when loaded by the affected application and/or processed using the IonValue model, results in a StackOverflowError originating from the ion-java library.
Impacted versions: <1.10.5
Patches
The patch is included in ion-java >= 1.10.5.
Workarounds
Do not load data which originated from an untrusted source or that could have been tampered with. Only load data you trust.
If you have any questions or comments about this advisory, we ask that you contact AWS/Amazon Security via our vulnerability reporting page [1] or directly via email to [email protected]. Please do not create a public GitHub issue.
Affected Packages
| Ecosystem | Package | Vulnerable range | Fix |
|---|---|---|---|
| ☕Maven | com.amazon.ion:ion-java | all versions | 1.10.5com.amazon.ion:ion-java:1.10.5 |
| ☕Maven | software.amazon.ion:ion-java | all versions | No fix |
Affected Products
ionamazonDetection & mitigation playbook
Open-source dependencyDetect
Scan your dependency tree (package-lock.json, pnpm-lock.yaml, requirements.txt, go.sum, etc.) for com.amazon.ion:ion-java, including transitive dependencies — a direct dependency you never call can still pull in a vulnerable version.
Fix
Update com.amazon.ion:ion-java to 1.10.5 or later, then make sure no transitive (indirect) dependency still pins the vulnerable range — O3 confirms CVE-2024-21634 is resolved across your whole dependency graph.
Workarounds
Stop feeding it untrusted input: reject or quarantine files and payloads from unverified sources until you can upgrade, restrict accepted formats to the ones you actually need, and run the parsing or decoding step in a least-privileged sandbox or short-lived worker so a crash or corrupted read cannot reach the rest of the process.
Fixing This On Your OS
If you run this on a Linux distribution, patch through your package manager against the distro's own security advisory below — it tracks the exact backported fix for your release, which can ship on a different timeline (and sometimes a different severity) than the upstream project.
IMPORTANT impact: Red Hat products that include the affected ion-java component can be subject to a remotely triggered denial of service. An unauthenticated attacker can provide maliciously crafted Ion text or binary data for deserialization into the IonValue model; processing the resulting structure can cause a…
Mitigation for this issue is either not available or the currently available options don't meet the Red Hat Product Security criteria comprising ease of use and deployment, applicability to widespread installation base or stability.Source: Red Hat security advisory for CVE-2024-21634 (CC BY 4.0)
| Product | Fixed in | Advisory |
|---|---|---|
| Red Hat JBoss Enterprise Application Platform 8 | see advisory | RHSA-2024:7442 |
| Red Hat JBoss Enterprise Application Platform 8.0 for RHEL 8 | eap8-amazon-ion-java-0:1.11.9-2.redhat_00001.1.el8eap | RHSA-2024:7441 |
Frequently Asked Questions
Is CVE-2024-21634 in your dependencies?
Find it across Maven, including transitive dependencies.