CVEMETERBack to radar
OFFICIAL RECORD · Ruby

CVE-2025-27220

PUBLISHEDOfficial status check: verifiedCVSS 3.1: 4 · medium

Ruby · CVE-2025-27220

In the CGI gem before 0.4.2 for Ruby, a Regular Expression Denial of Service (ReDoS) vulnerability exists in the Util#escapeElement method.

Exposure status: unknown. This page does not establish whether an installed system is affected or corrected.

Severity and exploitation evidence

EPSS: 0.760% · score date 2026-11-19. EPSS is an estimated probability over the next 30 days, not proof of exploitation.

CISA KEV: not included in the checked catalog; exploitation may still occur. Last checked: 2026-11-19T17:59:58.648Z. Public exploit availability is not used to set this status.

CVSS 3.1 · 4 · published by mitre
CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:C/C:N/I:N/A:L
Assessment source · checked 2026-11-19T12:57:29.283Z

CVSS 3.1 · 4 · published by Ubuntu Security
CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:C/C:N/I:N/A:L
Assessment source · checked 2026-11-19T16:51:26.185Z

Verification by field

FieldStatusChecked at (UTC)Source
kevverified2026-11-19T17:59:58.648ZCISA KEV
cvssverified2026-11-19T12:57:29.283ZCVE Program
epssverified2026-11-19T16:04:40.588ZFIRST EPSS
patchesverified2026-11-19T16:51:47.512ZUbuntu Security
affectedverified2026-11-19T12:57:29.283ZCVE Program
lifecycleverified2026-11-19T12:57:29.283ZCVE Program

Affected versions and configuration

ruby-lang CGI; default status: unaffected: 0 to < 0.3.5.1 [affected; scheme: custom]; 0.3.6 to < 0.3.7 [affected; scheme: custom]; 0.4.0 to < 0.4.2 [affected; scheme: custom]

Defaults, conditional configuration, package status and version schemes are retained below. A version range alone is not an exposure verdict.

