Vulnerabilities in pkg:maven/software.amazon.ion/ion-java

PACKAGE
Advisory Identifier: GHSA-264p-99wq-f4j6
Advisory Summary

CVE-2024-21634 is a HIGH (CVSS 7.5) ion java stackoverflow vulnerability vulnerability (CWE-770: Allocation of Resources Without Limits or Throttling) affecting Ion java libraries in the Maven ecosystem. The issue involves ion java stackoverflow vulnerability. Remediation is available by upgrading affected packages to version 1.10.5.

1 Known Advisory Record(s)
Package Vulnerability Intelligence

pkg:maven/software.amazon.ion/ion-java

1 Known Advisory Record(s)

Vulnerability advisories affecting package pkg:maven/software.amazon.ion/ion-java. Select an advisory below to view technical details or fixes.

Advisory ID CVE / NVD Severity Summary
GHSA-264p-99wq-f4j6 CVE-2024-21634 HIGH Ion Java StackOverflow vulnerability

CVE-2024-21634 at a Glance

CVE Identifier CVE-2024-21634
GHSA Identifier GHSA-264p-99wq-f4j6
Severity HIGH
CVSS v3.1 Base Score 7.5
CWE Classification CWE-770: Allocation of Resources Without Limits or Throttling
Affected Product Ion java
Package Ecosystem Maven
Published Date
Last Updated

Security Impact

CVSS: 7.5

The security impact metrics below are parsed directly from the CVSS v3.1 vector string (CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H).

Attack Vector Network (AV:N)
Attack Complexity Low (AC:L)
Privileges Required None (PR:N)
User Interaction None (UI:N)
Scope Unchanged (S:U)
Confidentiality None (C:N)
Integrity None (I:N)
Availability High (A:H)

How to Fix CVE-2024-21634

To remediate this vulnerability, upgrade all affected Ion java dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.

com.amazon.ion:ion-java fixed: 1.10.5
<dependency>
    <groupId>com.amazon.ion</groupId>
    <artifactId>ion-java</artifactId>
    <version>1.10.5</version>
</dependency>
software.amazon.ion:ion-java fixed: Latest secure release
<dependency>
    <groupId>software.amazon.ion</groupId>
    <artifactId>ion-java</artifactId>
    <version>Latest secure release</version>
</dependency>
Verify Direct and Transitive Dependencies

Run the following command in your project directory to verify that all resolved dependencies use the patched release:

mvn dependency:tree -Dincludes=com.amazon.ion

How to Check if You Are Affected

To determine whether your Java application is affected by CVE-2024-21634, inspect your build dependencies using the Maven Dependency Plugin:

mvn dependency:tree -Dincludes=com.amazon.ion

Analyze the terminal output to locate any version of Ion java in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 1.10.5), your application is affected.

Note: The mvn dependency:tree -Dincludes=com.amazon.ion command inspects the resolved dependency graph declared in your project's POM files; it does not perform automated security scanning or inspect runtime dynamic classpaths. Always verify runtime container classpaths and shaded JARs.

Technical Details

Vulnerability Mechanism & Technical Analysis

This vulnerability is classified under CWE-770: Allocation of Resources Without Limits or Throttling, where the product allocates a reusable resource or group of resources on behalf of an actor without imposing any intended restrictions on the size or number of resources that can be allocated. In Ion java, software state validation or input boundaries are circumvented during processing. Review the official source advisory statement below for specific affected components, classes, and reproduction details.

Source Advisory Statement

### 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 `IonValue` model and then invoke certain `IonValue` methods 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 [aws-security@amazon.com](mailto:aws-security@amazon.com). Please do not create a public GitHub issue. [1] https://aws.amazon.com/security/vulnerability-reporting

CVE-2024-21634 Affected Ion java Versions

2 component(s)
Fixed Versions:
1.10.5
Product / Package Ecosystem Affected Versions Fixed Version
com.amazon.ion:ion-java
Maven
< 1.10.5
1.10.5
software.amazon.ion:ion-java
Maven

