CVE catalog

CVE-2025-27220

Ruby vulnerabilities

[CVE catalog]

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

Severity
Medium · CVSS 5.3CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L
Published
Source
[NVD] · [CVE record]
EPSS
0.76% · Oct 27, 2026

Projects and upstream resources

Reported versions and fixes

Each observation applies to its named package, distribution, and release. Distribution backports can fix a vulnerability while retaining an older upstream version number.

Distribution / releasePackageVersionStatusSource
Debianbookworm-securityruby3.13.1.2-7+deb12u1Affected[CVE-2025-27220]
Debianbookwormruby3.1Not reportedAffectedDistribution reports no fix[CVE-2025-27220]
Debianbookwormruby3.13.1.2-7+deb12u1Affected[CVE-2025-27220]
UnknownRelease not reportedlibruby3.23.2.3-1ubuntu0.24.04.5UnknownSource applicability is not establishedProvider not reported
UnknownRelease not reportedruby3.1Not reportedUnknownSource applicability is not establishedProvider not reported
UnknownRelease not reportedruby3.23.2.3-1ubuntu0.24.04.5UnknownSource applicability is not establishedProvider not reported
UnknownRelease not reportedruby3.2-dev3.2.3-1ubuntu0.24.04.5UnknownSource applicability is not establishedProvider not reported
UnknownRelease not reportedruby3.2-doc3.2.3-1ubuntu0.24.04.5UnknownSource applicability is not establishedProvider not reported
Provider details and historical evidence
Distribution / releasePackageVersionStatusSource
UnknownRelease not reportedlibruby3.23.2.3-1ubuntu0.24.04.5UnknownSource applicability is not establishedProvider not reported
UnknownRelease not reportedruby3.1Not reportedUnknownSource applicability is not establishedProvider not reported
UnknownRelease not reportedruby3.23.2.3-1ubuntu0.24.04.5UnknownSource applicability is not establishedProvider not reported
UnknownRelease not reportedruby3.2-dev3.2.3-1ubuntu0.24.04.5UnknownSource applicability is not establishedProvider not reported
UnknownRelease not reportedruby3.2-doc3.2.3-1ubuntu0.24.04.5UnknownSource applicability is not establishedProvider not reported
Debianbookwormruby3.1Not reportedAffectedDistribution reports no fix[CVE-2025-27220]
Debianbookwormruby3.13.1.2-7+deb12u1Affected[CVE-2025-27220]
Debianbookworm-securityruby3.13.1.2-7+deb12u1Affected[CVE-2025-27220]
Original provider fields
{
  "package_releases": [
    {
      "name": "ruby3.1",
      "status": "vulnerable",
      "release": "bookworm",
      "version": "3.1.2-7+deb12u1"
    },
    {
      "name": "ruby3.1",
      "status": "vulnerable",
      "release": "bookworm-security",
      "version": "3.1.2-7+deb12u1"
    }
  ],
  "fixed_versions": [
    {
      "bug": 1103793,
      "name": "ruby3.1",
      "type": "source",
      "origin": null,
      "release": "bookworm",
      "urgency": "not yet assigned",
      "fixed_version": ""
    }
  ],
  "distribution_packages": [
    {
      "name": "ruby3.1",
      "fixed_version": "not yet fixed",
      "applicability_unknown": true
    },
    {
      "name": "ruby3.2",
      "fixed_version": "3.2.3-1ubuntu0.24.04.5",
      "applicability_unknown": true
    },
    {
      "name": "libruby3.2",
      "fixed_version": "3.2.3-1ubuntu0.24.04.5",
      "applicability_unknown": true
    },
    {
      "name": "ruby3.2-dev",
      "fixed_version": "3.2.3-1ubuntu0.24.04.5",
      "applicability_unknown": true
    },
    {
      "name": "ruby3.2-doc",
      "fixed_version": "3.2.3-1ubuntu0.24.04.5",
      "applicability_unknown": true
    }
  ]
}

