# CVE-2023-50730: Grackle has StackOverflowError in GraphQL query processing

> Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

- **Severity:** HIGH 7.5
- **CVSS:** 7.5 (v3.1, CNA) `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H`
- **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
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** None known
- **Remote exploitation:** Remote, no login needed
- **EPSS:** 1.18% (percentile 68, 2026-11-26)
- **CWE:** CWE-400, CWE-770
- **Aliases:** GHSA-g56x-7j6w-g8r8
- **Published:** 2023-12-18T23:26:52.000Z
- **Modified:** 2026-06-17T06:39:52.450Z

## 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)

## 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

- Maven `org.typelevel:grackle-core_2.13`: affected \< 0.18.0; fixed 0.18.0 (osv)
- Maven `org.typelevel:grackle-core_3`: affected \< 0.18.0; fixed 0.18.0 (osv)
- Maven `org.typelevel:grackle-core_sjs1_2.13`: affected \< 0.18.0; fixed 0.18.0 (osv)
- Maven `org.typelevel:grackle-core_sjs1_3`: affected \< 0.18.0; fixed 0.18.0 (osv)
- Maven `org.typelevel:grackle-core_native0.4_2.13`: affected \< 0.18.0; fixed 0.18.0 (osv)
- Maven `org.typelevel:grackle-core_native0.4_3`: affected \< 0.18.0; fixed 0.18.0 (osv)
- Maven `edu.gemini:gsp-graphql-core_2.13`: affected \<= 0.14.0; fixed no fix listed yet (osv)
- Maven `edu.gemini:gsp-graphql-core_3`: affected \<= 0.14.0; fixed no fix listed yet (osv)
- Maven `edu.gemini:gsp-graphql-core_sjs1_2.13`: affected \<= 0.14.0; fixed no fix listed yet (osv)
- Maven `edu.gemini:gsp-graphql-core_sjs1_3`: affected \<= 0.14.0; fixed no fix listed yet (osv)
- Maven `edu.gemini:gsp-graphql-core_native0.4_2.13`: affected \<= 0.14.0; fixed no fix listed yet (osv)
- Maven `edu.gemini:gsp-graphql-core_native0.4_3`: affected \<= 0.14.0; fixed no fix listed yet (osv)
- typelevel grackle: \< 0.18.0 (cvelist)

## 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.

## Check your systems with an agent

Paste this into a coding agent:

```text
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.
```

## 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.

## References

- vendor: <https://github.com/typelevel/grackle/security/advisories/GHSA-g56x-7j6w-g8r8>
- vendor: <https://nvd.nist.gov/vuln/detail/CVE-2023-50730>
- patch: <https://github.com/typelevel/grackle/commit/56e244b91659cf385df590fc6c46695b6f36cbfd>
- other: <https://github.com/typelevel/grackle/releases/tag/v0.18.0>
- other: <https://github.com/typelevel/grackle>

## Attribution

- CVE Program: CVE® is a registered trademark of The MITRE Corporation. CVE records © 1999–2026 The MITRE Corporation. <https://www.cve.org/Legal/TermsOfUse>
- NVD: This product uses data from the NVD API but is not endorsed or certified by the NVD. <https://nvd.nist.gov/vuln/detail/CVE-2023-50730>
- OSV: CC-BY 4.0 <https://osv.dev/vulnerability/GHSA-g56x-7j6w-g8r8> (license: <https://creativecommons.org/licenses/by/4.0/>)

HTML: <https://flawdb.com/CVE-2023-50730> · JSON: <https://flawdb.com/api/v1/entries/CVE-2023-50730>