Ubuntu Security · ubuntu-package · full conditions
[
  {
    "name": "ruby3.3",
    "debian": "https://tracker.debian.org/pkg/ruby3.3",
    "source": "https://ubuntu.com/security/cve?package=ruby3.3",
    "ubuntu": "https://packages.ubuntu.com/search?suite=all&section=all&arch=any&searchon=sourcenames&keywords=ruby3.3",
    "statuses": [
      {
        "pocket": "security",
        "status": "released",
        "component": null,
        "description": "3.3.7-1ubuntu2",
        "release_codename": "stonking"
      },
      {
        "pocket": "security",
        "status": "released",
        "component": null,
        "description": "3.3.7-1ubuntu2",
        "release_codename": "resolute"
      },
      {
        "pocket": "security",
        "status": "DNE",
        "component": null,
        "description": "",
        "release_codename": "focal"
      },
      {
        "pocket": "security",
        "status": "DNE",
        "component": null,
        "description": "",
        "release_codename": "jammy"
      },
      {
        "pocket": "security",
        "status": "DNE",
        "component": null,
        "description": "",
        "release_codename": "noble"
      },
      {
        "pocket": "security",
        "status": "needs-triage",
        "component": null,
        "description": "",
        "release_codename": "upstream"
      },
      {
        "pocket": "security",
        "status": "released",
        "component": null,
        "description": "3.3.4-2ubuntu5.2",
        "release_codename": "oracular"
      },
      {
        "pocket": "security",
        "status": "released",
        "component": null,
        "description": "3.3.7-1ubuntu2",
        "release_codename": "plucky"
      },
      {
        "pocket": "security",
        "status": "released",
        "component": null,
        "description": "3.3.7-1ubuntu2",
        "release_codename": "questing"
      }
    ]
  }
]
Archived source JSON
Ubuntu Security · ubuntu-package · full conditions
[
  {
    "name": "ruby3.2",
    "debian": "https://tracker.debian.org/pkg/ruby3.2",
    "source": "https://ubuntu.com/security/cve?package=ruby3.2",
    "ubuntu": "https://packages.ubuntu.com/search?suite=all&section=all&arch=any&searchon=sourcenames&keywords=ruby3.2",
    "statuses": [
      {
        "pocket": "security",
        "status": "DNE",
        "component": null,
        "description": "",
        "release_codename": "stonking"
      },
      {
        "pocket": "security",
        "status": "DNE",
        "component": null,
        "description": "",
        "release_codename": "resolute"
      },
      {
        "pocket": "security",
        "status": "DNE",
        "component": null,
        "description": "",
        "release_codename": "focal"
      },
      {
        "pocket": "security",
        "status": "DNE",
        "component": null,
        "description": "",
        "release_codename": "jammy"
      },
      {
        "pocket": "security",
        "status": "DNE",
        "component": null,
        "description": "",
        "release_codename": "oracular"
      },
      {
        "pocket": "security",
        "status": "needs-triage",
        "component": null,
        "description": "",
        "release_codename": "upstream"
      },
      {
        "pocket": "security",
        "status": "released",
        "component": null,
        "description": "3.2.3-1ubuntu0.24.04.5",
        "release_codename": "noble"
      },
      {
        "pocket": "security",
        "status": "DNE",
        "component": null,
        "description": "",
        "release_codename": "plucky"
      },
      {
        "pocket": "security",
        "status": "DNE",
        "component": null,
        "description": "",
        "release_codename": "questing"
      }
    ]
  }
]
Archived source JSON
CVE Program · cve-json · full conditions
{
  "affected": [
    {
      "vendor": "ruby-lang",
      "product": "CGI",
      "versions": [
        {
          "status": "affected",
          "version": "0",
          "lessThan": "0.3.5.1",
          "versionType": "custom"
        },
        {
          "status": "affected",
          "version": "0.3.6",
          "lessThan": "0.3.7",
          "versionType": "custom"
        },
        {
          "status": "affected",
          "version": "0.4.0",
          "lessThan": "0.4.2",
          "versionType": "custom"
        }
      ],
      "defaultStatus": "unaffected"
    }
  ],
  "additionalContainers": [
    {
      "title": "CISA ADP Vulnrichment",
      "metrics": [
        {
          "other": {
            "type": "ssvc",
            "content": {
              "id": "CVE-2025-27220",
              "role": "CISA Coordinator",
              "options": [
                {
                  "Exploitation": "none"
                },
                {
                  "Automatable": "no"
                },
                {
                  "Technical Impact": "partial"
                }
              ],
              "version": "2.0.3",
              "timestamp": "2025-03-04T16:39:36.614961Z"
            }
          }
        }
      ],
      "providerMetadata": {
        "orgId": "134c704f-9b21-4f2e-91b3-4a467353bcc0",
        "shortName": "CISA-ADP",
        "dateUpdated": "2025-03-04T16:40:22.900Z"
      }
    },
    {
      "title": "CVE Program Container",
      "references": [
        {
          "url": "https://lists.debian.org/debian-lts-announce/2025/03/msg00008.html"
        }
      ],
      "providerMetadata": {
        "orgId": "af854a3a-2127-422b-91ae-364da2661108",
        "shortName": "CVE",
        "dateUpdated": "2025-11-03T21:13:25.250Z"
      }
    }
  ]
}
Archived source JSON

Correction evidence

Distribution packages and upstream releases are distinct. ESM channels may require the corresponding Ubuntu entitlement. Notes and branch ranges are not installable package versions. OSV fixed boundaries are ecosystem-specific version thresholds, not proof that a package is currently available or installed.

Evidence typeDistribution / releasePackageChannelVersion or source noteSource
distribution-packageUbuntu / stonkingruby3.3security3.3.7-1ubuntu2Official record
distribution-packageUbuntu / resoluteruby3.3security3.3.7-1ubuntu2Official record
distribution-packageUbuntu / oracularruby3.3security3.3.4-2ubuntu5.2Official record
distribution-packageUbuntu / pluckyruby3.3security3.3.7-1ubuntu2Official record
distribution-packageUbuntu / questingruby3.3security3.3.7-1ubuntu2Official record
distribution-packageUbuntu / nobleruby3.2security3.2.3-1ubuntu0.24.04.5Official record

Vendor notices and operational guidance

No connected vendor notice is available for this record.

Original sources and dates

Official status history