CVE-2025-27220: ruby-lang cgi
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 56.6% of scored vulnerabilities.
Not severe (CVSS 4, network access); no exploitation reported by the 5 checked sources
Source freshness unavailable
How is this decided?Advisory lineage
Upstream 0 · Downstream 10 · 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 versions- 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
57%
Versus all other CVEs
30-day change
No change 0.00 pp
From 0.76% on 04-11-2026
Known exploited
Compare KEV catalogsNot in the CISA KEV catalog.
Not in the ENISA CNW catalog.
Not in the CIRCL catalog.
Public exploits
0 foundNo public exploits indexed.
Weaknesses
CWE · root causeAffected systems
Known conditions: network-reachable, no authentication, no user interaction (CVSS vector). Other conditions: not stated in public data.
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.1< 3.1.7-1~deb12u2 | All 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