CVE-2025-32032 — Vulnerability in apollo-router — CVE Details
Apollo Router Query Planner Vulnerable to Excessive Resource Consumption via Optimization Bypass
What Should I Do?
Address in Next Maintenance Window
Low exploitation probability (1.12%). Schedule for your next planned update.
Does your project use an affected apollo-router version?
Paste your Cargo.lock to check it for CVE-2025-32032 and every other known vulnerability, with CISA KEV and EPSS on each finding. Free with no signup for up to 10 packages, or up to 500 per scan with a free account, which also keeps up to 200 packages in saved projects.
Summary
Impact
Summary
A vulnerability in Apollo Router allowed queries with deeply nested and reused named fragments to be prohibitively expensive to query plan, specifically due to internal optimizations being frequently bypassed. This could lead to excessive resource consumption and denial of service.
Details
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 exhaust router's thread pool, rendering it inoperable.
Fix/Mitigation
- A new Query Optimization Limit metric has been added:
- This metric approximates the number of selections that cannot be skipped by the existing optimization.
- The metric is checked against a limit to prevent excessive computation.
Given the complexity of query planning optimizations, we will continue refining these solutions based on real-world performance and accuracy tests.
Patches
This has been remediated in apollo-router versions 1.61.2 and 2.1.1.
Workarounds
The only known workaround is "Safelisting" or "Safelisting with IDs only" per Safelisting with Persisted Queries - Apollo GraphQL Docs.
References
Acknowledgements
We appreciate the efforts of the security community in identifying and improving the performance and security of query planning mechanisms.
Advisory Timeline
- First published April 7, 2025 (598 days ago).
- Last revised April 8, 2025 — 1 day after initial publication.
Remediation
Upgrade to the fixed version using your package manager.
cargo update -p apollo-router --precise 1.61.2
cargo update -p apollo-router --precise 2.1.1
After upgrading, scan your dependencies again to confirm the vulnerability is resolved.
Affected Packages (2)
Affects 1 ecosystem: crates.io (1).
| Package | Fixed In |
|---|---|
| apollo-router crates.io · Affected: All versions | 1.61.2 |
| apollo-router crates.io · Affected: All versions | 2.1.1 |
Vulnerability Classification
Common Weakness Enumeration (CWE) identifiers for this vulnerability type.
- CWE-770Allocation of Resources Without LimitsMITRE
CVSS Score Breakdown
What the CVSS (Common Vulnerability Scoring System) 7.5 score means for each attack dimension.
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
References
- https://github.com/apollographql/router/security/advisories/GHSA-94hh-jmq8-2fgpWEB
- https://nvd.nist.gov/vuln/detail/CVE-2025-32032ADVISORY
- https://github.com/apollographql/router/commit/ab6675a63174715ea6ff50881fc957831d4e9564WEB
- https://github.com/apollographql/router/commit/bba032e183b861348a466d3123c7137a1ae18952WEB
- https://github.com/apollographql/routerPACKAGE
Frequently Asked Questions
- What is CVE-2025-32032?
- Apollo Router Query Planner Vulnerable to Excessive Resource Consumption via Optimization Bypass. This vulnerability has been assigned a severity rating of HIGH (CVSS score: 7.5/10).
- How do I check if my project is affected by CVE-2025-32032?
- CVE-2025-32032 affects apollo-router. It has a 1.1% probability of exploitation within 30 days (EPSS score). Use GeekWala's free vulnerability scanner to check your dependencies against CVE-2025-32032 and 200,000+ other known vulnerabilities.
Severity & Exploitability
Significant impact if exploited, or exploitable with modest effort.
This is an above-median EPSS score — 65.7% of tracked vulnerabilities score at or below it, putting its exploitation likelihood in the upper half of the tracked corpus.
Also Known As
Related CVEs
- CVE-2024-32971CRITICAL
Apollo Router vulnerable to Critical Regression In Query Plan Cache
- CVE-2025-32380HIGH
Apollo Router Query Validation Vulnerable to Excessive Resource Consumption via Named Fragment Processing
- CVE-2025-32034HIGH
Apollo Router Query Planner Vulnerable to Excessive Resource Consumption via Named Fragment Expansion
- CVE-2025-32033HIGH
Apollo Router Operation Limits Vulnerable to Bypass via Integer Overflow
- CVE-2025-64347HIGH
Apollo Router Improperly Enforces Renamed Access Control Directives
- CVE-2023-45812HIGH
Apollo Router vulnerable to Improper Check or Handling of Exceptional Conditions
- CVE-2025-64173HIGH
Apollo Router Affected by an Access Control Bypass on Polymorphic Types
- CVE-2024-43783HIGH
Apollo Router Coprocessors may cause Denial-of-Service when handling request bodies