CVE-2025-27220: ruby-lang cgi
CVSS: 7.5v3.1HighModified
AliasesUBUNTU-CVE-2025-27220DEBIAN-CVE-2025-27220CGA-24pg-gj46-pxvmCGA-2554-96j2-86r9CGA-2832-cxrr-jmwxCGA-2mg8-4qr9-hfcvCGA-436w-6f8c-4hw9CGA-4rw6-hjwv-664rCGA-4vg8-9hrg-36hpCGA-656h-v6ff-q84wCGA-6xcq-m45r-cg9vCGA-9594-xrf5-6hwmCGA-cfp2-4r93-448wCGA-f9v5-3xwm-p9qrCGA-ffxc-5jv4-fph6CGA-fj6h-frx9-33f3CGA-j5gj-c6v3-rpp5CGA-m6p3-h5v6-j7cfCGA-mcf7-j5r8-466mCGA-mr5h-8c75-pq7vCGA-p2hv-947g-2j69CGA-pvgc-f49w-hfpjCGA-qfrj-qxwc-87gcCGA-r4pg-hhh9-7wrrCGA-v5w6-hq88-gfw5CGA-vfq9-rjh8-3hgrCGA-vqqc-3f77-8pg4CGA-wv75-ww2g-xgpwCGA-2vxm-cc6c-r2qxCGA-348h-7926-prc8CGA-3fc3-6524-7vmhCGA-3j55-2cw4-7x44CGA-57jm-457r-v5rpCGA-684f-r28h-7vfgCGA-69xc-h6xx-5wm6CGA-6j26-w4qj-pr4jCGA-76m7-2c7q-hvr8CGA-7ghw-72q5-cwq6CGA-7jfh-97gh-7mc5CGA-84j5-p52p-g2grCGA-87q4-2mv3-799vCGA-89gj-5j8p-3prvCGA-8cfx-jx4c-pjx4CGA-8r7x-5pxv-j7f7CGA-9xq7-99p9-jvwxCGA-cqx2-vrj2-93qgCGA-f8ch-c35w-6fg3CGA-fghj-9qqm-pvc2CGA-fm4p-p4qv-3mv4CGA-g67m-wxmj-fxwpCGA-gpxq-vgjh-5gwgCGA-h7xx-gj8m-9wfgCGA-hxx6-cq7f-rxmwCGA-j8m2-8cjg-q8rpCGA-jq6v-ff85-fqcxCGA-mc2w-r225-g45jGHSA-mhwm-jh88-3gjfCGA-pwmq-h62f-f6c7CGA-q3qf-crvc-f529CGA-qg8f-gxq3-gxv9CGA-qjcv-f74x-h6m4CGA-qvgg-rrwh-6j8jCGA-r6hx-6wc9-86g7CGA-r9cm-jxvp-q764CGA-r9pg-fhv6-rvp9CGA-rh48-j3g3-q6r3CGA-rr9g-mqm7-cq5fCGA-rxhg-gcv4-723rCGA-vhxg-g49j-cr3mCGA-wr3c-wxgm-3c5wCGA-x8mv-2h6p-5hmm
Published 03-03-2025Last modified 03-11-2025
Vulnerability summary
CVE-2025-27220 is a high (CVSS 7.5) vulnerability in ruby-lang cgi. EPSS estimates a 0.76% chance of exploitation in the next 30 days, higher than 54.4% of scored vulnerabilities.
CVSS score
7.5/10
010
High · v3.1 (NVD)EPSS score
0.76%
0%100%
Low · +0.01 pp in 30 daysKEVNot listedIn no KEV catalog
RansomwareNone recordedNo known use recorded
Public exploits0No public exploits recorded
Advisory lineage
Upstream 0 · Downstream 9 · Related 7Timeline
- 03-03-2025PublishedVulnerability first disclosed.
- 03-11-2025Last modifiedVulnerability information updated.
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 metrics
8 scores · 7 sources · 2 versionsMedium 6.3Preferred score · OSV · Rubygems (Ecosystem advisory) · calculated from vector
CVSS:4.0/AV:N/AC:H/AT:P/PR:N/UI:N/VC:N/VI:N/VA:L/SC:N/SI:N/SA:NSourcesSingle source
High 7.5Preferred score · NVD (NIST)
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:HSources7 sources · 4.0–7.5
- CVE.orgCNA4.0MediumCVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:C/C:N/I:N/A:LDiffers
- OSV · UbuntuEcosystem advisory · calculated7.5HighCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
- OSV · DebianEcosystem advisory · calculated7.5HighCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
- OSV · WolfiEcosystem advisory · calculated4.0MediumCVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:C/C:N/I:N/A:LDiffers
- OSV · ChainguardEcosystem advisory · calculated4.0MediumCVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:C/C:N/I:N/A:LDiffers
- OSV · RubygemsEcosystem advisory · calculated4.0MediumCVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:C/C:N/I:N/A:LDiffers
EPSS trend
Probability
0.76%
Chance of exploitation in the next 30 days
Percentile
54%
Versus all other CVEs
30-day change
+0.01 pp
From 0.74% on 19-09-2026
19-09-202619-10-2026
EPSS score0.76%
Known exploited
Compare KEV catalogsNot in any of the 3 tracked catalogs.
Public exploits
0 foundNo public exploits indexed.
Weaknesses
CWE · root causeAffected systems
Chainguard33 products
- elasticsearch-8.17< 8.17.10-r13
- jruby-9.4< 9.4.14.0-r0
- jruby-9.4-default-ruby< 9.4.14.0-r0
- logstash-8-with-output-opensearchAll versions (No fix recorded)
- logstash-8.17All versions (No fix recorded)
Wolfi13 products
- jruby-9.4< 9.4.14.0-r0
- jruby-9.4-default-ruby< 9.4.14.0-r0
- logstash-8-with-output-opensearchAll versions (No fix recorded)
- ruby-3.1< 3.1.6-r12
- ruby-3.1-dev< 3.1.6-r12
Ubuntu7 products
- jrubyAll versions (No fix recorded)
- ruby2.3< 2.3.1-2~ubuntu16.04.16+esm10
- ruby2.5< 2.5.1-1ubuntu1.16+esm4
- ruby2.7< 2.7.0-5ubuntu1.18
- ruby3.0< 3.0.2-7ubuntu2.10
Debian2 products
- ruby3.1All versions (No fix recorded)
- ruby3.3< 3.3.7-2
Ruby-lang1 product
- cgi≥ 0.3.6, < 0.3.7 | < 0.3.5.1 | ≥ 0.4.0, < 0.4.2 | 0.3.6
RubyGems1 product
- cgi< 0.3.5.1 | ≥ 0.3.6, < 0.3.7 | ≥ 0.4.0, < 0.4.2
6 vendors · 57 products
References
15 links- github.com/rubysec/ruby-advisory-db/blob/master/gems/cgi/CVE-2025-27220.ymlREPORTAdvisoryWEBThird Party Advisory
Show all 15 references
- github.com/ruby/cgiPACKAGE