CVE-2023-50730: Grackle core 2.13 Grackle Has StackOverflowError Vulnerability
HIGHCVE-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.
CVE-2023-50730 at a Glance
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).
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.
<dependency>
<groupId>org.typelevel</groupId>
<artifactId>grackle-core_2.13</artifactId>
<version>0.18.0</version>
</dependency>
<dependency>
<groupId>org.typelevel</groupId>
<artifactId>grackle-core_3</artifactId>
<version>0.18.0</version>
</dependency>
<dependency>
<groupId>org.typelevel</groupId>
<artifactId>grackle-core_sjs1_2.13</artifactId>
<version>0.18.0</version>
</dependency>
<dependency>
<groupId>org.typelevel</groupId>
<artifactId>grackle-core_sjs1_3</artifactId>
<version>0.18.0</version>
</dependency>
<dependency>
<groupId>org.typelevel</groupId>
<artifactId>grackle-core_native0.4_2.13</artifactId>
<version>0.18.0</version>
</dependency>
<dependency>
<groupId>org.typelevel</groupId>
<artifactId>grackle-core_native0.4_3</artifactId>
<version>0.18.0</version>
</dependency>
<dependency>
<groupId>edu.gemini</groupId>
<artifactId>gsp-graphql-core_2.13</artifactId>
<version>Latest secure release</version>
</dependency>
<dependency>
<groupId>edu.gemini</groupId>
<artifactId>gsp-graphql-core_3</artifactId>
<version>Latest secure release</version>
</dependency>
<dependency>
<groupId>edu.gemini</groupId>
<artifactId>gsp-graphql-core_sjs1_2.13</artifactId>
<version>Latest secure release</version>
</dependency>
<dependency>
<groupId>edu.gemini</groupId>
<artifactId>gsp-graphql-core_sjs1_3</artifactId>
<version>Latest secure release</version>
</dependency>
<dependency>
<groupId>edu.gemini</groupId>
<artifactId>gsp-graphql-core_native0.4_2.13</artifactId>
<version>Latest secure release</version>
</dependency>
<dependency>
<groupId>edu.gemini</groupId>
<artifactId>gsp-graphql-core_native0.4_3</artifactId>
<version>Latest secure release</version>
</dependency>
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
CVE-2023-50730 Affected Grackle core 2.13 Versions
12 component(s)| 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?
Which Grackle core 2.13 versions are affected?
What version fixes CVE-2023-50730?
Is grackle-core_2.13 affected?
Is grackle-core_3 affected?
What is the CVSS score of CVE-2023-50730?
What CWE is associated with CVE-2023-50730?
How can I check Maven dependencies for CVE-2023-50730?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"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"
}
}