cbcvebase.
CVE-2025-27220
published 2025-03-04

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.

PriorityP337high7.5CVSS 3.1
AVNACLPRNUINSUCNINAH
EPSS
0.70%
48.6th percentile
In the CGI gem before 0.4.2 for Ruby, a Regular Expression Denial of Service (ReDoS) vulnerability exists in the Util#escapeElement method.

Affected

12 ranges
VendorProductVersion rangeFixed in
debianruby2.7< ruby2.7 2.7.4-1+deb11u5 (bullseye)ruby2.7 2.7.4-1+deb11u5 (bullseye)
debianruby3.1< ruby2.7 2.7.4-1+deb11u5 (bullseye)ruby2.7 2.7.4-1+deb11u5 (bullseye)
debianruby3.3< ruby2.7 2.7.4-1+deb11u5 (bullseye)ruby2.7 2.7.4-1+deb11u5 (bullseye)
msrcazl3_ruby_3.3.5-3_on_azure_linux_3.0
msrccbl2_ruby_3.1.4-9_on_cbl_mariner_2.0
ruby-langcgi< 0.3.5.10.3.5.1
ruby-langcgi
ruby-langcgi>= 0 < 0.3.5.10.3.5.1
ruby-langcgi>= 0.3.6 < 0.3.70.3.7
ruby-langcgi>= 0.3.6 < 0.3.70.3.7
ruby-langcgi>= 0.4.0 < 0.4.20.4.2
ruby-langcgi>= 0.4.0 < 0.4.20.4.2

CVSS provenance

nvdv3.17.5HIGHCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
ghsa7.5HIGH
osv7.5HIGH
vendor_ubuntu7.5HIGH
vendor_debian4.0MEDIUM
vendor_msrc4.0MEDIUM
vendor_redhat4.0MEDIUM
Stop checking back — get the weekly exploitation signal.

Every Monday: what got weaponized or added to CISA KEV in the last seven days — each CVE cross-linked to its PoC, Nuclei template, and detection rule. Free, one email a week, unsubscribe in one click.