{"answers":{"affected":"24 open source packages ship an affected version, including org.typelevel:grackle-core_2.13, edu.gemini:gsp-graphql-core_2.13 and edu.gemini:gsp-graphql-core_3. It affects 1 product.","exploited":"There is no known exploitation of CVE-2023-50730 in the wild and no public exploit code.","fix":"Upgrade org.typelevel:grackle-core_2.13 to 0.18.0 or later.","what":"CVE-2023-50730 is a high-severity denial of service vulnerability in typelevel grackle, published on 22 Dec 2023. An attacker can exploit it over the internet without logging in, with no action from the victim."},"fix_prompt":"Check this codebase for CVE-2023-50730 and fix it if it is affected.\n\nWhat it is: CVE-2023-50730 is a high-severity denial of service vulnerability in typelevel grackle, published on 22 Dec 2023. An attacker can exploit it over the internet without logging in, with no action from the victim.\nExploitation: There is no known exploitation of CVE-2023-50730 in the wild and no public exploit code.\n\nAffected packages and fixed versions:\n- org.typelevel:grackle-core_2.13 (Maven): affected all versions; fixed in 0.18.0\n- org.typelevel:grackle-core_2.13 (Maven): affected all versions; fixed in 0.18.0\n- edu.gemini:gsp-graphql-core_2.13 (Maven): affected all versions up to 0.14.0; no fix listed\n- edu.gemini:gsp-graphql-core_2.13 (Maven): affected all versions up to 0.14.0; no fix listed\n- edu.gemini:gsp-graphql-core_3 (Maven): affected all versions up to 0.14.0; no fix listed\n- edu.gemini:gsp-graphql-core_3 (Maven): affected all versions up to 0.14.0; no fix listed\n- edu.gemini:gsp-graphql-core_native0.4_2.13 (Maven): affected all versions up to 0.14.0; no fix listed\n- edu.gemini:gsp-graphql-core_native0.4_2.13 (Maven): affected all versions up to 0.14.0; no fix listed\n- edu.gemini:gsp-graphql-core_native0.4_3 (Maven): affected all versions up to 0.14.0; no fix listed\n- edu.gemini:gsp-graphql-core_native0.4_3 (Maven): affected all versions up to 0.14.0; no fix listed\n- edu.gemini:gsp-graphql-core_sjs1_2.13 (Maven): affected all versions up to 0.14.0; no fix listed\n- edu.gemini:gsp-graphql-core_sjs1_2.13 (Maven): affected all versions up to 0.14.0; no fix listed\n\nTask:\n1. Search the dependency manifests and lockfiles (for example package.json, package-lock.json, requirements.txt, poetry.lock, uv.lock, pom.xml, build.gradle, go.mod, Cargo.lock, Gemfile.lock) and any Dockerfiles for the affected packages, including transitive dependencies.\n2. If an affected version is in use, upgrade it to the fixed version for its release line with the project's package manager, so the lockfile is regenerated. Prefer the smallest upgrade that fixes it.\n3. If there is no fix, or the upgrade would break the build, do not guess: explain the risk and the safest workaround instead.\n4. Run the tests and summarise what changed and why.\n5. If nothing in the project is affected, say so and change nothing.\n\nReference: https://insights.sbomify.com/CVE-2023-50730/ (Markdown: https://insights.sbomify.com/CVE-2023-50730/index.md)","id":"CVE-2023-50730","markdown":"https://insights.sbomify.com/CVE-2023-50730/index.md","name":"CVE-2023-50730","record":{"aliases":["GHSA-g56x-7j6w-g8r8"],"analysis":{"component_type":"library","fix_type":"upgrade","impacts":["denial_of_service"],"network_reachable":"yes","non_default_config":false,"product_category":"Scala GraphQL library","requires_auth":"none","summary":"Attackers can cause a denial of service in Grackle GraphQL servers by submitting queries with cyclic fragments or deep nesting, triggering stack overflow errors.","user_interaction":"not_required","vuln_class":"denial_of_service"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"GitHub_M","cpe":[{"product":"grackle","vendor":"typelevel"}],"cvss":{"score":7.5,"severity":"high","source":"cna","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","version":"3.1"},"cwes":[{"id":"CWE-770","name":"Allocation of Resources Without Limits or Throttling"},{"id":"CWE-400","name":"Uncontrolled Resource Consumption"}],"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.\n\nGrackle 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.\n\nThe 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.","ecosystems":["Maven"],"exploits":{"exploitdb":0,"first_seen":null,"github_poc":0,"max_poc_stars":null,"metasploit":0,"nuclei":0,"refs":[],"tier":"none_known"},"has_fix":true,"headline":"Grackle has StackOverflowError in GraphQL query processing","id":"CVE-2023-50730","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":"Maven","product":null,"products":[],"type":"denial_of_service","year":"2023"},"n_packages":24,"n_references":3,"next":{"headline":"MindsDB has arbitrary file write in file.py","id":"CVE-2023-50731"},"packages":[{"ecosystem":"Maven","fixed":[],"introduced":["0"],"last_affected":["0.14.0"],"package":"edu.gemini:gsp-graphql-core_2.13","purl":null,"source":"GHSA-g56x-7j6w-g8r8"},{"ecosystem":"Maven","fixed":[],"introduced":["0"],"last_affected":["0.14.0"],"package":"edu.gemini:gsp-graphql-core_2.13","purl":"pkg:maven/edu.gemini/gsp-graphql-core_2.13","source":"GHSA-g56x-7j6w-g8r8"},{"ecosystem":"Maven","fixed":[],"introduced":["0"],"last_affected":["0.14.0"],"package":"edu.gemini:gsp-graphql-core_3","purl":null,"source":"GHSA-g56x-7j6w-g8r8"},{"ecosystem":"Maven","fixed":[],"introduced":["0"],"last_affected":["0.14.0"],"package":"edu.gemini:gsp-graphql-core_3","purl":"pkg:maven/edu.gemini/gsp-graphql-core_3","source":"GHSA-g56x-7j6w-g8r8"},{"ecosystem":"Maven","fixed":[],"introduced":["0"],"last_affected":["0.14.0"],"package":"edu.gemini:gsp-graphql-core_native0.4_2.13","purl":null,"source":"GHSA-g56x-7j6w-g8r8"},{"ecosystem":"Maven","fixed":[],"introduced":["0"],"last_affected":["0.14.0"],"package":"edu.gemini:gsp-graphql-core_native0.4_2.13","purl":"pkg:maven/edu.gemini/gsp-graphql-core_native0.4_2.13","source":"GHSA-g56x-7j6w-g8r8"},{"ecosystem":"Maven","fixed":[],"introduced":["0"],"last_affected":["0.14.0"],"package":"edu.gemini:gsp-graphql-core_native0.4_3","purl":null,"source":"GHSA-g56x-7j6w-g8r8"},{"ecosystem":"Maven","fixed":[],"introduced":["0"],"last_affected":["0.14.0"],"package":"edu.gemini:gsp-graphql-core_native0.4_3","purl":"pkg:maven/edu.gemini/gsp-graphql-core_native0.4_3","source":"GHSA-g56x-7j6w-g8r8"},{"ecosystem":"Maven","fixed":[],"introduced":["0"],"last_affected":["0.14.0"],"package":"edu.gemini:gsp-graphql-core_sjs1_2.13","purl":null,"source":"GHSA-g56x-7j6w-g8r8"},{"ecosystem":"Maven","fixed":[],"introduced":["0"],"last_affected":["0.14.0"],"package":"edu.gemini:gsp-graphql-core_sjs1_2.13","purl":"pkg:maven/edu.gemini/gsp-graphql-core_sjs1_2.13","source":"GHSA-g56x-7j6w-g8r8"},{"ecosystem":"Maven","fixed":[],"introduced":["0"],"last_affected":["0.14.0"],"package":"edu.gemini:gsp-graphql-core_sjs1_3","purl":null,"source":"GHSA-g56x-7j6w-g8r8"},{"ecosystem":"Maven","fixed":[],"introduced":["0"],"last_affected":["0.14.0"],"package":"edu.gemini:gsp-graphql-core_sjs1_3","purl":"pkg:maven/edu.gemini/gsp-graphql-core_sjs1_3","source":"GHSA-g56x-7j6w-g8r8"},{"ecosystem":"Maven","fixed":["0.18.0"],"introduced":["0"],"last_affected":[],"package":"org.typelevel:grackle-core_2.13","purl":null,"source":"GHSA-g56x-7j6w-g8r8"},{"ecosystem":"Maven","fixed":["0.18.0"],"introduced":["0"],"last_affected":[],"package":"org.typelevel:grackle-core_2.13","purl":"pkg:maven/org.typelevel/grackle-core_2.13","source":"GHSA-g56x-7j6w-g8r8"},{"ecosystem":"Maven","fixed":["0.18.0"],"introduced":["0"],"last_affected":[],"package":"org.typelevel:grackle-core_3","purl":null,"source":"GHSA-g56x-7j6w-g8r8"},{"ecosystem":"Maven","fixed":["0.18.0"],"introduced":["0"],"last_affected":[],"package":"org.typelevel:grackle-core_3","purl":"pkg:maven/org.typelevel/grackle-core_3","source":"GHSA-g56x-7j6w-g8r8"},{"ecosystem":"Maven","fixed":["0.18.0"],"introduced":["0"],"last_affected":[],"package":"org.typelevel:grackle-core_native0.4_2.13","purl":null,"source":"GHSA-g56x-7j6w-g8r8"},{"ecosystem":"Maven","fixed":["0.18.0"],"introduced":["0"],"last_affected":[],"package":"org.typelevel:grackle-core_native0.4_2.13","purl":"pkg:maven/org.typelevel/grackle-core_native0.4_2.13","source":"GHSA-g56x-7j6w-g8r8"},{"ecosystem":"Maven","fixed":["0.18.0"],"introduced":["0"],"last_affected":[],"package":"org.typelevel:grackle-core_native0.4_3","purl":null,"source":"GHSA-g56x-7j6w-g8r8"},{"ecosystem":"Maven","fixed":["0.18.0"],"introduced":["0"],"last_affected":[],"package":"org.typelevel:grackle-core_native0.4_3","purl":"pkg:maven/org.typelevel/grackle-core_native0.4_3","source":"GHSA-g56x-7j6w-g8r8"},{"ecosystem":"Maven","fixed":["0.18.0"],"introduced":["0"],"last_affected":[],"package":"org.typelevel:grackle-core_sjs1_2.13","purl":null,"source":"GHSA-g56x-7j6w-g8r8"},{"ecosystem":"Maven","fixed":["0.18.0"],"introduced":["0"],"last_affected":[],"package":"org.typelevel:grackle-core_sjs1_2.13","purl":"pkg:maven/org.typelevel/grackle-core_sjs1_2.13","source":"GHSA-g56x-7j6w-g8r8"},{"ecosystem":"Maven","fixed":["0.18.0"],"introduced":["0"],"last_affected":[],"package":"org.typelevel:grackle-core_sjs1_3","purl":null,"source":"GHSA-g56x-7j6w-g8r8"},{"ecosystem":"Maven","fixed":["0.18.0"],"introduced":["0"],"last_affected":[],"package":"org.typelevel:grackle-core_sjs1_3","purl":"pkg:maven/org.typelevel/grackle-core_sjs1_3","source":"GHSA-g56x-7j6w-g8r8"}],"prev":{"headline":"An unrestricted file upload vulnerability in traccar leads to RCE","id":"CVE-2023-50729"},"products":["grackle"],"published":"2023-12-22","related":[],"sources":[{"class":"attribution","licence":"CVE Terms of Use (MITRE)","name":"CVE List","prefix":"CVE"},{"class":"attribution","licence":"CC BY 4.0","name":"GitHub Advisory Database","prefix":"GHSA"},{"class":"attribution","licence":"US public information, NVD API terms","name":"NVD"},{"class":"attribution","licence":"CWE Terms of Use","name":"CWE (MITRE)"},{"class":"attribution","licence":"FIRST CVSS licence","name":"CVSS (FIRST)"}],"ssvc":{"automatable":null,"exploitation":null,"technical_impact":null},"state":"PUBLISHED","updated":"2024-08-02","vendors":["typelevel"]},"summary":"Attackers can cause a denial of service in Grackle GraphQL servers by submitting queries with cyclic fragments or deep nesting, triggering stack overflow errors.","url":"https://insights.sbomify.com/CVE-2023-50730/"}