CVE-2025-27220

CGI: ReDoS in CGI::Util#escapeElement

Published Mar 3, 2025 CVSS 3.1 · 4 Medium EPSS < 1% KEV · Not listed
Description
In the CGI gem before 0.4.2 for Ruby, a Regular Expression Denial of Service (ReDoS) vulnerability exists in the Util#escapeElement method.

Remediation

No solution or workaround provided in the CVE record

Tracking

Sign in to view the affected projects.

Advisories

Source ID Title
Debian DLA Debian DLA DLA-4082-1 ruby2.7 security update
EUVD EUVD EUVD-2025-5509 In the CGI gem before 0.4.2 for Ruby, a Regular Expression Denial of Service (ReDoS) vulnerability exists in the Util#escapeElement method.
Github GHSA Github GHSA GHSA-mhwm-jh88-3gjf CGI has Regular Expression Denial of Service (ReDoS) potential in Util#escapeElement
Ubuntu USN Ubuntu USN USN-7418-1 Ruby vulnerabilities
Ubuntu USN Ubuntu USN USN-7442-1 Ruby vulnerabilities
History
Type Values Removed Values Added
First Time appeared Ruby-lang
Ruby-lang cgi
Ruby-lang ruby
CPEs cpe:2.3:a:ruby-lang:cgi:*:*:*:*:*:ruby:*:*
cpe:2.3:a:ruby-lang:cgi:0.3.6:*:*:*:*:ruby:*:*
cpe:2.3:a:ruby-lang:ruby:3.1.0:*:*:*:*:*:*:*
cpe:2.3:a:ruby-lang:ruby:3.2.0:*:*:*:*:*:*:*
Vendors & Products Ruby-lang
Ruby-lang cgi
Ruby-lang ruby
References
Type Values Removed Values Added
CPEs cpe:/a:redhat:enterprise_linux:9
Type Values Removed Values Added
First Time appeared Redhat
Redhat enterprise Linux
CPEs cpe:/a:redhat:enterprise_linux:8
Vendors & Products Redhat
Redhat enterprise Linux
Type Values Removed Values Added
Title CGI: ReDoS in CGI::Util#escapeElement. CGI: ReDoS in CGI::Util#escapeElement
Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'no', 'Exploitation': 'none', 'Technical Impact': 'partial'}, 'version': '2.0.3'}

Type Values Removed Values Added
Title CGI: ReDoS in CGI::Util#escapeElement.
References
Metrics threat_severity

None

threat_severity

Moderate

Type Values Removed Values Added
Description In the CGI gem before 0.4.2 for Ruby, a Regular Expression Denial of Service (ReDoS) vulnerability exists in the Util#escapeElement method.
Weaknesses CWE-1333
References
Metrics cvssV3_1

{'score': 4, 'vector': 'CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:C/C:N/I:N/A:L'}

Weaknesses

Sources

Status
PUBLISHED
Assigner
mitre
Published
Updated
Nov 3, 2025, 9:13 PM
Reserved
Feb 20, 2025, 12:00 AM
Status
Modified
Published
Mar 4, 2025, 12:15 AM
Modified
Jun 17, 2026, 9:03 AM
Severity
Moderate
Public date
Mar 3, 2025, 12:00 AM