Vulnerability DatabaseGHSA-hq2r-87c2-972j

GHSA-hq2r-87c2-972j: 
Rust vulnerability analysis and mitigation

Summary

Operation variable definitions remain a slice scanned twice for each argument variable reference. Both invalid duplicate arguments and a valid flat operation with many uniquely aliased field uses yield N references against N definitions, causing quadratic validation CPU before resolver execution.

Details

Variable uses in field, directive, and nested value validation repeatedly search operation variable definitions linearly; the same lookup also occurs in root argument coercion. Duplicate argument rejection does not short-circuit the repeated scans, but valid aliased uses reach the same issue.

Source locations

Remediation

Build a variable-definition index once per operation and reuse it in field, directive, nested value validation, and root argument coercion. Test both a valid alias-heavy operation and an invalid duplicate-argument operation with many variables; preserve the duplicate-argument error. Enforce a query-size budget as an additional bound on validation work. Finding ID: csf_c5ea442b2e8239ddff9c5359 Primary fingerprint: codex-security/v1:sha256:759eb6baeef7aafdd4edd071b38318762c3046677a96c7e0e13ac8bd95d8b87e Source revision: c70a100fae8068a9dd3dd5a76608adf2d6d9f2ca

Proof of concept

A document can define unique variables and reuse them across semantically duplicate arguments of one valid field. The duplicate check only records errors; the subsequent argument loop searches the full variable definition slice twice for each reference, yielding O(N²) work before rejection. A valid query can declare N String! variables and select N distinct aliases of the shipped hello(name: String!) field, each using a variable near the end of the definition list. Field validation invokes two O(N) searches per selection. The document has O(N) syntactic elements but validation performs O(N²) variable comparisons. The default parser has no token ceiling; an HTTP adapter's body limit bounds bytes but does not eliminate the superlinear work. An additional source trace identifies one valid list argument with N variable references; each nested value scans the N definitions. Inspect the linked paths at commit c70a100fae8068a9dd3dd5a76608adf2d6d9f2ca. This scan did not execute an exploit or test a deployed service.

Impact

Quadratic CPU use can stall request workers with a compact invalid query. Prerequisites: The HTTP adapters pass accepted query text to runtime request validation, which invokes executable validation before dispatch. The same validation is available through the public compiler API. The public GraphQL request parser/validator processes client-controlled operation text. The shipped example schema has hello(name: String!), sufficient for the flat alias pattern; service network reachability remains host-dependent. Validation limits: No runtime timing or request execution was performed. No timing or resource-exhaustion reproduction was performed. No runtime timing or memory benchmark was performed. Exposure depends on an application schema with a list argument and its route configuration.


Source: NVD

Related Rust vulnerabilities:

CVE ID

Severity

Score

Technologies

Component name

CISA KEV exploit

Has fix

Published date

CVE-2026-135897MEDIUM5.7
  • Rust logoRust
  • mongodb
NoYesNov 25, 2026
GHSA-9gx9-5rq5-8523HIGHN/A
  • Rust logoRust
  • necrassrs
NoYesNov 25, 2026
GHSA-hq2r-87c2-972jHIGHN/A
  • Rust logoRust
  • reed-compiler
NoYesNov 25, 2026
GHSA-x8vc-9h5c-gh55LOWN/A
  • Rust logoRust
  • kulyrax-adapter-elasticsearch
NoYesNov 25, 2026
GHSA-6chh-gx4c-448gHIGHN/A
  • Rust logoRust
  • kulyrax-core
NoYesNov 25, 2026

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

Additional Wiz resources

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