cve.bz

CVE-2025-27220

7.5 highEPSS 0.8%

High (7.5) in ruby-lang cgi. EPSS 0.8% chance of exploitation in the next 30 days. Fixed in cgi 0.3.5.1, 0.3.7, 0.4.2.

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

CVSS 3.1

7.5 high
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
EPSS
0.8% chance of exploitation in the next 30 days; higher than 55% of CVEs (scores of 2026-10-31)
CWE
CWE-1333
Published
Modified
Record from
the NVD, synced

Affected

Packages (OSV)

AdvisoryEcosystemPackageAffectedFixed in
GHSA-mhwm-jh88-3gjfRubyGemscgi<0.3.5.10.3.5.1
GHSA-mhwm-jh88-3gjfRubyGemscgi>=0.3.6 <0.3.70.3.7
GHSA-mhwm-jh88-3gjfRubyGemscgi>=0.4.0 <0.4.20.4.2

References

Check your stackJSON