Advisory

GHSA-q92j-grw3-h492

Also known as: CVE-2025-27407

Summary

graphql allows remote code execution when loading a crafted GraphQL schema

Details

Summary

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.

Severity

Critical Basis: The source's own band: CRITICAL

Dates

Published
2025-03-12 19:28 UTC
Modified
2025-11-03 21:56 UTC

Affected packages and fixes

graphql

RubyGems · All systems

Affected

  • introduced 2.4.0, fixed 2.4.13 (ecosystem)

Fixed versions

2.4.13

Fix

The export has no generic command for this ecosystem.

graphql

RubyGems · All systems

Affected

  • introduced 2.3.0, fixed 2.3.21 (ecosystem)

Fixed versions

2.3.21

Fix

The export has no generic command for this ecosystem.

graphql

RubyGems · All systems

Affected

  • introduced 2.2.0, fixed 2.2.17 (ecosystem)

Fixed versions

2.2.17

Fix

The export has no generic command for this ecosystem.

graphql

RubyGems · All systems

Affected

  • introduced 2.1.0, fixed 2.1.15 (ecosystem)

Fixed versions

2.1.15

Fix

The export has no generic command for this ecosystem.

graphql

RubyGems · All systems

Affected

  • introduced 2.0.0, fixed 2.0.32 (ecosystem)

Fixed versions

2.0.32

Fix

The export has no generic command for this ecosystem.

graphql

RubyGems · All systems

Affected

  • introduced 1.13.0, fixed 1.13.24 (ecosystem)

Fixed versions

1.13.24

Fix

The export has no generic command for this ecosystem.

graphql

RubyGems · All systems

Affected

  • introduced 1.12.0, fixed 1.12.25 (ecosystem)

Fixed versions

1.12.25

Fix

The export has no generic command for this ecosystem.

graphql

RubyGems · All systems

Affected

  • introduced 1.11.5, fixed 1.11.11 (ecosystem)

Fixed versions

1.11.11

Fix

The export has no generic command for this ecosystem.

Fix commands are the export's own generic commands. Ojuju never runs them. Check them against your setup first.

Check your own computer: guard packages check

View this record on OSV.dev

Source

Source: GitHub Advisory Database (reviewed advisories) · CC BY 4.0

Sources & licences