Vulnerabilities in pkg:maven/edu.gemini/gsp-graphql-core_2.13

PACKAGE
Advisory Identifier: GHSA-g56x-7j6w-g8r8
Advisory Summary

CVE-2023-50730 is a HIGH (CVSS 7.5) grackle has stackoverflowerror vulnerability (CWE-400: Uncontrolled Resource Consumption) affecting Grackle core 2.13 libraries in the Maven ecosystem. The issue involves grackle has stackoverflowerror in graphql query processing. Remediation is available by upgrading affected packages to version 0.18.0.

1 Known Advisory Record(s)
Package Vulnerability Intelligence

pkg:maven/edu.gemini/gsp-graphql-core_2.13

1 Known Advisory Record(s)

Vulnerability advisories affecting package pkg:maven/edu.gemini/gsp-graphql-core_2.13. Select an advisory below to view technical details or fixes.

Advisory ID CVE / NVD Severity Summary
GHSA-g56x-7j6w-g8r8 CVE-2023-50730 HIGH Grackle has StackOverflowError in GraphQL query processing

CVE-2023-50730 at a Glance

CVE Identifier CVE-2023-50730
GHSA Identifier GHSA-g56x-7j6w-g8r8
Severity HIGH
CVSS v3.1 Base Score 7.5
CWE Classification CWE-400: Uncontrolled Resource Consumption
Affected Product Grackle core 2.13
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-2023-50730

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

org.typelevel:grackle-core_2.13 fixed: 0.18.0
<dependency>
    <groupId>org.typelevel</groupId>
    <artifactId>grackle-core_2.13</artifactId>
    <version>0.18.0</version>
</dependency>
org.typelevel:grackle-core_3 fixed: 0.18.0
<dependency>
    <groupId>org.typelevel</groupId>
    <artifactId>grackle-core_3</artifactId>
    <version>0.18.0</version>
</dependency>
org.typelevel:grackle-core_sjs1_2.13 fixed: 0.18.0
<dependency>
    <groupId>org.typelevel</groupId>
    <artifactId>grackle-core_sjs1_2.13</artifactId>
    <version>0.18.0</version>
</dependency>
org.typelevel:grackle-core_sjs1_3 fixed: 0.18.0
<dependency>
    <groupId>org.typelevel</groupId>
    <artifactId>grackle-core_sjs1_3</artifactId>
    <version>0.18.0</version>
</dependency>
org.typelevel:grackle-core_native0.4_2.13 fixed: 0.18.0
<dependency>
    <groupId>org.typelevel</groupId>
    <artifactId>grackle-core_native0.4_2.13</artifactId>
    <version>0.18.0</version>
</dependency>
org.typelevel:grackle-core_native0.4_3 fixed: 0.18.0
<dependency>
    <groupId>org.typelevel</groupId>
    <artifactId>grackle-core_native0.4_3</artifactId>
    <version>0.18.0</version>
</dependency>
edu.gemini:gsp-graphql-core_2.13 fixed: Latest secure release
<dependency>
    <groupId>edu.gemini</groupId>
    <artifactId>gsp-graphql-core_2.13</artifactId>
    <version>Latest secure release</version>
</dependency>
edu.gemini:gsp-graphql-core_3 fixed: Latest secure release
<dependency>
    <groupId>edu.gemini</groupId>
    <artifactId>gsp-graphql-core_3</artifactId>
    <version>Latest secure release</version>
</dependency>
edu.gemini:gsp-graphql-core_sjs1_2.13 fixed: Latest secure release
<dependency>
    <groupId>edu.gemini</groupId>
    <artifactId>gsp-graphql-core_sjs1_2.13</artifactId>
    <version>Latest secure release</version>
</dependency>
edu.gemini:gsp-graphql-core_sjs1_3 fixed: Latest secure release
<dependency>
    <groupId>edu.gemini</groupId>
    <artifactId>gsp-graphql-core_sjs1_3</artifactId>
    <version>Latest secure release</version>
</dependency>
edu.gemini:gsp-graphql-core_native0.4_2.13 fixed: Latest secure release
<dependency>
    <groupId>edu.gemini</groupId>
    <artifactId>gsp-graphql-core_native0.4_2.13</artifactId>
    <version>Latest secure release</version>
