CVE-2025-27407CWE-94

Remote code execution when loading a crafted GraphQL schema

Critical · published March 12, 2025

CVSS v3.1
9.1
EPSS
3%
Percentile
87.7
In the wild
Unconfirmed
What it is

🔥 Loading a malicious schema can spell disaster! If your app uses graphql-ruby versions 1.11.5 to 1.11.8, 1.12.25, or 2.3.21, you’re at risk of remote code execution! ⚠️ Think of this vulnerability like a restaurant allowing delivery drivers to drop off meals without checking the orders. If the kitchen blindly accepts whatever the driver hands over, who knows what surprise ingredients might land on the menu? An attacker could exploit this flaw to run any code on your server, gaining access to sensitive data, changing application logic, or even taking down the whole system. This could lead to an absolute nightmare scenario for your users and your reputation!

Put simply

Think of this vulnerability like a restaurant allowing delivery drivers to drop off meals without checking the orders. If the kitchen blindly accepts whatever the driver hands over, who knows what surprise ingredients might land on the menu? This vulnerability in graphql-ruby allows an attacker to load a malicious schema definition through `GraphQL::Schema.from_introspection`, enabling remote code execution on any system that loads schemas from untrusted sources.

What to do

An attacker could exploit this flaw to run any code on your server, gaining access to sensitive data, changing application logic, or even taking down the whole system. This could lead to an absolute nightmare scenario for your users and your reputation! To safeguard your application, upgrade to versions 1.11.8, 1.12.25, 1.13.24, 2.0.32, 2.1.14, 2.2.17, or 2.3.21, where the issue has been patched. Additionally, avoid loading schemas from untrusted sources to minimize exposure. You've got this! Follow these steps, and you'll lock it down in no time! 🛡️

The record
Technical detail
CVSS v3.1
9.1 · CRITICAL
Vector
CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:C/C:H/I:H/A:H
CVSS v4.0
Not supplied
EPSS
0.03102 · 87.7th percentile
Weakness
CWE-94 · Improper Control of Generation of Code ('Code Injection')
Published
2025-03-12T18:15Z
EPSS history
Timeline
  • 12 MAR 18:15Z
    Remote code execution when loading a crafted GraphQL schema
    cvelistv5