The SentinelOne Annual Threat Report - A Defenders Guide from the FrontlinesThe SentinelOne Annual Threat ReportGet the Report
Experiencing a Breach?Blog
Get StartedContact Us
SentinelOne
  • Platform
    Platform Overview
    • Singularity Platform
      Welcome to Integrated Enterprise Security
    • AI for Security
      Leading the Way in AI-Powered Security Solutions
    • Securing AI
      Accelerate AI Adoption with Secure AI Tools, Apps, and Agents.
    • How It Works
      The Singularity XDR Difference
    • Singularity Marketplace
      One-Click Integrations to Unlock the Power of XDR
    • Pricing & Packaging
      Comparisons and Guidance at a Glance
    Data & AI
    • Purple AI
      Accelerate SecOps with Generative AI
    • Singularity Hyperautomation
      Easily Automate Security Processes
    • AI-SIEM
      The AI SIEM for the Autonomous SOC
    • Singularity Data Lake
      AI-Powered, Unified Data Lake
    • Singularity Data Lake for Log Analytics
      Seamlessly Ingest Data from On-Prem, Cloud or Hybrid Environments
    Endpoint Security
    • Singularity Endpoint
      Autonomous Prevention, Detection, and Response
    • Singularity XDR
      Native & Open Protection, Detection, and Response
    • Singularity RemoteOps Forensics
      Orchestrate Forensics at Scale
    • Singularity Threat Intelligence
      Comprehensive Adversary Intelligence
    • Singularity Vulnerability Management
      Application & OS Vulnerability Management
    • Singularity Identity
      Identity Threat Detection and Response
    Cloud Security
    • Singularity Cloud Security
      Block Attacks with an AI-Powered CNAPP
    • Singularity Cloud Native Security
      Secure Cloud and Development Resources
    • Singularity Cloud Workload Security
      Real-Time Cloud Workload Protection Platform
    • Singularity Cloud Data Security
      AI-Powered Threat Detection for Cloud Storage
    • Singularity Cloud Security Posture Management
      Detect and Remediate Cloud Misconfigurations
    Securing AI
    • Prompt Security
      Secure AI Tools Across Your Enterprise
  • Why SentinelOne?
    Why SentinelOne?
    • Why SentinelOne?
      Cybersecurity Built for What’s Next
    • Our Customers
      Trusted by the World’s Leading Enterprises
    • Industry Recognition
      Tested and Proven by the Experts
    • About Us
      The Industry Leader in Autonomous Cybersecurity
    Compare SentinelOne
    • Arctic Wolf
    • Broadcom
    • CrowdStrike
    • Cybereason
    • Microsoft
    • Palo Alto Networks
    • Sophos
    • Splunk
    • Trellix
    • Trend Micro
    • Wiz
    Verticals
    • Energy
    • Federal Government
    • Finance
    • Healthcare
    • Higher Education
    • K-12 Education
    • Manufacturing
    • Retail
    • State and Local Government
  • Services
    Managed Services
    • Managed Services Overview
      Wayfinder Threat Detection & Response
    • Threat Hunting
      World-Class Expertise and Threat Intelligence
    • Managed Detection & Response
      24/7/365 Expert MDR Across Your Entire Environment
    • Incident Readiness & Response
      DFIR, Breach Readiness, & Compromise Assessments
    Support, Deployment, & Health
    • Technical Account Management
      Customer Success with Personalized Service
    • SentinelOne GO
      Guided Onboarding & Deployment Advisory
    • SentinelOne University
      Live and On-Demand Training
    • Services Overview
      Comprehensive Solutions for Seamless Security Operations
    • SentinelOne Community
      Community Login
  • Partners
    Our Network
    • MSSP Partners
      Succeed Faster with SentinelOne
    • Singularity Marketplace
      Extend the Power of S1 Technology
    • Cyber Risk Partners
      Enlist Pro Response and Advisory Teams
    • Technology Alliances
      Integrated, Enterprise-Scale Solutions
    • SentinelOne for AWS
      Hosted in AWS Regions Around the World
    • Channel Partners
      Deliver the Right Solutions, Together
    • SentinelOne for Google Cloud
      Unified, Autonomous Security Giving Defenders the Advantage at Global Scale
    • Partner Locator
      Your Go-to Source for Our Top Partners in Your Region
    Partner Portal→
  • Resources
    Resource Center
    • Case Studies
    • Data Sheets
    • eBooks
    • Reports
    • Videos
    • Webinars
    • Whitepapers
    • Events
    View All Resources→
    Blog
    • Feature Spotlight
    • For CISO/CIO
    • From the Front Lines
    • Identity
    • Cloud
    • macOS
    • SentinelOne Blog
    Blog→
    Tech Resources
    • SentinelLABS
    • Ransomware Anthology
    • Cybersecurity 101
  • About
    About SentinelOne
    • About SentinelOne
      The Industry Leader in Cybersecurity
    • Investor Relations
      Financial Information & Events
    • SentinelLABS
      Threat Research for the Modern Threat Hunter
    • Careers
      The Latest Job Opportunities
    • Press & News
      Company Announcements
    • Cybersecurity Blog
      The Latest Cybersecurity Threats, News, & More
    • FAQ
      Get Answers to Our Most Frequently Asked Questions
    • DataSet
      The Live Data Platform
    • S Foundation
      Securing a Safer Future for All
    • S Ventures
      Investing in the Next Generation of Security, Data and AI
  • Pricing
