# GHSA-52MM-32RV-3RPG: Unauthenticated remote use-after-free in graphql-c\_parser

- Database: GitHub
- Severity: CVSS 9.8 (Critical)
- Published: 2026-08-03
- Modified: 2026-08-03

## Affected versions

- graphql-c\_parser (RubyGems): fixed in 1.1.4

## Description

Use-after-free is possible `graphql-c_parser` if Bison moves GraphQL-Ruby AST nodes into the heap. Bison's heap is not scanned by Ruby's garbage collector, so if GC runs during this stage, Ruby determines those objects to be dead. Later, however, `graphql-c_parser` uses those objects again while continuing to parse. 

Patched versions use Bison's `YYSTACK_USE_ALLOCA 1` configuration to use stack memory instead.

This issue was reported by [PlatformSecurity](https://platformsecurity.com/).

## References

- https://github.com/rmosolgo/graphql-ruby/security/advisories/GHSA-52mm-32rv-3rpg

Page: https://cve.now/GHSA-52MM-32RV-3RPG

Wrong or missing data? Send feedback: POST https://cve.now/api/v1/feedback (see https://cve.now/agents#feedback).
