Inefficient Regular Expression Complexity Affecting ruby3.1 package, versions *


Severity

Recommended
low

Based on Debian security rating.

Threat Intelligence

EPSS
0.57% (69th percentile)

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications

Snyk Learn

Learn about Inefficient Regular Expression Complexity vulnerabilities in an interactive lesson.

Start learning
  • Snyk IDSNYK-DEBIAN12-RUBY31-9292485
  • published6 Mar 2025
  • disclosed4 Mar 2025

Introduced: 4 Mar 2025

CVE-2025-27220  (opens in a new tab)
CWE-1333  (opens in a new tab)

How to fix?

There is no fixed version for Debian:12 ruby3.1.

NVD Description

Note: Versions mentioned in the description apply only to the upstream ruby3.1 package and not the ruby3.1 package as distributed by Debian. See How to fix? for Debian:12 relevant fixed versions and status.

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

CVSS Base Scores

version 3.1