CVE-2023-50730Grackle has StackOverflowError in GraphQL query processing
- 7.5HighCVSS base score
- 0.83%Exploitation in 30 daysEPSS · top 42% of all CVEs
- NoKnown exploitednot in CISA's KEV catalog
- NonePublic exploitsnone known yet
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.
Timeline
ID reserved
By GitHub_M
- 11 days later
· 11 days later
Published
- 7 months later
· 7 months later
Record updated
Changes after publication (a new score, a public exploit, EPSS crossing 1, 10 or 50 %, leaving KEV) are kept since November 2026; earlier ones are not known.
Scores
| Scored by | CVSS | Score | Vector |
|---|---|---|---|
| GitHub_MCNA (assigner) | 3.1 | High7.5 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H |
| NVDNVD · Modified | 3.1 | High7.5 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H |
- EPSS (exploitation in 30 days)
- 0.83% · top 42% of all CVEs (17 Nov 2026)
The list uses the assigner's score when there is one, then CISA's, then NVD's: High 7.5.
Affected products
Affected packages
Affected packages12
From reviewed advisories of the GitHub Advisory Database.
- Mavenedu.gemini:gsp-graphql-core_2.13GHSA-g56x-7j6w-g8r8 (opens in a new tab)
- Mavenedu.gemini:gsp-graphql-core_3GHSA-g56x-7j6w-g8r8 (opens in a new tab)
- Mavenedu.gemini:gsp-graphql-core_native0.4_2.13GHSA-g56x-7j6w-g8r8 (opens in a new tab)
- Mavenedu.gemini:gsp-graphql-core_native0.4_3GHSA-g56x-7j6w-g8r8 (opens in a new tab)
- Mavenedu.gemini:gsp-graphql-core_sjs1_2.13GHSA-g56x-7j6w-g8r8 (opens in a new tab)
- Mavenedu.gemini:gsp-graphql-core_sjs1_3GHSA-g56x-7j6w-g8r8 (opens in a new tab)
- Mavenorg.typelevel:grackle-core_2.13GHSA-g56x-7j6w-g8r8 (opens in a new tab)
- Mavenorg.typelevel:grackle-core_3GHSA-g56x-7j6w-g8r8 (opens in a new tab)
- Mavenorg.typelevel:grackle-core_native0.4_2.13GHSA-g56x-7j6w-g8r8 (opens in a new tab)
- Mavenorg.typelevel:grackle-core_native0.4_3GHSA-g56x-7j6w-g8r8 (opens in a new tab)
- Mavenorg.typelevel:grackle-core_sjs1_2.13GHSA-g56x-7j6w-g8r8 (opens in a new tab)
- Mavenorg.typelevel:grackle-core_sjs1_3GHSA-g56x-7j6w-g8r8 (opens in a new tab)
References
References3
- https://github.com/typelevel/grackle/security/advisories/GHSA-g56x-7j6w-g8r8 (opens in a new tab)x_refsource_CONFIRMx_transferred
- https://github.com/typelevel/grackle/commit/56e244b91659cf385df590fc6c46695b6f36cbfd (opens in a new tab)x_refsource_MISCx_transferred
- https://github.com/typelevel/grackle/releases/tag/v0.18.0 (opens in a new tab)x_refsource_MISCx_transferred
Sources
The same CVE in the primary databases and aggregators, to check against.
- CVE.org record (opens in a new tab)
- CVE List JSON (GitHub) (opens in a new tab)
- NVD (opens in a new tab)
- FIRST EPSS (opens in a new tab)
- EUVD EUVD-2023-3206 (opens in a new tab)
- OSV.dev (opens in a new tab)
- GitHub Advisory GHSA-g56x-7j6w-g8r8 (opens in a new tab)
- CIRCL Vulnerability-Lookup (opens in a new tab)
Badge for a README or a ticket
[](https://cveledger.app/cve/CVE-2023-50730)Record last updated .