Skip to content
Heist/ feed
Back to feed
Critical

ruby-graphql — security advisory

Type: advisorySources: OSVAdvisory ID: UBUNTU-CVE-2025-27407

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.

Products
ruby-graphql
Affected versions
1.11.10-1, 1.11.4-1, 1.11.8-3, 1.13.15-1, 1.13.20-1, 1.8.4-1, 1.9.16-1, 1.9.19-1, 2.2.17-1, 2.2.5-3, 2.5.19-1, 2.6.0-1, 2.6.3-1, 2.6.6-1
Fixed versions
Not specified
CVEs
CVE-2025-27407
Confirmed fixed CVEs
Not specified
Updated in this feed
31 Oct 2026, 01:25 UTC · Revision 1

Source evidence

UBUNTU-CVE-2025-27407

core-osv · Original source

Published 12 Mar 2025, 19:15 UTC

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.

osv:UBUNTU-CVE-2025-27407

ruby-graphql

Fixed versions: Not specified

ruby-graphql

Fixed versions: Not specified

ruby-graphql

Fixed versions: Not specified

ruby-graphql

Fixed versions: Not specified

ruby-graphql

Fixed versions: Not specified

ruby-graphql

Fixed versions: Not specified

Complete source record
{
  "id": "e26fcab67acce1db2a625f4d6ef3b5bf1a87d296275683c76dace7cc1168ff03",
  "url": "https://osv.dev/vulnerability/UBUNTU-CVE-2025-27407",
  "method": "structured",
  "payload": {
    "kind": "advisory",
    "title": "UBUNTU-CVE-2025-27407",
    "summary": "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.",
    "evidence": "osv:UBUNTU-CVE-2025-27407",
    "products": [
      {
        "name": {
          "value": "ruby-graphql",
          "evidence": "/affected/0/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [],
        "affected_versions": [
          {
            "value": "1.8.4-1",
            "evidence": "/affected/0/versions"
          },
          {
            "value": "1.9.16-1",
            "evidence": "/affected/0/versions"
          },
          {
            "value": "1.9.19-1",
            "evidence": "/affected/0/versions"
          }
        ]
      },
      {
        "name": {
          "value": "ruby-graphql",
          "evidence": "/affected/1/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [],
        "affected_versions": [
          {
            "value": "1.11.4-1",
            "evidence": "/affected/1/versions"
          },
          {
            "value": "1.11.8-3",
            "evidence": "/affected/1/versions"
          },
          {
            "value": "1.11.10-1",
            "evidence": "/affected/1/versions"
          }
        ]
      },
      {
        "name": {
          "value": "ruby-graphql",
          "evidence": "/affected/2/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [],
        "affected_versions": [
          {
            "value": "1.13.15-1",
            "evidence": "/affected/2/versions"
          },
          {
            "value": "1.13.20-1",
            "evidence": "/affected/2/versions"
          },
          {
            "value": "2.2.5-3",
            "evidence": "/affected/2/versions"
          }
        ]
      },
      {
        "name": {
          "value": "ruby-graphql",
          "evidence": "/affected/3/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [],
        "affected_versions": [
          {
            "value": "2.2.5-3",
            "evidence": "/affected/3/versions"
          },
          {
            "value": "2.2.17-1",
            "evidence": "/affected/3/versions"
          }
        ]
      },
      {
        "name": {
          "value": "ruby-graphql",
          "evidence": "/affected/4/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [],
        "affected_versions": [
          {
            "value": "2.5.19-1",
            "evidence": "/affected/4/versions"
          },
          {
            "value": "2.6.0-1",
            "evidence": "/affected/4/versions"
          },
          {
            "value": "2.6.3-1",
            "evidence": "/affected/4/versions"
          },
          {
            "value": "2.6.6-1",
            "evidence": "/affected/4/versions"
          }
        ]
      },
      {
        "name": {
          "value": "ruby-graphql",
          "evidence": "/affected/5/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [],
        "affected_versions": [
          {
            "value": "2.2.17-1",
            "evidence": "/affected/5/versions"
          },
          {
            "value": "2.5.19-1",
            "evidence": "/affected/5/versions"
          }
        ]
      }
    ],
    "severity": "critical",
    "structured": {
      "id": "UBUNTU-CVE-2025-27407",
      "aliases": [
        "UBUNTU-CVE-2025-27407"
      ],
      "metrics": [
        {
          "type": "CVSS_V3",
          "score": "CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:C/C:H/I:H/A:H"
        },
        {
          "type": "Ubuntu",
          "score": "medium"
        }
      ],
      "affected": [
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "0"
                }
              ]
            }
          ],
          "package": {
            "name": "ruby-graphql",
            "purl": "pkg:deb/ubuntu/ruby-graphql?arch=source&distro=focal",
            "ecosystem": "Ubuntu:20.04:LTS"
          },
          "versions": [
            "1.8.4-1",
            "1.9.16-1",
            "1.9.19-1"
          ],
          "database_specific": {
            "source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2025/UBUNTU-CVE-2025-27407.json"
          },
          "ecosystem_specific": {
            "binaries": [
              {
                "binary_name": "ruby-graphql",
                "binary_version": "1.9.19-1"
              }
            ]
          }
        },
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "0"
                }
              ]
            }
          ],
          "package": {
            "name": "ruby-graphql",
            "purl": "pkg:deb/ubuntu/ruby-graphql?arch=source&distro=jammy",
            "ecosystem": "Ubuntu:22.04:LTS"
          },
          "versions": [
            "1.11.4-1",
            "1.11.8-3",
            "1.11.10-1"
          ],
          "database_specific": {
            "source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2025/UBUNTU-CVE-2025-27407.json"
          },
          "ecosystem_specific": {
            "binaries": [
              {
                "binary_name": "ruby-graphql",
                "binary_version": "1.11.10-1"
              }
            ]
          }
        },
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "0"
                }
              ]
            }
          ],
          "package": {
            "name": "ruby-graphql",
            "purl": "pkg:deb/ubuntu/ruby-graphql?arch=source&distro=noble",
            "ecosystem": "Ubuntu:24.04:LTS"
          },
          "versions": [
            "1.13.15-1",
            "1.13.20-1",
            "2.2.5-3"
          ],
          "database_specific": {
            "source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2025/UBUNTU-CVE-2025-27407.json"
          },
          "ecosystem_specific": {
            "binaries": [
              {
                "binary_name": "ruby-graphql",
                "binary_version": "2.2.5-3"
              }
            ]
          }
        },
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "0"
                }
              ]
            }
          ],
          "package": {
            "name": "ruby-graphql",
            "purl": "pkg:deb/ubuntu/ruby-graphql?arch=source&distro=questing",
            "ecosystem": "Ubuntu:25.10"
          },
          "versions": [
            "2.2.5-3",
            "2.2.17-1"
          ],
          "database_specific": {
            "source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2025/UBUNTU-CVE-2025-27407.json"
          },
          "ecosystem_specific": {
            "binaries": [
              {
                "binary_name": "ruby-graphql",
                "binary_version": "2.2.17-1"
              }
            ]
          }
        },
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "0"
                }
              ]
            }
          ],
          "package": {
            "name": "ruby-graphql",
            "purl": "pkg:deb/ubuntu/ruby-graphql?arch=source&distro=stonking",
            "ecosystem": "Ubuntu:26.10"
          },
          "versions": [
            "2.5.19-1",
            "2.6.0-1",
            "2.6.3-1",
            "2.6.6-1"
          ],
          "database_specific": {
            "source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2025/UBUNTU-CVE-2025-27407.json"
          },
          "ecosystem_specific": {
            "binaries": [
              {
                "binary_name": "ruby-graphql",
                "binary_version": "2.6.6-1"
              }
            ]
          }
        },
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "0"
                }
              ]
            }
          ],
          "package": {
            "name": "ruby-graphql",
            "purl": "pkg:deb/ubuntu/ruby-graphql?arch=source&distro=resolute",
            "ecosystem": "Ubuntu:26.04:LTS"
          },
          "versions": [
            "2.2.17-1",
            "2.5.19-1"
          ],
          "database_specific": {
            "source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2025/UBUNTU-CVE-2025-27407.json"
          },
          "ecosystem_specific": {
            "binaries": [
              {
                "binary_name": "ruby-graphql",
                "binary_version": "2.5.19-1"
              }
            ]
          }
        }
      ],
      "modified": "2026-10-17T12:56:49.294589519Z",
      "provider": "osv",
      "upstream": [
        "CVE-2025-27407"
      ],
      "references": [
        "https://ubuntu.com/security/CVE-2025-27407",
        "https://www.cve.org/CVERecord?id=CVE-2025-27407",
        "https://about.gitlab.com/releases/2025/03/12/patch-release-gitlab-17-9-2-released",
        "https://github.com/github-community-projects/graphql-client",
        "https://github.com/rmosolgo/graphql-ruby/commit/28233b16c0eb9d0fb7808f4980e061dc7507c4cd",
        "https://github.com/rmosolgo/graphql-ruby/commit/2d2f4ed1f79472f8eed29c864b039649e1de238f",
        "https://github.com/rmosolgo/graphql-ruby/commit/5c5a7b9a9bdce143be048074aea50edb7bb747be",
        "https://github.com/rmosolgo/graphql-ruby/commit/6eca16b9fa553aa957099a30dbde64ddcdac52ca",
        "https://github.com/rmosolgo/graphql-ruby/commit/d0963289e0dab4ea893bbecf12bb7d89294957bb",
        "https://github.com/rmosolgo/graphql-ruby/commit/d1117ae0361d9ed67e0795b07f5c3e98e62f3c7c",
        "https://github.com/rmosolgo/graphql-ruby/commit/e3b33ace05391da2871c75ab4d3b66e29133b367",
        "https://github.com/rmosolgo/graphql-ruby/security/advisories/GHSA-q92j-grw3-h492"
      ]
    },
    "related_cves": [
      {
        "value": "CVE-2025-27407",
        "evidence": "/upstream"
      }
    ],
    "security_relevant": true,
    "severity_evidence": "/severity/0/score"
  },
  "source_id": "core-osv",
  "document_id": 356385,
  "published_at": "2025-03-12T19:15:00+00:00"
}