# CVE-2022-37315: graphql-go has infinite recursion in the type definition parser

- Severity: High 7.5 (CVSS:3.1, scored by NVD) `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 1.21%, higher than 69% of CVEs (2026-12-01)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2022-08-01T21:53:26.000Z
- Modified: 2026-08-25T18:17:03.793Z
- Also known as: GHSA-h3qm-jrrf-cgj3, GO-2022-0942
- Weaknesses: CWE-674
- Assigned by: mitre

## Description

graphql-go (aka GraphQL for Go) through 0.8.0 has infinite recursion in the type definition parser.

(As written by CVE List.)

## Affected

- Unspecified product: n/a
- github.com/graphql-go/graphql (Go): before 0.8.1
- graphql-go_project graphql-go: up to 0.8.0

## Every score

- GitHub: CVSS:3.1 7.5 High `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H`
- NVD: CVSS:3.1 7.5 High `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H`

## References

- <https://github.com/graphql-go/graphql/issues/637> (exploit, issue-tracking, third-party-advisory, web)
- <http://www.openwall.com/lists/oss-security/2026/08/25/2>
- <https://nvd.nist.gov/vuln/detail/CVE-2022-37315> (advisory)
- <https://github.com/graphql-go/graphql/pull/642> (fix, web)
- <https://github.com/graphql-go/graphql/pull/642/commits/4188bd5b3877f7badb951b421cf66e0af2eacb22> (fix, web)
- <https://github.com/graphql-go/graphql> (package)
- <https://pkg.go.dev/vuln/GO-2022-0942> (web)

## Sources

- CVE List: [CVE-2022-37315](https://www.cve.org/CVERecord?id=CVE-2022-37315), CVE Terms of Use, modified 2026-08-25
- GitHub Advisory Database: [GHSA-h3qm-jrrf-cgj3](https://github.com/advisories/GHSA-h3qm-jrrf-cgj3), CC-BY-4.0, modified 2023-11-08
- Go Vulnerability Database: [GO-2022-0942](https://pkg.go.dev/vuln/GO-2022-0942), CC-BY-4.0, modified 2024-05-20
- NVD: [CVE-2022-37315](https://nvd.nist.gov/vuln/detail/CVE-2022-37315), Public domain, modified 2026-08-25

---

Page: https://cve.day/CVE-2022-37315 · Whole record: https://cve.day/CVE-2022-37315.json · Rebuilt by cve.day 2026-11-25T22:58:13.356Z