</dependency>
edu.gemini:gsp-graphql-core_native0.4_3 fixed: Latest secure release
<dependency>
    <groupId>edu.gemini</groupId>
    <artifactId>gsp-graphql-core_native0.4_3</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=org.typelevel

How to Check if You Are Affected

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

mvn dependency:tree -Dincludes=org.typelevel

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

Note: The mvn dependency:tree -Dincludes=org.typelevel 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-400: Uncontrolled Resource Consumption, where the product does not properly control the allocation and maintenance of a limited resource. In Grackle core 2.13, 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 Prior to this fix, the GraphQL query parsing was vulnerable to `StackOverflowError`s. The possibility of small queries resulting in stack overflow is a potential denial of service vulnerability. This potentially affects all applications using Grackle which have untrusted users. > [!CAUTION] > **No specific knowledge of an application's GraphQL schema would be required to construct a pathological query.** ### Patches The stack overflow issues have been resolved in the v0.18.0 release of Grackle. ### Workarounds Users could interpose a sanitizing layer in between untrusted input and Grackle query processing.

CVE-2023-50730 Affected Grackle core 2.13 Versions

12 component(s)
Fixed Versions:
0.18.0
Product / Package Ecosystem Affected Versions Fixed Version
org.typelevel:grackle-core_2.13
Maven
< 0.18.0
0.18.0
org.typelevel:grackle-core_3
Maven
< 0.18.0
0.18.0
org.typelevel:grackle-core_sjs1_2.13
Maven
< 0.18.0
0.18.0
org.typelevel:grackle-core_sjs1_3
Maven
< 0.18.0
0.18.0
org.typelevel:grackle-core_native0.4_2.13
Maven
< 0.18.0
0.18.0
org.typelevel:grackle-core_native0.4_3
Maven
< 0.18.0
0.18.0
edu.gemini:gsp-graphql-core_2.13
Maven
≤ 0.14.0
edu.gemini:gsp-graphql-core_3
Maven
≤ 0.14.0
edu.gemini:gsp-graphql-core_sjs1_2.13
Maven
≤ 0.14.0
edu.gemini:gsp-graphql-core_sjs1_3
Maven
≤ 0.14.0
edu.gemini:gsp-graphql-core_native0.4_2.13
Maven
≤ 0.14.0
edu.gemini:gsp-graphql-core_native0.4_3
Maven
≤ 0.14.0

References

Frequently Asked Questions

