CVE-2022-21708
Red Hat Enterprise Linux CoreOS (RHCOS) vulnerability analysis and mitigation

Overview

CVE-2022-21708 affects graphql-go, a GraphQL server library focused on ease of use. The vulnerability was discovered and disclosed on January 21, 2022, affecting versions prior to 1.3.0. The issue exists in the library's MaxDepth validation functionality, which could allow attackers to cause stack overflow panics through specifically designed queries (NVD).

Technical details

The vulnerability stems from a bug in the MaxDepth schema option that fails to properly handle recursive fragment spreads in GraphQL queries. When processing queries with circular fragment references, the validation logic could enter an infinite recursion, leading to stack overflow panics. The issue has been assigned a CVSS v3.1 base score of 6.5 (Medium) with vector CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H (NVD).

Impact

The vulnerability allows any user with access to the GraphQL handler to send specially crafted queries that can cause stack overflow panics. This can potentially compromise the server's ability to serve data to its users, resulting in a denial of service condition (NVD).

Mitigation and workarounds

The vulnerability has been patched in version 1.3.0 of the library. Users are advised to upgrade to this version or later. As a temporary workaround, though not recommended, users can disable the graphql.MaxDepth option from their schema. However, this workaround may expose the application to other depth-related attacks (GitHub Advisory).

Additional resources


SourceThis report was generated using AI

Related Red Hat Enterprise Linux CoreOS (RHCOS) vulnerabilities:

CVE ID

Severity

Score

Technologies

Component name

CISA KEV exploit

Has fix

Published date

CVE-2025-40780HIGH8.6
  • Rocky LinuxRocky Linux
  • bindutils-libs
NoYesOct 22, 2025
CVE-2025-52565HIGH8.4
  • cAdvisorcAdvisor
  • k3s-1.32
NoYesNov 06, 2025
CVE-2025-8677HIGH7.5
  • Rocky LinuxRocky Linux
  • bind9.18-utils
NoYesOct 22, 2025
CVE-2025-52881HIGH7.3
  • cAdvisorcAdvisor
  • podman-fips
NoYesNov 06, 2025
CVE-2025-31133HIGH7.3
  • cAdvisorcAdvisor
  • python3-perf
NoYesNov 06, 2025

Free Vulnerability Assessment

Benchmark your Cloud Security Posture

Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.

Request assessment

Get a personalized demo

Ready to see Wiz in action?

"Best User Experience I have ever seen, provides full visibility to cloud workloads."
David EstlickCISO
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
Adam FletcherChief Security Officer
"We know that if Wiz identifies something as critical, it actually is."
Greg PoniatowskiHead of Threat and Vulnerability Management