Webonyx graphql-php
webonyx graphql-php: Unbounded recursion in parser causes stack overflow on crafted nested input
webonyx graphql-php is a PHP implementation of the GraphQL specification. Prior to 15.32.3, GraphQL\Language\Parser performs recursive descent without a recursion limit in parseSelectionSet, parseValueLiteral, and parseTypeReference. A remote attacker can submit deeply nested selection sets, object or list values, or list types that exhaust the PHP process stack during pre-validation parsing, before query validation and complexity controls run. The resulting SIGSEGV can terminate PHP-FPM workers or long-running Swoole, RoadRunner, ReactPHP, or CLI processes and cannot be caught by application-level exception handling. This issue is fixed in version 15.32.3.
Affected versions and mitigation
From the CVE record and the vendor's references.Affected
- < 15.32.3
Fixed in 15.32.3
Mitigation
Upgrade graphql-php to 15.32.3 or later.
References
- Vendor advisory github.com/webonyx/graphql-php/security/adviso…
- Patch github.com/webonyx/graphql-php/commit/6c1d6009…
- Patch github.com/webonyx/graphql-php/commit/7b7f2080…
1 more
- Release notes github.com/webonyx/graphql-php/releases/tag/v1…
Timeline
Days relative to CVE publicationNo public PoC found yet; not in CISA KEV.
PoC repositories
Found on GitHub.No PoC repositories found yet.