Get StartedContact Us
CVE Vulnerability Database
Vulnerability Database/CVE-2025-27407

CVE-2025-27407: graphql-ruby RCE Vulnerability

CVE-2025-27407 is a remote code execution flaw in graphql-ruby affecting schema loading from untrusted sources. Attackers can exploit malicious JSON schemas to execute arbitrary code. This article covers technical details, affected versions, impact, and mitigation strategies.

Updated: January 22, 2026

CVE-2025-27407 Overview

CVE-2025-27407 is a critical Remote Code Execution (RCE) vulnerability in graphql-ruby, a popular Ruby implementation of GraphQL. The vulnerability exists in the schema loading functionality, specifically in GraphQL::Schema.from_introspection and GraphQL::Schema::Loader.load methods. When a malicious schema definition is loaded from an untrusted source, attackers can achieve arbitrary code execution on the target system.

This vulnerability is particularly dangerous for applications that dynamically load GraphQL schemas from external sources, including those using GraphQL::Client to fetch schemas via GraphQL introspection. The attack can be executed over the network without authentication, making it a significant supply chain security risk.

Critical Impact

Remote code execution through malicious GraphQL schema injection allows attackers to fully compromise systems that load untrusted schema definitions, potentially leading to complete system takeover.

Affected Products

  • graphql-ruby versions 1.11.5 through 1.11.7
  • graphql-ruby versions 1.12.0 through 1.12.24
  • graphql-ruby versions 1.13.0 through 1.13.23
  • graphql-ruby versions 2.0.0 through 2.0.31
  • graphql-ruby versions 2.1.0 through 2.1.13
  • graphql-ruby versions 2.2.0 through 2.2.16
  • graphql-ruby versions 2.3.0 through 2.3.20
  • GitLab versions prior to 17.9.2

Discovery Timeline

  • 2025-03-12 - CVE-2025-27407 published to NVD
  • 2025-11-03 - Last updated in NVD database

Technical Details for CVE-2025-27407

Vulnerability Analysis

This vulnerability is classified as CWE-94 (Improper Control of Generation of Code), commonly known as Code Injection. The flaw resides in how graphql-ruby processes schema definitions during the introspection loading phase. When an application uses GraphQL::Schema.from_introspection or the underlying GraphQL::Schema::Loader.load method to parse and instantiate a GraphQL schema from JSON data, maliciously crafted input can trigger arbitrary Ruby code execution.

The vulnerability is exploitable over the network without requiring any privileges or user interaction. The scope of the vulnerability extends beyond the vulnerable component, meaning a successful exploit can affect resources beyond the immediate graphql-ruby library, potentially compromising the entire hosting system.

Applications at highest risk are those that:

  • Fetch GraphQL schemas from remote or external APIs
  • Use GraphQL::Client to perform schema introspection against untrusted endpoints
  • Process user-supplied or third-party schema definitions
  • Implement federated GraphQL architectures that merge external schemas

Root Cause

The root cause lies in the schema loader's insufficient validation of incoming schema definition data. When processing introspection results, the loader fails to properly sanitize or restrict certain schema elements that can be manipulated to inject executable Ruby code. This allows attackers to craft a malicious schema definition that, when parsed, executes arbitrary code within the Ruby interpreter context.

The vulnerability was introduced in version 1.11.5 and persisted across multiple major version branches until the coordinated patch release.

Attack Vector

The attack is network-based and requires no authentication. An attacker can exploit this vulnerability by:

  1. Setting up a malicious GraphQL endpoint that returns a crafted introspection response
  2. Waiting for a vulnerable application to perform schema introspection against the malicious endpoint
  3. The malicious schema definition triggers code execution during the loading process

Alternatively, if an application accepts schema definitions from untrusted sources (files, APIs, user input), the attacker can directly supply the malicious payload.

The vulnerability allows attackers to achieve complete system compromise with the ability to exfiltrate sensitive data, install backdoors, move laterally within the network, or cause denial of service. For detailed technical information, see the GitHub Security Advisory GHSA-q92j-grw3-h492.

Detection Methods for CVE-2025-27407

Indicators of Compromise

  • Unexpected outbound network connections from Ruby application processes
  • Unusual process spawning from Ruby or Rails application workers
  • Anomalous file system modifications in application directories
  • Suspicious GraphQL introspection requests to or from unknown endpoints
  • Unexpected system command execution traced back to graphql-ruby gem loading

