Skip to content

Commit ce9cf4a

Browse files
authored
Merge pull request #1233 from jasnow/new-graphql-advs
Two new graphql-related advisories @simi - Thanks for reviewing and approving this PR.
2 parents 4fe0569 + a25e4b6 commit ce9cf4a

2 files changed

Lines changed: 59 additions & 0 deletions

File tree

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
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".
Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
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".

0 commit comments

Comments
 (0)