[Debian bug #1103793]

Publisher notes

[bookworm] ruby3.1: Minor issue

OpenFactory catalog packages

Matching against OpenFactory catalog package versions is in progress.

[Debian 12 (Bookworm)]

  • [libruby3.1]Unknown

    Source package: [ruby3.1]

    Details (4)
    • 3.1.2-7+deb12u1 · amd64 · bookworm

      Affected

      usn · ruby3.1 · debian · bookworm; usn · ruby3.1 · debian · 12

    • 3.1.2-7+deb12u1 · arm64 · bookworm

      Affected

      usn · ruby3.1 · debian · bookworm; usn · ruby3.1 · debian · 12

    • 3.1.2-7+deb12u1 · amd64 · bookworm-security

      Affected

      usn · ruby3.1 · debian · bookworm; usn · ruby3.1 · debian · 12

    • 3.1.2-7+deb12u1 · arm64 · bookworm-security

      Affected

      usn · ruby3.1 · debian · bookworm; usn · ruby3.1 · debian · 12

  • [ruby3.1]Unknown
    Details (4)
    • 3.1.2-7+deb12u1 · amd64 · bookworm

      Affected

      usn · ruby3.1 · debian · bookworm; usn · ruby3.1 · debian · 12

    • 3.1.2-7+deb12u1 · arm64 · bookworm

      Affected

      usn · ruby3.1 · debian · bookworm; usn · ruby3.1 · debian · 12

    • 3.1.2-7+deb12u1 · amd64 · bookworm-security

      Affected

      usn · ruby3.1 · debian · bookworm; usn · ruby3.1 · debian · 12

    • 3.1.2-7+deb12u1 · arm64 · bookworm-security

      Affected

      usn · ruby3.1 · debian · bookworm; usn · ruby3.1 · debian · 12

  • [ruby3.1-dev]Unknown

    Source package: [ruby3.1]

    Details (4)
    • 3.1.2-7+deb12u1 · amd64 · bookworm

      Affected

      usn · ruby3.1 · debian · bookworm; usn · ruby3.1 · debian · 12

    • 3.1.2-7+deb12u1 · arm64 · bookworm

      Affected

      usn · ruby3.1 · debian · bookworm; usn · ruby3.1 · debian · 12

    • 3.1.2-7+deb12u1 · amd64 · bookworm-security

      Affected

      usn · ruby3.1 · debian · bookworm; usn · ruby3.1 · debian · 12

    • 3.1.2-7+deb12u1 · arm64 · bookworm-security

      Affected

      usn · ruby3.1 · debian · bookworm; usn · ruby3.1 · debian · 12

  • [ruby3.1-doc]Unknown

    Source package: [ruby3.1]

    Details (4)
    • 3.1.2-7+deb12u1 · all · bookworm

      Affected

      usn · ruby3.1 · debian · bookworm; usn · ruby3.1 · debian · 12

    • 3.1.2-7+deb12u1 · all · bookworm

      Affected

      usn · ruby3.1 · debian · bookworm; usn · ruby3.1 · debian · 12

    • 3.1.2-7+deb12u1 · all · bookworm-security

      Affected

      usn · ruby3.1 · debian · bookworm; usn · ruby3.1 · debian · 12

    • 3.1.2-7+deb12u1 · all · bookworm-security

      Affected

      usn · ruby3.1 · debian · bookworm; usn · ruby3.1 · debian · 12

[Debian 13 (Trixie)]

  • [libruby3.3]Unknown

    Source package: [ruby3.3]

    Details (2)
    • 3.3.8-2 · amd64 · trixie

      Fixed · Fixed: 3.3.7-2

      usn · ruby3.3 · debian · 13

    • 3.3.8-2 · arm64 · trixie

      Fixed · Fixed: 3.3.7-2

      usn · ruby3.3 · debian · 13

  • [ruby3.3]Unknown
    Details (2)
    • 3.3.8-2 · amd64 · trixie

      Fixed · Fixed: 3.3.7-2

      usn · ruby3.3 · debian · 13

    • 3.3.8-2 · arm64 · trixie

      Fixed · Fixed: 3.3.7-2

      usn · ruby3.3 · debian · 13

  • [ruby3.3-dev]Unknown

    Source package: [ruby3.3]

    Details (2)
    • 3.3.8-2 · amd64 · trixie

      Fixed · Fixed: 3.3.7-2

      usn · ruby3.3 · debian · 13

    • 3.3.8-2 · arm64 · trixie

      Fixed · Fixed: 3.3.7-2

      usn · ruby3.3 · debian · 13

  • [ruby3.3-doc]Unknown

    Source package: [ruby3.3]

    Details (2)
    • 3.3.8-2 · all · trixie

      Fixed · Fixed: 3.3.7-2

      usn · ruby3.3 · debian · 13

    • 3.3.8-2 · all · trixie

      Fixed · Fixed: 3.3.7-2

      usn · ruby3.3 · debian · 13

Observed:

References