Detection Strategies

  • Monitor application logs for schema loading operations from external sources
  • Implement network monitoring to detect connections to unknown GraphQL endpoints
  • Use runtime application self-protection (RASP) to detect code injection attempts
  • Audit gem dependencies using bundle audit or similar tools to identify vulnerable versions

Monitoring Recommendations

  • Enable verbose logging for GraphQL schema loading operations in non-production environments
  • Implement alerting for any GraphQL::Schema.from_introspection calls with external data
  • Monitor Ruby process behavior for signs of post-exploitation activities
  • Track network traffic patterns to identify unauthorized schema fetching operations

How to Mitigate CVE-2025-27407

Immediate Actions Required

  • Upgrade graphql-ruby to a patched version immediately: 1.11.8, 1.12.25, 1.13.24, 2.0.32, 2.1.14, 2.2.17, or 2.3.21
  • Audit all code paths that call GraphQL::Schema.from_introspection or GraphQL::Schema::Loader.load
  • If using GitLab, upgrade to version 17.9.2 or later
  • Review and validate all external GraphQL schema sources in your application

Patch Information

Multiple patched versions have been released to address this vulnerability across all affected version branches:

Version BranchPatched VersionCommit Reference
1.11.x1.11.8Commit 28233b16
1.12.x1.12.25Commit 2d2f4ed1
1.13.x1.13.24Commit 5c5a7b9a
2.0.x2.0.32Commit 6eca16b9
2.1.x2.1.14Commit d0963289
2.2.x2.2.17Commit d1117ae0
2.3.x2.3.21Commit e3b33ace

For additional vendor information, see the GitLab Patch Release 17.9.2 and Debian LTS Announcement.

Workarounds

  • Avoid loading GraphQL schemas from untrusted or external sources until patching is complete
  • Implement strict allowlisting for any GraphQL endpoints used for schema introspection
  • Consider using static schema definitions instead of dynamic introspection loading
  • Add network-level restrictions to prevent applications from connecting to unauthorized GraphQL endpoints
bash
# Update graphql-ruby to patched version
bundle update graphql

# Verify the installed version is patched
bundle show graphql

# Run security audit to confirm fix
bundle audit check --update

Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.

  • Vulnerability Details
  • TypeRCE

  • Vendor/TechGraphql

  • SeverityCRITICAL

  • CVSS Score9.0

  • EPSS Probability1.64%

  • Known ExploitedNo
  • CVSS Vector
  • CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:C/C:H/I:H/A:H
  • Impact Assessment
  • ConfidentialityHigh
  • IntegrityNone
  • AvailabilityHigh
  • CWE References
  • CWE-94
  • Technical References
  • GitLab Patch Release 17.9.2

  • GitHub GraphQL Client Repository

  • GraphQL-Ruby Commit Update #1

  • GraphQL-Ruby Commit Update #2

  • GraphQL-Ruby Commit Update #3

  • GraphQL-Ruby Commit Update #4

  • GraphQL-Ruby Commit Update #5

  • GraphQL-Ruby Commit Update #6

  • GraphQL-Ruby Commit Update #7

  • GitHub Security Advisory GHSA-q92j-grw3-h492

  • Debian LTS Announcement
  • Latest CVEs
  • CVE-2026-35467: Browser API Key Information Disclosure

  • CVE-2026-35466: cveInterface.js XSS Vulnerability

  • CVE-2026-30252: ZenShare Suite XSS Vulnerability

  • CVE-2026-30251: ZenShare Suite v17.0 XSS Vulnerability
Experience the World’s Most Advanced Cybersecurity Platform

Experience the World’s Most Advanced Cybersecurity Platform

See how our intelligent, autonomous cybersecurity platform can protect your organization now and into the future.

Try SentinelOne
  • Get Started
  • Get a Demo
  • Product Tour
  • Why SentinelOne
  • Pricing & Packaging
  • FAQ
  • Contact
  • Contact Us
  • Customer Support
  • SentinelOne Status
  • Language
  • Platform
  • Singularity Platform
  • Singularity Endpoint
  • Singularity Cloud
  • Singularity AI-SIEM
  • Singularity Identity
  • Singularity Marketplace
  • Purple AI
  • Services
  • Wayfinder TDR
  • SentinelOne GO
  • Technical Account Management
  • Support Services
  • Verticals
  • Energy
  • Federal Government
  • Finance
  • Healthcare
  • Higher Education
  • K-12 Education
  • Manufacturing
  • Retail
  • State and Local Government
  • Cybersecurity for SMB
  • Resources
  • Blog
  • Labs
  • Case Studies
  • Videos
  • Product Tours
  • Events
  • Cybersecurity 101
  • eBooks
  • Webinars
  • Whitepapers
  • Press
  • News
  • Ransomware Anthology
  • Company
  • About Us
  • Our Customers
  • Careers
  • Partners
  • Legal & Compliance
  • Security & Compliance
  • Investor Relations
  • S Foundation
  • S Ventures

©2026 SentinelOne, All Rights Reserved.

Privacy Notice Terms of Use

English