graphql-core 検証処理の計算量悪用によりサービス拒否の恐れ
Summary
graphql-core の OverlappingFieldsCanBeMerged 検証ルールに、小さなクエリで処理時間が二次関数的に増大する問題が見つかりました。細工された数百キロバイト程度のドキュメントで、検証段階でCPUを長時間占有され、サービス拒否の状態になるおそれがあります。pip 向けの graphql-core は 3.3.0rc1 以降で修正されているため、3.3.0rc1 以降へ更新してください。
AI summary
Produced by SecPulse using an external AI model; it may contain mistakes. Check the original description and references below before acting on it.
graphql-core の OverlappingFieldsCanBeMerged 検証ルールに、小さなクエリで処理時間が二次関数的に増大する問題が見つかりました。細工された数百キロバイト程度のドキュメントで、検証段階でCPUを長時間占有され、サービス拒否の状態になるおそれがあります。pip 向けの graphql-core は 3.3.0rc1 以降で修正されているため、3.3.0rc1 以降へ更新してください。
Affected packages
| Package | Affected → Fixed | |
|---|---|---|
| graphql-pythongraphql-core | — | Not listed |
| pipgraphql-core |
< 3.3.0rc1→ 3.3.0rc1 |
3.3.0rc1 |
| PyPIgraphql-core |
≥ 3.3.0a1, < 3.3.0rc1→ 3.3.0rc1 |
3.3.0rc1 |
Fix status by distribution
Records published by each distribution for this CVE. Fixed versions differ by release; check each link.
- Debian DEBIAN-CVE-2026-75507 graphql-core Fix available
- Ubuntu UBUNTU-CVE-2026-75507 graphql-core No fixed version in this record
Original description The description as published by the source.
GraphQL-core is a Python port of the GraphQL.js reference implementation. From 3.0.0 until 3.2.12 and 3.3.0rc1, the OverlappingFieldsCanBeMerged rule in specified_rules repeatedly compares fields that share response names and recursively re-compares flattened inline fragments during the validation phase. The prior named-fragment memoization does not cover this path, so nested repeated inline fragments can drive quadratic and worst-case O(n²·m²) CPU work before any resolver or AST-based depth or complexity control runs. An unauthenticated remote attacker can submit a shallow, highly compressible GraphQL query that pins a worker process and can saturate a multi-worker service. This issue is fixed in versions 3.2.12 and 3.3.0rc1.
Source: CVE.org (CVE Program・cvelistV5) NVD GitHub Advisory
References
- advisory github.com
- advisory github.com
- advisory nvd.nist.gov
- package github.com
- patch github.com
- patch github.com
- REDHAT Red Hat
- web github.com
- web github.com
- web github.com