# CVE-2025-32031: Apollo Gateway Query Planner Vulnerable to Excessive Resource Consumption via Optimization Bypass

> CVE-2025-32031: Apollo Gateway Query Planner Vulnerable to Excessive Resource Consumption via Optimization Bypass. CVSS 7.5 (CVSS 3.1).

Canonical: https://rewindex.com/cve/CVE-2025-32031
Last updated: 2026-06-17T09:11:21Z

- Published: 2025-04-07 20:41 UTC · Updated: 2026-06-17 09:11 UTC · Assigner: GitHub\_M
- CVSS: 7.5 (CVSS 3.1) · Severity: High · Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
- EPSS: 0.59%, 48th percentile (scored 2026-10-25)
- CISA KEV: no
- CWE: CWE-770

## Description

Apollo Gateway provides utilities for combining multiple GraphQL microservices into a single GraphQL endpoint. Prior to 2.10.1, a vulnerability in Apollo Gateway allowed queries with deeply nested and reused named fragments to be prohibitively expensive to query plan, specifically due to internal optimizations being frequently bypassed. The query planner includes an optimization that significantly speeds up planning for applicable GraphQL selections. However, queries with deeply nested and reused named fragments can generate many selections where this optimization does not apply, leading to significantly longer planning times. Because the query planner does not enforce a timeout, a small number of such queries can render gateway inoperable. This could lead to excessive resource consumption and denial of service. This has been remediated in @apollo/gateway version 2.10.1.

## Affected vendors and products

- apollographql: federation

## Tracked companies

- [Apollo GraphQL](https://rewindex.com/company/apollo-graphql.md)

## References

- [CVE record on cve.org](https://www.cve.org/CVERecord?id=CVE-2025-32031)
- [NVD entry](https://nvd.nist.gov/vuln/detail/CVE-2025-32031)
- [https://github.com/apollographql/federation/pull/3236](https://github.com/apollographql/federation/pull/3236)
- [https://github.com/apollographql/federation/releases/tag/%40apollo%2Fgateway%402.10.1](https://github.com/apollographql/federation/releases/tag/%2540apollo%252Fgateway%25402.10.1)
- [https://github.com/apollographql/federation/security/advisories/GHSA-p2q6-pwh5-m6jr](https://github.com/apollographql/federation/security/advisories/GHSA-p2q6-pwh5-m6jr)

---

_Sources: CVE records from the CVE Program (cve.org). CVE® is a registered trademark of The MITRE Corporation. (https://www.cve.org/) This product uses data from the NVD API but is not endorsed or certified by the NVD. (https://nvd.nist.gov/) Known Exploited Vulnerabilities catalog from CISA. (https://www.cisa.gov/known-exploited-vulnerabilities-catalog) EPSS scores from FIRST (Exploit Prediction Scoring System). (https://www.first.org/epss/)_


---
Canonical: https://rewindex.com/cve/CVE-2025-32031 · Markdown: https://rewindex.com/cve/CVE-2025-32031.md · JSON: https://rewindex.com/api/v1/cves/CVE-2025-32031 · Data licensed CC BY 4.0 (https://creativecommons.org/licenses/by/4.0/) · Generated 2026-10-26T04:04:07.076Z
