File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ ---
2+ gem : graphql-c_parser
3+ ghsa : 52mm-32rv-3rpg
4+ url : https://github.com/rmosolgo/graphql-ruby/security/advisories/GHSA-52mm-32rv-3rpg
5+ title : Unauthenticated remote use-after-free in graphql-c_parser
6+ date : 2024-08-03
7+ description : |
8+ Use-after-free is possible graphql-c_parser if Bison moves GraphQL-Ruby
9+ AST nodes into the heap. Bison's heap is not scanned by Ruby's garbage
10+ collector, so if GC runs during this stage, Ruby determines those
11+ objects to be dead. Later, however, graphql-c_parser uses those
12+ objects again while continuing to parse.
13+
14+ Patched versions use Bison's YYSTACK_USE_ALLOCA 1 configuration
15+ to use stack memory instead.
16+
17+ This issue was reported by PlatformSecurity.
18+ cvss_v3 : 9.8
19+ patched_versions :
20+ - " >= 1.1.4"
21+ related :
22+ url :
23+ - https://rubygems.org/gems/graphql-c_parser/versions/1.1.4
24+ - https://github.com/rmosolgo/graphql-ruby/blob/master/graphql-c_parser/CHANGELOG.md#114
25+ - https://github.com/rmosolgo/graphql-ruby/security/advisories/GHSA-52mm-32rv-3rpg
26+ notes : |
27+ - date from rubygems.org URL.
28+ - cvss_v3 from GHSA.
29+ - No CVE in GHSA url.
30+ - Note: gem name is "graphql-c_parser" but repo name is "graphql-ruby".
Original file line number Diff line number Diff line change 1+ ---
2+ gem : graphql
3+ ghsa : rmxg-5p3r-j6hh
4+ url : https://github.com/rmosolgo/graphql-ruby/security/advisories/GHSA-rmxg-5p3r-j6hh
5+ title : Unsafe Marshal deserialization in the parser cache
6+ can lead to arbitrary Ruby code execution
7+ date : 2026-08-17
8+ description : |
9+ GraphQL::Language::Cache#fetch reads parser cache files and passes
10+ their contents directly to Marshal.load without authenticating the
11+ payloads. If an attacker can place a crafted payload in the expected
12+ path and the application calls GraphQL::Language::Parser.parse_file,
13+ then attacker-controlled marshal_load or _load methods are executed,
14+ resulting in arbitrary Ruby code execution in the application process.
15+ unaffected_versions :
16+ - " < 1.12.6"
17+ patched_versions :
18+ - " >= 2.6.9"
19+ related :
20+ url :
21+ - https://rubygems.org/gems/graphql/versions/2.6.9
22+ - https://github.com/rmosolgo/graphql-ruby/blob/master/CHANGELOG.md#269-17-aug-2026
23+ - https://github.com/rmosolgo/graphql-ruby/compare/v2.6.8...v2.6.9
24+ - https://github.com/rmosolgo/graphql-ruby/security/advisories/GHSA-rmxg-5p3r-j6hh
25+ notes : |
26+ - date from rubygems.org URL.
27+ - GHSA Severity is "High".
28+ - No CVE in GHSA url.
29+ - Note: gem name is "graphql" but repo name is "graphql-ruby".
You can’t perform that action at this time.
0 commit comments