References

Frequently Asked Questions

What is CVE-2024-21634?
CVE-2024-21634 is a security vulnerability in Ion java involving Ion Java StackOverflow vulnerability under CWE-770: Allocation of Resources Without Limits or Throttling.
Which Ion java versions are affected?
Affected versions include releases prior to 1.10.5 across affected packages: com.amazon.ion:ion-java, software.amazon.ion:ion-java.
What version fixes CVE-2024-21634?
Upgrading to 1.10.5 (or the latest patched release for your respective branch) resolves the vulnerability.
Is ion-java affected?
Yes, com.amazon.ion:ion-java is affected in releases prior to 1.10.5, Latest secure release. Upgrade your dependency to 1.10.5, Latest secure release or later.
What is the CVSS score of CVE-2024-21634?
CVE-2024-21634 has a CVSS v3.1 base score of 7.5 (HIGH) with vector string CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H.
What CWE is associated with CVE-2024-21634?
CVE-2024-21634 is classified under CWE-770: Allocation of Resources Without Limits or Throttling (The product allocates a reusable resource or group of resources on behalf of an actor without imposing any intended restrictions on the size or number of resources that can be allocated.).
How can I check Maven dependencies for CVE-2024-21634?
Run the dependency tree command: 'mvn dependency:tree -Dincludes=com.amazon.ion'. This command lists direct and transitive dependencies in your build configuration so you can verify if a vulnerable version is resolved.
Machine-readable OSV JSON OSV v1.5 Schema
Normalized schema output
{
  "schema_version" : "1.4.0",
  "id" : "GHSA-264p-99wq-f4j6",
  "modified" : "2025-11-04T16:48:17Z",
  "published" : "2024-01-03T22:04:08Z",
  "aliases" : [ "CVE-2024-21634" ],
  "summary" : "Ion Java StackOverflow vulnerability",
  "details" : "### Impact\n\nA potential denial-of-service issue exists in `ion-java` for applications that use `ion-java` to:\n\n* Deserialize Ion text encoded data, or\n* Deserialize Ion text or binary encoded data into the `IonValue` model and then invoke certain `IonValue` methods on that in-memory representation.\n\nAn 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.\n\nImpacted versions: <1.10.5\n\n### Patches\n\nThe patch is included in `ion-java` >= 1.10.5.\n\n### Workarounds\n\nDo not load data which originated from an untrusted source or that could have been tampered with. **Only load data you trust.**\n\n----\n\nIf 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 [aws-security@amazon.com](mailto:aws-security@amazon.com). Please do not create a public GitHub issue.\n\n[1] https://aws.amazon.com/security/vulnerability-reporting",
  "severity" : [ {
    "type" : "CVSS_V3",
    "score" : "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H"
  } ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "Maven",
      "name" : "com.amazon.ion:ion-java"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0"
      }, {
        "fixed" : "1.10.5"
      } ]
    } ]
  }, {
    "package" : {
      "ecosystem" : "Maven",
      "name" : "software.amazon.ion:ion-java"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0"
      } ]
    } ],
    "database_specific" : {
      "last_known_affected_version_range" : "< 1.10.5"
    }
  } ],
  "references" : [ {
    "type" : "WEB",
    "url" : "https://github.com/amazon-ion/ion-java/security/advisories/GHSA-264p-99wq-f4j6"
  }, {
    "type" : "ADVISORY",
    "url" : "https://nvd.nist.gov/vuln/detail/CVE-2024-21634"
  }, {
    "type" : "PACKAGE",
    "url" : "https://github.com/amazon-ion/ion-java"
  }, {
    "type" : "WEB",
    "url" : "https://security.netapp.com/advisory/ntap-20241108-0002"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-770" ],
    "severity" : "HIGH",
    "github_reviewed" : true,
    "github_reviewed_at" : "2024-01-03T22:04:08Z",
    "nvd_published_at" : "2024-01-03T23:15:08Z"
  }
}