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
Related
Published
2025-03-03T00:00:00Z
Modified
2026-06-15T12:21:16.946187584Z
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
{
    "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2025/27xxx/CVE-2025-27220.json",
    "cna_assigner": "mitre",
    "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"
        }
    ],
    "cwe_ids": [
        "CWE-1333"
    ]
}
References

Affected packages

Git / github.com/ruby/cgi

Affected ranges

Type
GIT
Repo
https://github.com/ruby/cgi
Events
Introduced
0 Unknown introduced commit / All previous commits are affected
Fixed
Introduced
Fixed
Database specific
{
    "extracted_events": [
        {
            "introduced": "0"
        },
        {
            "fixed": "0.3.5.1"
        },
        {
            "last_affected": "0.3.6"
        },
        {
            "introduced": "0.4.0"
        },
        {
            "fixed": "0.4.2"
        }
    ],
    "cpe": [
        "cpe:2.3:a:ruby-lang:cgi:*:*:*:*:*:ruby:*:*",
        "cpe:2.3:a:ruby-lang:cgi:0.3.6:*:*:*:*:ruby:*:*"
    ],
    "source": [
        "CPE_RANGE",
        "CPE_STRING"
    ]
}

Affected versions

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"