Arbitrary Code Injection Affecting ruby-graphql package, versions <2.2.17-1


Severity

Recommended
low

Based on default assessment until relevant scores are available.

Threat Intelligence

EPSS
3.1% (89th percentile)

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications
  • Snyk IDSNYK-DEBIANUNSTABLE-RUBYGRAPHQL-9404195
  • published14 Mar 2025
  • disclosed12 Mar 2025

Introduced: 12 Mar 2025

CVE-2025-27407  (opens in a new tab)
CWE-94  (opens in a new tab)

How to fix?

Upgrade Debian:unstable ruby-graphql to version 2.2.17-1 or higher.

NVD Description

Note: Versions mentioned in the description apply only to the upstream ruby-graphql package and not the ruby-graphql package as distributed by Debian. See How to fix? for Debian:unstable relevant fixed versions and status.

graphql-ruby is a Ruby implementation of GraphQL. Starting in version 1.11.5 and prior to versions 1.11.8, 1.12.25, 1.13.24, 2.0.32, 2.1.14, 2.2.17, and 2.3.21, loading a malicious schema definition in GraphQL::Schema.from_introspection (or GraphQL::Schema::Loader.load) can result in remote code execution. Any system which loads a schema by JSON from an untrusted source is vulnerable, including those that use GraphQL::Client to load external schemas via GraphQL introspection. Versions 1.11.8, 1.12.25, 1.13.24, 2.0.32, 2.1.14, 2.2.17, and 2.3.21 contain a patch for the issue.

CVSS Base Scores

version 3.1