CVE-2025-27220

Source
https://cve.org/CVERecord?id=CVE-2025-27220
Import Source
https://storage.googleapis.com/osv-test-cve-osv-conversion/osv-output/CVE-2025-27220.json
JSON Data
https://api.test.osv.dev/v1/vulns/CVE-2025-27220
Aliases
Downstream
AZL (2)
CGA (96)
CLEANSTART (2)
CLSA (1)
DEBIAN (1)
ECHO (1)
MGASA (1)
MINI (13)
OESA (5)
RHSA (3)
RLSA (3)
SUSE (2)
UBUNTU (1)
Related
Published
2025-03-03T00:00:00Z
Modified
2026-07-17T20:59:29Z
Severity
  • 4.0 (Medium) CVSS_V3 - CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:C/C:N/I:N/A:L CVSS Calculator
Summary
[none]
Details

In the CGI gem before 0.4.2 for Ruby, a Regular Expression Denial of Service (ReDoS) vulnerability exists in the Util#escapeElement method.

Database specific
{
    "cna_assigner":  "mitre",
    "cwe_ids":  [
        "CWE-1333"
    ],
    "osv_generated_from":  "https://github.com/CVEProject/cvelistV5/tree/main/cves/2025/27xxx/CVE-2025-27220.json",
    "unresolved_ranges":  [
        {
            "extracted_events":  [
                {
                    "fixed":  "0.3.5.1"
                },
                {
                    "introduced":  "0.3.6"
                },
                {
                    "fixed":  "0.3.7"
                },
                {
                    "introduced":  "0.4.0"
                },
                {
                    "fixed":  "0.4.2"
                }
            ],
            "source":  "AFFECTED_FIELD"
        },
        {
            "extracted_events":  [
                {
                    "fixed":  "0.3.5.1"
                },
                {
                    "introduced":  "0.3.6"
                },
                {
                    "fixed":  "0.3.7"
                },
                {
                    "introduced":  "0.4.0"
                },
                {
                    "fixed":  "0.4.2"
                }
            ],
            "source":  "CPE_FIELD"
        },
        {
            "extracted_events":  [
                {
                    "fixed":  "0.4.2"
                }
            ],
            "source":  "DESCRIPTION"
        }
    ]
}
References

Affected packages

Git / github.com/ruby/cgi

Affected ranges

Type
GIT
Repo
https://github.com/ruby/cgi
Events
Database specific
Show details
{
    "cpe":  [
        "cpe:2.3:a:ruby-lang:cgi:*:*:*:*:*:ruby:*:*",
        "cpe:2.3:a:ruby-lang:cgi:0.3.6:*:*:*:*:ruby:*:*"
    ],
    "extracted_events":  [
        {
            "introduced":  "0"
        },
        {
            "fixed":  "0.3.5.1"
        },
        {
            "introduced":  "0.4.0"
        },
        {
            "fixed":  "0.4.2"
        },
        {
            "introduced":  "0.3.6"
        },
        {
            "last_affected":  "0.3.6"
        }
    ],
    "source":  [
        "CPE_RANGE",
        "CPE_STRING"
    ]
}

Affected versions

0.*
0.3.6
v0.*
v0.1.0
v0.2.0
v0.3.0
v0.3.1
v0.3.2
v0.3.3
v0.3.4
v0.3.5
v0.4.0
v0.4.1
v0.4.2.beta1
v0.4.2.beta2

Database specific

source
"https://storage.googleapis.com/osv-test-cve-osv-conversion/osv-output/CVE-2025-27220.json"