Remote Code Execution Vulnerability in graphql-ruby
CVE-2025-27407

9.1CRITICAL

Key Information:

Vendor

Rmosolgo

Vendor
CVE Published:
12 March 2025

Key facts: CVE-2025-27407 is a critical severity (CVSS 9.1) vulnerability in Rmosolgo graphql-ruby. No exploitation in the wild or public proof-of-concept has been recorded so far. Its EPSS score is 3.2%, the estimated probability of exploitation in the next 30 days. Fixed in graphql-ruby 1.11.5, 1.11.8, 1.12.0, 1.12.25, 1.13.0, 1.13.24, 2.0.0, 2.0.32.

What is CVE-2025-27407?

CVE-2025-27407 is a remote code execution vulnerability impacting the graphql-ruby library, which is a Ruby implementation of the GraphQL query language. This library is widely used for building APIs, allowing developers to define the structure of their data and how it can be accessed. The vulnerability arises when malicious schema definitions are loaded through GraphQL introspection, which can lead to execution of arbitrary code on the server. Organizations using affected versions of graphql-ruby may face significant risks, including unauthorized access to sensitive data and potential compromise of their systems.

Technical Details

The vulnerability exists in versions of graphql-ruby prior to 1.11.8, 1.12.25, 1.13.24, 2.0.32, 2.1.14, 2.2.17, and 2.3.21. Specifically, it can be exploited when a system loads a schema by JSON from an untrusted source, particularly leveraging the GraphQL::Schema.from_introspection or GraphQL::Schema::Loader.load methods. Because of this design flaw, an attacker could craft a malicious schema and manipulate the API behavior, potentially leading to remote code execution on the server.

Potential impact of CVE-2025-27407

  1. Remote Code Execution: This vulnerability allows attackers to execute arbitrary code on the server, which could lead to complete system compromise and unauthorized control over the affected application.

  2. Data Breach Risks: Exploitation could enable attackers to access sensitive data stored within the system, leading to data leaks and violations of data privacy regulations.

  3. Operational Disruption: Successful exploitation may result in service outages, data corruption, and integrity issues, impacting an organization's operations and trustworthiness.

Affected Version(s)

graphql-ruby >= 1.11.5, < 1.11.8 < 1.11.5, 1.11.8

graphql-ruby >= 1.12.0, < 1.12.25 < 1.12.0, 1.12.25

graphql-ruby >= 1.13.0, < 1.13.24 < 1.13.0, 1.13.24

References

Browse all analysed vulnerabilities ›

CVSS V3.1

Score:
9.1
Severity:
CRITICAL
Confidentiality:
High
Integrity:
High
Availability:
High
Attack Vector:
Network
Attack Complexity:
High
Privileges Required:
None
User Interaction:
None
Scope:
Changed

Timeline

  • Vulnerability published

  • Vulnerability Reserved

.