From 26550fd96007020f9f0ea78182f22022600111f2 Mon Sep 17 00:00:00 2001 From: "advisory-database[bot]" <45398580+advisory-database[bot]@users.noreply.github.com> Date: Mon, 7 Apr 2025 19:05:16 +0000 Subject: [PATCH] Publish Advisories GHSA-p2q6-pwh5-m6jr GHSA-q2f9-x4p4-7xmh --- .../GHSA-p2q6-pwh5-m6jr.json | 63 +++++++++++++++++++ .../GHSA-q2f9-x4p4-7xmh.json | 63 +++++++++++++++++++ 2 files changed, 126 insertions(+) create mode 100644 advisories/github-reviewed/2025/04/GHSA-p2q6-pwh5-m6jr/GHSA-p2q6-pwh5-m6jr.json create mode 100644 advisories/github-reviewed/2025/04/GHSA-q2f9-x4p4-7xmh/GHSA-q2f9-x4p4-7xmh.json diff --git a/advisories/github-reviewed/2025/04/GHSA-p2q6-pwh5-m6jr/GHSA-p2q6-pwh5-m6jr.json b/advisories/github-reviewed/2025/04/GHSA-p2q6-pwh5-m6jr/GHSA-p2q6-pwh5-m6jr.json new file mode 100644 index 00000000000..bdfeeda513b --- /dev/null +++ b/advisories/github-reviewed/2025/04/GHSA-p2q6-pwh5-m6jr/GHSA-p2q6-pwh5-m6jr.json @@ -0,0 +1,63 @@ +{ + "schema_version": "1.4.0", + "id": "GHSA-p2q6-pwh5-m6jr", + "modified": "2025-04-07T19:03:16Z", + "published": "2025-04-07T19:03:16Z", + "aliases": [], + "summary": "Apollo Gateway Query Planner Vulnerable to Excessive Resource Consumption via Optimization Bypass", + "details": "# Impact\n\n## Summary\n\nA 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. This could lead to excessive resource consumption and denial of service.\n\n## Details\n\nThe 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.\n\n## Fix/Mitigation\n\n- A new **Query Optimization Limit** metric has been added:\n - This metric approximates the number of selections that cannot be skipped by the existing optimization.\n - The metric is checked against a limit to prevent excessive computation.\n\nGiven the complexity of query planning optimizations, we will continue refining these solutions based on real-world performance and accuracy tests.\n\n# Patches\n\nThis has been remediated in `@apollo/gateway` version 2.10.1.\n\n# Workarounds\n\nNo known direct workarounds exist.\n\n# References\n\n[Query Planning Documentation](https://www.apollographql.com/docs/graphos/reference/federation/query-plans)\n\n## Acknowledgements\n\nWe appreciate the efforts of the security community in identifying and improving the performance and security of query planning mechanisms.", + "severity": [ + { + "type": "CVSS_V3", + "score": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H" + } + ], + "affected": [ + { + "package": { + "ecosystem": "npm", + "name": "@apollo/gateway" + }, + "ranges": [ + { + "type": "ECOSYSTEM", + "events": [ + { + "introduced": "0" + }, + { + "fixed": "2.10.1" + } + ] + } + ] + } + ], + "references": [ + { + "type": "WEB", + "url": "https://github.com/apollographql/federation/security/advisories/GHSA-p2q6-pwh5-m6jr" + }, + { + "type": "WEB", + "url": "https://github.com/apollographql/federation/pull/3236" + }, + { + "type": "PACKAGE", + "url": "https://github.com/apollographql/federation" + }, + { + "type": "WEB", + "url": "https://github.com/apollographql/federation/releases/tag/%40apollo%2Fgateway%402.10.1" + } + ], + "database_specific": { + "cwe_ids": [ + "CWE-770" + ], + "severity": "HIGH", + "github_reviewed": true, + "github_reviewed_at": "2025-04-07T19:03:16Z", + "nvd_published_at": null + } +} \ No newline at end of file diff --git a/advisories/github-reviewed/2025/04/GHSA-q2f9-x4p4-7xmh/GHSA-q2f9-x4p4-7xmh.json b/advisories/github-reviewed/2025/04/GHSA-q2f9-x4p4-7xmh/GHSA-q2f9-x4p4-7xmh.json new file mode 100644 index 00000000000..532eccf2711 --- /dev/null +++ b/advisories/github-reviewed/2025/04/GHSA-q2f9-x4p4-7xmh/GHSA-q2f9-x4p4-7xmh.json @@ -0,0 +1,63 @@ +{ + "schema_version": "1.4.0", + "id": "GHSA-q2f9-x4p4-7xmh", + "modified": "2025-04-07T19:03:10Z", + "published": "2025-04-07T19:03:10Z", + "aliases": [], + "summary": "Apollo Gateway Query Planner Vulnerable to Excessive Resource Consumption via Named Fragment Expansion", + "details": "# Impact\n\n## Summary\n\nA 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.\n\n## Details\n\nNamed fragments were being expanded once per fragment spread during query planning, leading to exponential resource usage when deeply nested and reused fragments were involved.\n\n## Fix/Mitigation\n\nA new **Query Fragment Expansion Limit** metric has been introduced:\n - This metric computes the number of selections a query would have if its fragment spreads were fully expanded.\n - The metric is checked against a limit to prevent excessive computation.\n\n# Patches\n\nThis has been remediated in `@apollo/gateway` version 2.10.1.\n\n# Workarounds\n\nNo known direct workarounds exist.\n\n# References\n\n[Query Planning Documentation](https://www.apollographql.com/docs/graphos/reference/federation/query-plans)\n\n## Acknowledgements\n\nWe appreciate the efforts of the security community in identifying and improving the performance and security of query planning mechanisms.", + "severity": [ + { + "type": "CVSS_V3", + "score": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H" + } + ], + "affected": [ + { + "package": { + "ecosystem": "npm", + "name": "@apollo/gateway" + }, + "ranges": [ + { + "type": "ECOSYSTEM", + "events": [ + { + "introduced": "0" + }, + { + "fixed": "2.10.1" + } + ] + } + ] + } + ], + "references": [ + { + "type": "WEB", + "url": "https://github.com/apollographql/federation/security/advisories/GHSA-q2f9-x4p4-7xmh" + }, + { + "type": "WEB", + "url": "https://github.com/apollographql/federation/pull/3236" + }, + { + "type": "PACKAGE", + "url": "https://github.com/apollographql/federation" + }, + { + "type": "WEB", + "url": "https://github.com/apollographql/federation/releases/tag/%40apollo%2Fgateway%402.10.1" + } + ], + "database_specific": { + "cwe_ids": [ + "CWE-770" + ], + "severity": "HIGH", + "github_reviewed": true, + "github_reviewed_at": "2025-04-07T19:03:10Z", + "nvd_published_at": null + } +} \ No newline at end of file