CVE-2025-32030: Apollo Gateway Query Planner Vulnerable to Excessive Resource Consumption via Named Fragment Expansion

Published Apr 7, 2025
·
Updated

Impact

Summary

A vulnerability in Apollo Gateway allowed queries with deeply nested and reused named fragments to be prohibitively expensive to query plan, specifically during named fragment expansion. This could lead to excessive resource consumption and denial of service.

Details

Named fragments were being expanded once per fragment spread during query planning, leading to exponential resource usage when deeply nested and reused fragments were involved.

Fix/Mitigation

A new Query Fragment Expansion Limit metric has been introduced: - This metric computes the number of selections a query would have if its fragment spreads were fully expanded. - The metric is checked against a limit to prevent excessive computation.

Patches

This has been remediated in @apollo/gateway version 2.10.1.

Workarounds

No known direct workarounds exist.

References

Query Planning Documentation

Acknowledgements

We appreciate the efforts of the security community in identifying and improving the performance and security of query planning mechanisms.

Other sources

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 during named fragment expansion. Named fragments were being expanded once per fragment spread during query planning, leading to exponential resource usage when deeply nested and reused fragments were involved. This could lead to excessive resource consumption and denial of service. This has been remediated in @apollo/gateway version 2.10.1.

MITRE

Affected Software

3 affected componentsFixes available
Apollo Gateway<2.10.1
npm/@apollo/gateway<2.10.1
2.10.1
apollographql Apollo Gateway Node.js<2.10.1

Event History

Apr 7, 2025
Advisory Published
via GitHub·07:03 PM
CVE Published
via MITRE·08:38 PM
Data Sourced
via MITRE·08:38 PM
DescriptionSeverityWeakness
Data Sourced
via NVD·09:15 PM
DescriptionSeverityWeakness
Data Sourced
via NVD·09:15 PM
RemedyAffected Software

Frequently Asked Questions

1

What is the severity of CVE-2025-32030?

The severity of CVE-2025-32030 is categorized based on its potential impact on system performance and availability.

2

How do I fix CVE-2025-32030?

To fix CVE-2025-32030, upgrade Apollo Gateway to version 2.10.1 or later.

3

What type of attack does CVE-2025-32030 involve?

CVE-2025-32030 involves performance degradation through expensive query planning due to deeply nested and reused named fragments.

4

Which versions of Apollo Gateway are affected by CVE-2025-32030?

Versions of Apollo Gateway prior to 2.10.1 are affected by CVE-2025-32030.

5

Is CVE-2025-32030 easy to exploit?

Exploitation of CVE-2025-32030 could lead to significant resource consumption, affecting the system's performance.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203