MEDIUM · 4.0

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.

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.

CVSS Score

4.0

MEDIUM

CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:C/C:N/I:N/A:L
Attack Vector
NETWORK
Attack Complexity
HIGH
Privileges Required
NONE
User Interaction
NONE
Scope
CHANGED
Confidentiality
NONE
Integrity
NONE
Availability
LOW

Affected Products

VendorProductVersions
Ruby-LangCgi< 0.3.5.1
Ruby-LangRuby3.1.0

Related Weaknesses (CWE)

References

FAQ

What is CVE-2025-27220?

CVE-2025-27220 is a vulnerability with a CVSS score of 4.0 (MEDIUM). 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 severe is CVE-2025-27220?

CVE-2025-27220 has been rated MEDIUM with a CVSS base score of 4.0/10. Review the CVSS metrics above for detailed severity breakdown.

Is there a patch for CVE-2025-27220?

Check the references section above for vendor advisories and patch information. Affected products include: Ruby-Lang Cgi, Ruby-Lang Ruby.