
Cloud Vulnerability DB
A community-led vulnerabilities database
GraphQL Java before version 19.0 is vulnerable to Denial of Service (CVE-2022-37734). The vulnerability allows an attacker to send a malicious GraphQL query that consumes CPU resources. The issue was discovered in July 2022 and publicly disclosed in September 2022. The vulnerability affects all versions of graphql-java library prior to version 19.0, with fixed versions being 19.0 and later, 18.3, and 17.4 (GitHub Discussion).
The vulnerability stems from inefficient processing of directives in GraphQL queries. When processing queries with a large number of directives (e.g., @aa repeated thousands of times), the execution time increases linearly with the number of directives. For example, 5,000 directives took 445ms to process, while 70,000 directives took 6,788ms, showing a clear performance degradation pattern. The issue was specifically related to the ANTLR Lexer's greedy nature in processing tokens, causing significant CPU consumption (GitHub Issue).
The vulnerability can be exploited to cause a Denial of Service condition by consuming excessive CPU resources on the server. When exploited, the attack can significantly degrade system performance and potentially make the service unavailable to legitimate users (NVD).
The primary mitigation is to upgrade to a fixed version of graphql-java. The following versions contain the fix: version 19.0 or later, version 18.3, or version 17.4. The fix implements token counting checks in the lexer to stop processing early when malicious input is detected, preventing the DOS condition (GitHub Discussion).
The vulnerability was initially reported through GitHub issues and was quickly addressed by the GraphQL Java team. The fix was backported to multiple versions to ensure wider coverage for users who couldn't immediately upgrade to the latest version. The community response led to the creation of CVE-2022-37734, and various security advisories were published to alert users (Red Hat Advisory).
Source: This report was generated using AI
Free Vulnerability Assessment
Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.
Get a personalized demo
"Best User Experience I have ever seen, provides full visibility to cloud workloads."
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
"We know that if Wiz identifies something as critical, it actually is."