CVE-2022-21708 json
Denial of Service in graphql-go
published 4y ago modified 4mo ago also GHSA-mh3m-8c74-74xh , GO-2022-0300 , EUVD-2022-0647
- cvss
- 6.5
- version 3.1, CNA
- cisa kev
- Not listed
- not in CISA's catalog
- epss
- 1.2%
- EPSS 1.2% chance of exploitation in 30 days, percentile 69%
- public exploits
- 0
- none known
Summary
graphql-go is a GraphQL server with a focus on ease of use. In versions prior to 1.3.0 there exists a DoS vulnerability that is possible due to a bug in the library that would allow an attacker with specifically designed queries to cause stack overflow panics. Any user with access to the GraphQL handler can send these queries and cause stack overflows. This in turn could potentially compromise the ability of the server to serve data to its users. The issue has been patched in version `v1.3.0`. The only known workaround for this issue is to disable the `graphql.MaxDepth` option from your schema which is not recommended.
Patch / fix
- go github.com/graph-gophers/graphql-go 1.3.0
- graphql-go_project graphql-go 1.3.0
- golang-github-graph-gophers-graphql-go Debian 14, Debian 13, Debian 12 1.3.0-1
debian advisories DEBIAN-CVE-2022-21708
Is CVE-2022-21708 in your dependencies? Fencer shows which of your repositories are affected as soon as an advisory lands, and opens the fix as a pull request.
Check with FencerVendor advisories
What the vendors themselves say about their products: affected, fixed or not affected, and what to do.
red hat product security vex CVE-2022-21708 updated cvss 7.5
graphql-go: Denial of service via stack overflow panics
-
Red Hat Advanced Cluster Security 3 graphql-goaffected: no fix available
-
Red Hat OpenShift Container Platform 4.12 openshift4/ose-console v4.12.0-202406190905.p0.g8654e63.assembly.stream.el8fixed: vendor fix RHSA-2024:4006
-
Red Hat OpenShift Container Platform 4.13 openshift4/ose-console v4.13.0-202406112237.p0.gdc7be0c.assembly.stream.el8fixed: vendor fix RHSA-2024:3885
-
Red Hat OpenShift Container Platform 4.14 openshift4/ose-console v4.14.0-202402061340.p0.g3cab6c4.assembly.stream.el8fixed: vendor fix RHSA-2024:0735
-
Red Hat OpenShift Container Platform 4.12 rhcos 412.86.202406190528-0, openshift4/ose-cli v4.12.0-202406190905.p0.gd691257.assembly.stream.el8, openshift4/ose-pod v4.12.0-202406190905.p0.g306a47e.assembly.stream.el8, openshift4/ose-etcd v4.12.0-202406190905.p0.gbb82e89.assembly.stream.el8, openshift4/ose-tests v4.12.0-202406190905.p0.g7b7d4ef.assembly.stream.el8, openshift4/ose-coredns v4.12.0-202406190905.p0.gcc1194e.assembly.stream.el8, +185 more Red Hat OpenShift Container Platform 4.13 rhcos 413.92.202406110749-0, openshift4/ose-etcd-rhel9 v4.13.0-202406060837.p0.ga6b7ad4.assembly.stream.el9, openshift4/ose-ironic-rhel9 v4.13.0-202406060837.p0.g881e793.assembly.stream.el9, openshift4/ose-haproxy-router v4.13.0-202406100906.p0.g2012a1d.assembly.stream.el8, openshift4/ose-ovn-kubernetes v4.13.0-202406060837.p0.ged2bab4.assembly.stream.el9, openshift4/network-tools-rhel8 v4.13.0-202406060837.p0.g073feda.assembly.stream.el8, +13 more Red Hat OpenShift Container Platform 4.14 openshift4/ose-tests v4.14.0-202402061510.p0.gaa0cb9b.assembly.stream.el8, openshift4/ose-ironic-rhel9 v4.14.0-202402050839.p0.g7296ed5.assembly.stream, openshift4/ose-docker-builder v4.14.0-202402040340.p0.g9c104de.assembly.stream, openshift4/driver-toolkit-rhel9 v4.14.0-202402021810.p0.gcafed17.assembly.stream, openshift4/ose-olm-rukpak-rhel8 v4.14.0-202402060410.p0.g2287fb2.assembly.stream, openshift4/ose-ovn-kubernetes v4.14.0-202402061340.p0.gdb114cf.assembly.stream.el9, +24 morenot affected: vulnerable code not present
Red Hat CSAF VEX © Red Hat, Inc., from https://security.access.redhat.com/data/csaf/v2/vex/; changed: reduced to product statuses and remediations. CC BY 4.0 · csaf
CISA SSVC
- Exploitation
- none
- Automatable
- no
- Technical impact
- partial
- Assessed
- last yr.
Exploit prediction
1.24% chance of exploitation in the next 30 days, higher than 69% of all scored CVEs (FIRST EPSS, 2026-11-09).
CVSS scores
| assigned by | version | score | vector |
|---|---|---|---|
| CNA | 3.1 | 6.5 | CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H |
| NVD | 3.1 | 6.5 | CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H |
| NVD | 2.0 | 3.5 | AV:N/AC:M/Au:S/C:N/I:N/A:P |
| GitHub | 3.1 | 6.5 | CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H |
Affected packages
| ecosystem | package | affected | fixed in |
|---|---|---|---|
| go | github.com/graph-gophers/graphql-go | <1.3.0 |
1.3.0 |
Affected products
- graph-gophers graphql-go
Classification
References
-
github.com
/graph-gophers/graphql-go/commit/eae31ca73eb3473c544710955d1dbebc22605bfe
web, patch, third-party-advisory
-
github.com
/graph-gophers/graphql-go/security/advisories/GHSA-mh3m-8c74-74xh
web, third-party-advisory
-
nvd.nist.gov
/vuln/detail/CVE-2022-21708
advisory
-
github.com
/graph-gophers/graphql-go
package
-
pkg.go.dev
/vuln/GO-2022-0300
web
Sources
- CVE List CVE-2022-21708
- GitHub Advisory GHSA-mh3m-8c74-74xh
- NVD CVE-2022-21708
- OSV GO-2022-0300
Fencer Intel keeps one entry per vulnerability: the CVE id wins, then GHSA, and records that alias each other are merged, except that two CVEs always keep separate entries. The same data is available as JSON.