CVE-2025-27220
CGI has Regular Expression Denial of Service (ReDoS) potential in Util#escapeElement
4.0
MEDIUM
CVSS 3.1
EPSS 0.25%
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.
How to fix CVE-2025-27220
To remediate CVE-2025-27220, upgrade the affected package to a fixed version below.
- Debian/ruby2.7—upgrade to 2.7.4-1+deb11u5 or later
- —no fix listed
- —upgrade to 3.3.7-2 or later
- —upgrade to 0.3.5.1 or later
Is CVE-2025-27220 being exploited?
Low — EPSS is 0.2%, meaning exploitation activity has not been observed at scale.
Affected packages (4)
- from 0, < 2.7.4-1+deb11u5
- from 0
- from 0, < 3.3.7-2
- from 0, < 0.3.5.1
CVSS scores
| Source | Version | Severity | Vector |
|---|---|---|---|
| osv | CVSS 4.0 | — | CVSS:4.0/AV:N/AC:H/AT:P/PR:N/UI:N/VC:N/VI:N/VA:L/SC:N/SI:N/SA:N |
| osv | CVSS 3.1 | MEDIUM4.0 | CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:C/C:N/I:N/A:L |