What is CVE-2023-50730?
CVE-2023-50730 is a security vulnerability in Grackle core 2.13 involving Grackle has StackOverflowError in GraphQL query processing under CWE-400: Uncontrolled Resource Consumption.
Which Grackle core 2.13 versions are affected?
Affected versions include releases prior to 0.18.0 across affected packages: org.typelevel:grackle-core_2.13, org.typelevel:grackle-core_3, org.typelevel:grackle-core_sjs1_2.13, org.typelevel:grackle-core_sjs1_3, org.typelevel:grackle-core_native0.4_2.13, org.typelevel:grackle-core_native0.4_3, edu.gemini:gsp-graphql-core_2.13, edu.gemini:gsp-graphql-core_3, edu.gemini:gsp-graphql-core_sjs1_2.13, edu.gemini:gsp-graphql-core_sjs1_3, edu.gemini:gsp-graphql-core_native0.4_2.13, edu.gemini:gsp-graphql-core_native0.4_3.
What version fixes CVE-2023-50730?
Upgrading to 0.18.0 (or the latest patched release for your respective branch) resolves the vulnerability.
Is grackle-core_2.13 affected?
Yes, org.typelevel:grackle-core_2.13 is affected in releases prior to 0.18.0. Upgrade your dependency to 0.18.0 or later.
Is grackle-core_3 affected?
Yes, org.typelevel:grackle-core_3 is affected in releases prior to 0.18.0. Upgrade your dependency to 0.18.0 or later.
What is the CVSS score of CVE-2023-50730?
CVE-2023-50730 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-2023-50730?
CVE-2023-50730 is classified under CWE-400: Uncontrolled Resource Consumption (The product does not properly control the allocation and maintenance of a limited resource.).
How can I check Maven dependencies for CVE-2023-50730?
Run the dependency tree command: 'mvn dependency:tree -Dincludes=org.typelevel'. 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-g56x-7j6w-g8r8",
  "modified" : "2023-12-22T22:26:24Z",
  "published" : "2023-12-18T23:26:52Z",
  "aliases" : [ "CVE-2023-50730" ],
  "summary" : "Grackle has StackOverflowError in GraphQL query processing",
  "details" : "### Impact\n\nPrior to this fix, the GraphQL query parsing was vulnerable to `StackOverflowError`s. The possibility of small queries resulting in stack overflow is a potential denial of service vulnerability.\n\nThis potentially affects all applications using Grackle which have untrusted users.\n\n> [!CAUTION]  \n> **No specific knowledge of an application's GraphQL schema would be required to construct a pathological query.**\n\n### Patches\nThe stack overflow issues have been resolved in the v0.18.0 release of Grackle.\n\n### Workarounds\nUsers could interpose a sanitizing layer in between untrusted input and Grackle query processing.\n",
  "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" : "org.typelevel:grackle-core_2.13"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0"
      }, {
        "fixed" : "0.18.0"
      } ]
    } ]
  }, {
    "package" : {
      "ecosystem" : "Maven",
      "name" : "org.typelevel:grackle-core_3"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0"
      }, {
        "fixed" : "0.18.0"
      } ]
    } ]
  }, {
    "package" : {
      "ecosystem" : "Maven",
      "name" : "org.typelevel:grackle-core_sjs1_2.13"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0"
      }, {
        "fixed" : "0.18.0"
      } ]
    } ]
  }, {
    "package" : {
      "ecosystem" : "Maven",
      "name" : "org.typelevel:grackle-core_sjs1_3"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0"
      }, {
        "fixed" : "0.18.0"
      } ]
    } ]
  }, {
    "package" : {
      "ecosystem" : "Maven",
      "name" : "org.typelevel:grackle-core_native0.4_2.13"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0"
      }, {
        "fixed" : "0.18.0"
      } ]
    } ]
  }, {
    "package" : {
      "ecosystem" : "Maven",
      "name" : "org.typelevel:grackle-core_native0.4_3"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0"
      }, {
        "fixed" : "0.18.0"
      } ]
    } ]
  }, {
    "package" : {
      "ecosystem" : "Maven",
      "name" : "edu.gemini:gsp-graphql-core_2.13"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0"
      }, {
        "last_affected" : "0.14.0"
      } ]
    } ]
  }, {
    "package" : {
      "ecosystem" : "Maven",
      "name" : "edu.gemini:gsp-graphql-core_3"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0"
      }, {
        "last_affected" : "0.14.0"
      } ]
    } ]
  }, {
    "package" : {
      "ecosystem" : "Maven",
      "name" : "edu.gemini:gsp-graphql-core_sjs1_2.13"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0"
      }, {
        "last_affected" : "0.14.0"
      } ]
    } ]
  }, {
    "package" : {
      "ecosystem" : "Maven",
      "name" : "edu.gemini:gsp-graphql-core_sjs1_3"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0"
      }, {
        "last_affected" : "0.14.0"
      } ]
    } ]
  }, {
    "package" : {
      "ecosystem" : "Maven",
      "name" : "edu.gemini:gsp-graphql-core_native0.4_2.13"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0"
      }, {
        "last_affected" : "0.14.0"
      } ]
    } ]
  }, {
    "package" : {
      "ecosystem" : "Maven",
      "name" : "edu.gemini:gsp-graphql-core_native0.4_3"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0"
      }, {
        "last_affected" : "0.14.0"
      } ]
    } ]
  } ],
  "references" : [ {
    "type" : "WEB",
    "url" : "https://github.com/typelevel/grackle/security/advisories/GHSA-g56x-7j6w-g8r8"
  }, {
    "type" : "ADVISORY",
    "url" : "https://nvd.nist.gov/vuln/detail/CVE-2023-50730"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/typelevel/grackle/commit/56e244b91659cf385df590fc6c46695b6f36cbfd"
  }, {
    "type" : "PACKAGE",
    "url" : "https://github.com/typelevel/grackle"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/typelevel/grackle/releases/tag/v0.18.0"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-400" ],
    "severity" : "HIGH",
    "github_reviewed" : true,
    "github_reviewed_at" : "2023-12-18T23:26:52Z",
    "nvd_published_at" : "2023-12-22T21:15:07Z"
  }
}