Back to Database
Status published
Medium
CVE-2025-27220
In the CGI gem before 0.4.2 for Ruby, a Regular...
Vulnerability 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.
Impact Analysis
Refer to official advisory for detailed impact metrics.
Remediation
Ensure systems are updated to the latest vendor-supplied patch levels.
THREAT MONITOR
Am I Vulnerable?
Launch our assessment wizard to check if your infrastructure is exposed to • CVE-2025-27220
Credits & Attribution
No credits recorded in the NVD database.
References
More from ruby-lang
View All →CVE-2025-27221
In the URI gem before 1.0.3 for Ruby, the URI...
Low
3.2
CVE-2025-27219
In the CGI gem before 0.4.2 for Ruby, the CGI::Cookie.parse...
Medium
5.8
CVE-2022-28739
There is a buffer over-read in Ruby before 2.6.10, 2.7.x...
High
7.5
CVE-2022-28738
A double free was found in the Regexp compiler in...
Critical
9.8
CVE-2021-41819
CGI::Cookie.parse in Ruby through 2.6.8 mishandles security prefixes in cookie...
Unknown
0
Affected Vendor
ruby-lang
View all reports →Affected Software
CGI
Vulnerable Versions:
0, 0.3.6, 0.4.0
Timeline
Official Publish:
March 3rd, 2025
Last Modified:
November 3rd, 2025
Added to House:
July 22nd, 2026
CVSS Vectors
V3:
CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:C/C:N/I:N/A:L