CVE-2025-27220

March 5, 2025, 2:58 p.m.

4.0
Low

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.

Product(s) Impacted

Vendor Product Versions
Ruby-lang
  • Cgi
  • Ruby
  • *, 0.3.6
  • 3.1.0, 3.2.0

Weaknesses

Common security weaknesses mapped to this vulnerability.

CWE-1333
Inefficient Regular Expression Complexity
The product uses a regular expression with an inefficient, possibly exponential worst-case computational complexity that consumes excessive CPU cycles.

*CPE(s)

Affected systems and software identified for this CVE.

Type Vendor Product Version Update Edition Language Software Edition Target Software Target Hardware Other Information
a ruby-lang cgi / / / / / ruby / /
a ruby-lang cgi / / / / / ruby / /
a ruby-lang cgi 0.3.6 / / / / ruby / /
a ruby-lang ruby 3.1.0 / / / / / / /
a ruby-lang ruby 3.2.0 / / / / / / /

CVSS Score

4.0 / 10

CVSS Data - 3.1

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

    View Vector String

Timeline

Published: March 4, 2025, 12:15 a.m.
Last Modified: March 5, 2025, 2:58 p.m.

Status : Analyzed

CVE has been recently published to the CVE List and has been received by the NVD.

More info

Source

cve@mitre.org

*Disclaimer: Some vulnerabilities do not have an associated CPE. To enhance the data, we use AI to infer CPEs based on CVE details. This is an automated process and might not always be accurate.