{"id":"GHSA-v23w-pppm-jh66","summary":"Silverstripe GraphQL has DDOS Vulnerability due to lack of protection against recursive queries","details":"### Impact\nAn attacker could use a recursive graphql query to execute a Distributed Denial of Service attack (DDOS attack) against a website. This mostly affects websites with publicly exposed graphql schemas.\n\nIf your Silverstripe CMS project does not expose a public facing graphql schema, a user account is required to trigger the DDOS attack. If your site is hosted behind a content delivery network (CDN), such as Imperva or CloudFlare, this may further mitigate the risk.\n\nThe fix includes some new configuration options which you might want to tweak for your project, based on your own requirements. See the documentation in the references for details.\n\n### Patches\nPatched in [3.8.2](https://github.com/silverstripe/silverstripe-graphql/releases/tag/3.8.2), [4.1.3](https://github.com/silverstripe/silverstripe-graphql/releases/tag/4.1.3), [4.2.5](https://github.com/silverstripe/silverstripe-graphql/releases/tag/4.2.5), [4.3.4](https://github.com/silverstripe/silverstripe-graphql/releases/tag/4.3.4), [5.0.3](https://github.com/silverstripe/silverstripe-graphql/releases/tag/5.0.3)\n\n### References\n- [CVE-2023-40180 on silverstripe.org](https://www.silverstripe.org/download/security-releases/CVE-2023-40180)\n- [Documentation about protection against recursive or complex queries for silverstripe/graphql 4.x/5.x](https://docs.silverstripe.org/en/developer_guides/graphql/security_and_best_practices/recursive_or_complex_queries)\n- [Documentation about protection against recursive or complex queries for silverstripe/graphql 3.x](https://github.com/silverstripe/silverstripe-graphql/tree/3.8#recursive-or-complex-queries)\n\n### Reported by\nJason Nguyen from phew (https://phew.co.nz/)","aliases":["CVE-2023-40180"],"modified":"2026-09-10T03:49:24.674584952Z","published":"2023-10-17T13:48:17Z","database_specific":{"severity":"HIGH","github_reviewed":true,"github_reviewed_at":"2023-10-17T13:48:17Z","nvd_published_at":"2023-10-16T19:15:10Z","cwe_ids":["CWE-400"]},"references":[{"type":"WEB","url":"https://github.com/silverstripe/silverstripe-graphql/security/advisories/GHSA-v23w-pppm-jh66"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2023-40180"},{"type":"WEB","url":"https://github.com/silverstripe/silverstripe-graphql/commit/f6d5976ec4608e51184b0db1ee5b9e9a99d2501c"},{"type":"WEB","url":"https://docs.silverstripe.org/en/developer_guides/graphql/security_and_best_practices/recursive_or_complex_queries"},{"type":"WEB","url":"https://github.com/FriendsOfPHP/security-advisories/blob/master/silverstripe/graphql/CVE-2023-40180.yaml"},{"type":"PACKAGE","url":"https://github.com/silverstripe/silverstripe-graphql"},{"type":"WEB","url":"https://github.com/silverstripe/silverstripe-graphql/tree/3.8#recursive-or-complex-queries"},{"type":"WEB","url":"https://www.silverstripe.org/download/security-releases/CVE-2023-40180"}],"affected":[{"package":{"name":"silverstripe/graphql","ecosystem":"Packagist","purl":"pkg:composer/silverstripe/graphql"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"3.0.0"},{"fixed":"3.8.2"}]}],"versions":["3.0.0","3.0.1","3.0.2","3.0.3","3.0.4","3.1.0","3.1.0-rc1","3.1.1","3.1.2","3.1.3","3.1.4","3.1.5","3.2.0","3.2.0-alpha1","3.2.0-rc1","3.2.0-rc2","3.2.1","3.2.2","3.2.3","3.2.4","3.3.0","3.3.0-beta1","3.3.0-rc1","3.4.0","3.4.0-beta1","3.4.0-rc1","3.4.1","3.5.0","3.5.0-beta1","3.5.0-rc1","3.5.1","3.5.2","3.6.0","3.6.0-alpha1","3.6.0-alpha2","3.6.0-beta1","3.6.0-rc1","3.7.0","3.7.1","3.7.2","3.8.0","3.8.1"],"database_specific":{"source":"https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2023/10/GHSA-v23w-pppm-jh66/GHSA-v23w-pppm-jh66.json"}},{"package":{"name":"silverstripe/graphql","ecosystem":"Packagist","purl":"pkg:composer/silverstripe/graphql"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"4.0.0"},{"fixed":"4.1.3"}]}],"versions":["4.0.0","4.0.1","4.0.2","4.1.0","4.1.0-beta1","4.1.0-rc1","4.1.1","4.1.2"],"database_specific":{"source":"https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2023/10/GHSA-v23w-pppm-jh66/GHSA-v23w-pppm-jh66.json"}},{"package":{"name":"silverstripe/graphql","ecosystem":"Packagist","purl":"pkg:composer/silverstripe/graphql"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"4.2.0"},{"fixed":"4.2.5"}]}],"versions":["4.2.0","4.2.1","4.2.2","4.2.3","4.2.4"],"database_specific":{"source":"https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2023/10/GHSA-v23w-pppm-jh66/GHSA-v23w-pppm-jh66.json"}},{"package":{"name":"silverstripe/graphql","ecosystem":"Packagist","purl":"pkg:composer/silverstripe/graphql"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"4.3.0"},{"fixed":"4.3.4"}]}],"versions":["4.3.0","4.3.1","4.3.2","4.3.3"],"database_specific":{"source":"https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2023/10/GHSA-v23w-pppm-jh66/GHSA-v23w-pppm-jh66.json"}},{"package":{"name":"silverstripe/graphql","ecosystem":"Packagist","purl":"pkg:composer/silverstripe/graphql"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"5.0.0"},{"fixed":"5.0.3"}]}],"versions":["5.0.0","5.0.1","5.0.2"],"database_specific":{"source":"https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2023/10/GHSA-v23w-pppm-jh66/GHSA-v23w-pppm-jh66.json"}}],"schema_version":"1.9.0","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H"}]}