CVE-2023-50730
Grackle has StackOverflowError in GraphQL query processing
Also known as GHSA-g56x-7j6w-g8r8
Mitigation
- Upgrade org.typelevel:grackle-core_2.13 to 0.18.0 or later.
- Upgrade org.typelevel:grackle-core_3 to 0.18.0 or later.
- Upgrade org.typelevel:grackle-core_sjs1_2.13 to 0.18.0 or later.
- Upgrade org.typelevel:grackle-core_sjs1_3 to 0.18.0 or later.
- Upgrade org.typelevel:grackle-core_native0.4_2.13 to 0.18.0 or later.
- Upgrade org.typelevel:grackle-core_native0.4_3 to 0.18.0 or later.
Who should check
- Projects that depend on Maven package org.typelevel:grackle-core_2.13 (< 0.18.0)
- Projects that depend on Maven package org.typelevel:grackle-core_3 (< 0.18.0)
- Projects that depend on Maven package org.typelevel:grackle-core_sjs1_2.13 (< 0.18.0)
- Projects that depend on Maven package org.typelevel:grackle-core_sjs1_3 (< 0.18.0)
- Projects that depend on Maven package org.typelevel:grackle-core_native0.4_2.13 (< 0.18.0)
- Projects that depend on Maven package org.typelevel:grackle-core_native0.4_3 (< 0.18.0)
- Projects that depend on Maven package edu.gemini:gsp-graphql-core_2.13 (<= 0.14.0)
- Projects that depend on Maven package edu.gemini:gsp-graphql-core_3 (<= 0.14.0)
Vulnerability facts
- Affected
- org.typelevel:grackle-core_2.13 < 0.18.0; org.typelevel:grackle-core_3 < 0.18.0; org.typelevel:grackle-core_sjs1_2.13 < 0.18.0; org.typelevel:grackle-core_sjs1_3 < 0.18.0; org.typelevel:grackle-core_native0.4_2.13 < 0.18.0; org.typelevel:grackle-core_native0.4_3 < 0.18.0; edu.gemini:gsp-graphql-core_2.13 <= 0.14.0; edu.gemini:gsp-graphql-core_3 <= 0.14.0; edu.gemini:gsp-graphql-core_sjs1_2.13 <= 0.14.0; edu.gemini:gsp-graphql-core_sjs1_3 <= 0.14.0; edu.gemini:gsp-graphql-core_native0.4_2.13 <= 0.14.0; edu.gemini:gsp-graphql-core_native0.4_3 <= 0.14.0
- Fixed in
- 0.18.0
- Exploited in the wild
- Not in CISA KEV
- Public exploit / PoC
- None known
- Remote exploitation
- Remote, no login needed
- CVSS
- 7.5 (v3.1, CNA)CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:HOpen in CVSS calculator
Show all 8 CVSS metrics
- Attack vector: Network
- Attack complexity: Low
- Privileges required: None
- User interaction: None
- Scope: Unchanged
- Confidentiality impact: None
- Integrity impact: None
- Availability impact: High
- EPSS
- 1.18% chance of exploitation in 30 days (percentile 68, 2026-11-26)
- CWE
- CWE-400, CWE-770
- Modified
Description
Grackle is a GraphQL server written in functional Scala, built on the Typelevel stack. The GraphQL specification requires that GraphQL fragments must not form cycles, either directly or indirectly. Prior to Grackle version 0.18.0, that requirement wasn't checked, and queries with cyclic fragments would have been accepted for type checking and compilation. The attempted compilation of such fragments would result in a JVM `StackOverflowError` being thrown. Some knowledge of an applications GraphQL schema would be required to construct such a query, however no knowledge of any application-specific performance or other behavioural characteristics would be needed. Grackle uses the cats-parse library for parsing GraphQL queries. Prior to version 0.18.0, Grackle made use of the cats-parse `recursive` operator. However, `recursive` is not currently stack safe. `recursive` was used in three places in the parser: nested selection sets, nested input values (lists and objects), and nested list type declarations. Consequently, queries with deeply nested selection sets, input values or list types could be constructed which exploited this, causing a JVM `StackOverflowException` to be thrown during parsing. Because this happens very early in query processing, no specific knowledge of an applications GraphQL schema would be required to construct such a query. 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. Both stack overflow issues have been resolved in the v0.18.0 release of Grackle. As a workaround, users could interpose a sanitizing layer in between untrusted input and Grackle query processing.
Affected and fixed versions
| Package / product | Affected | Fixed | Source |
|---|---|---|---|
| Maven org.typelevel:grackle-core_2.13 | < 0.18.0 | 0.18.0 | osv |
| Maven org.typelevel:grackle-core_3 | < 0.18.0 | 0.18.0 | osv |
| Maven org.typelevel:grackle-core_sjs1_2.13 | < 0.18.0 | 0.18.0 | osv |
| Maven org.typelevel:grackle-core_sjs1_3 | < 0.18.0 | 0.18.0 | osv |
| Maven org.typelevel:grackle-core_native0.4_2.13 | < 0.18.0 | 0.18.0 | osv |
| Maven org.typelevel:grackle-core_native0.4_3 | < 0.18.0 | 0.18.0 | osv |
| Maven edu.gemini:gsp-graphql-core_2.13 | <= 0.14.0 | — | osv |
| Maven edu.gemini:gsp-graphql-core_3 | <= 0.14.0 | — | osv |
| Maven edu.gemini:gsp-graphql-core_sjs1_2.13 | <= 0.14.0 | — | osv |
| Maven edu.gemini:gsp-graphql-core_sjs1_3 | <= 0.14.0 | — | osv |
| Maven edu.gemini:gsp-graphql-core_native0.4_2.13 | <= 0.14.0 | — | osv |
| Maven edu.gemini:gsp-graphql-core_native0.4_3 | <= 0.14.0 | — | osv |
| typelevel grackle | < 0.18.0 | — | cvelist |
Check your systems with an agent
Paste this into Claude Code, Cursor or another coding agent. It only reads; it changes nothing.
Check whether anything I run is affected by CVE-2023-50730. Work read-only: do not install, upgrade, delete or change anything. Details: https://flawdb.com/CVE-2023-50730.md Affected: org.typelevel:grackle-core_2.13 < 0.18.0; org.typelevel:grackle-core_3 < 0.18.0; org.typelevel:grackle-core_sjs1_2.13 < 0.18.0; org.typelevel:grackle-core_sjs1_3 < 0.18.0; org.typelevel:grackle-core_native0.4_2.13 < 0.18.0; org.typelevel:grackle-core_native0.4_3 < 0.18.0; edu.gemini:gsp-graphql-cor… Fixed in: 0.18.0 Steps: 1. Search this machine and project for org.typelevel:grackle-core_2.13 (Maven), org.typelevel:grackle-core_3 (Maven), org.typelevel:grackle-core_sjs1_2.13 (Maven), org.typelevel:grackle-core_sjs1_3 (Maven), org.typelevel:grackle-core_native0.4_2.13 (Maven), org.typelevel:grackle-core_native0.4_3 (Maven): dependency manifests and lockfiles, installed packages, container images and running services. 2. For each match, note the installed version and whether it is inside the affected range. 3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
References
Vendor advisories
FAQ
Is CVE-2023-50730 being exploited?
There is no confirmed exploitation: CVE-2023-50730 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 1.18% chance of exploitation in the next 30 days (as of 2026-11-26).
How serious is CVE-2023-50730?
High: CVSS 7.5 (v3.1, scored by CNA). Remote, no login needed.
Which versions are affected by CVE-2023-50730?
org.typelevel:grackle-core_2.13 < 0.18.0; org.typelevel:grackle-core_3 < 0.18.0; org.typelevel:grackle-core_sjs1_2.13 < 0.18.0; org.typelevel:grackle-core_sjs1_3 < 0.18.0; org.typelevel:grackle-core_native0.4_2.13 < 0.18.0; org.typelevel:grackle-core_native0.4_3 < 0.18.0; edu.gemini:gsp-graphql-core_2.13 <= 0.14.0; edu.gemini:gsp-graphql-core_3 <= 0.14.0; edu.gemini:gsp-graphql-core_sjs1_2.13 <= 0.14.0; edu.gemini:gsp-graphql-core_sjs1_3 <= 0.14.0; edu.gemini:gsp-graphql-core_native0.4_2.13 <= 0.14.0; edu.gemini:gsp-graphql-core_native0.4_3 <= 0.14.0.
Is there a fix for CVE-2023-50730?
Yes. Fixed in 0.18.0. Upgrade org.typelevel:grackle-core_2.13 to 0.18.0 or later. Upgrade org.typelevel:grackle-core_3 to 0.18.0 or later. Upgrade org.typelevel:grackle-core_sjs1_2.13 to 0.18.0 or later. Upgrade org.typelevel:grackle-core_sjs1_3 to 0.18.0 or later. Upgrade org.typelevel:grackle-core_native0.4_2.13 to 0.18.0 or later. Upgrade org.typelevel:grackle-core_native0.4_3 to 0.18.0 or later.
How do I check if I'm affected by CVE-2023-50730?
Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.