CVE-2025-27220
CVE-2025-27220 is a medium-severity vulnerability in Ruby-lang Cgi with a CVSS 3.x base score of 4.0. It is not currently listed as actively exploited by CISA, and its EPSS exploit-prediction score is low. The underlying weakness is classified as CWE-1333.
Key facts
- Severity: Medium (CVSS 3.x base score 4.0)
- EPSS exploit prediction: 1% (49th percentile)
- Actively exploited: Not listed in CISA KEV
- EU (EUVD) id: EUVD-2025-5509
- Weakness: CWE-1333
- Affected product: Ruby-lang Cgi
- Published:
- Last modified:
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.
Frequently asked questions
- What is CVE-2025-27220?
- In the CGI gem before 0.4.2 for Ruby, a Regular Expression Denial of Service (ReDoS) vulnerability exists in the Util#escapeElement method.
- How severe is CVE-2025-27220?
- CVE-2025-27220 has a CVSS 3.x base score of 4.0, rated medium severity. It is exploitable over network with high attack complexity, requires no privileges and no user interaction. Impact on confidentiality is none, integrity none, and availability low.
- Is CVE-2025-27220 being actively exploited?
- It is not currently listed in CISA's KEV catalog. Its EPSS exploit-prediction score is 1% (49th percentile), an estimate of the probability of exploitation in the next 30 days.
- What products are affected by CVE-2025-27220?
- CVE-2025-27220 primarily affects Ruby-lang Cgi. In total, 2 product configurations (CPEs) are listed as vulnerable; see the affected-products list for the exact versions.
- How do I fix CVE-2025-27220?
- Review the linked vendor and NVD advisories for patched versions and mitigations, then upgrade or apply the recommended workaround.
- Does CVE-2025-27220 have an EU (EUVD) identifier?
- Yes. CVE-2025-27220 is tracked in the ENISA EU Vulnerability Database (EUVD) as EUVD-2025-5509.
- When was CVE-2025-27220 published?
- CVE-2025-27220 was published on 2025-03-04 and last updated on 2026-06-17.
References
- https://github.com/rubysec/ruby-advisory-db/blob/master/gems/cgi/CVE-2025-27220.yml
- https://hackerone.com/reports/2890322
- https://lists.debian.org/debian-lts-announce/2025/03/msg00008.html
Affected products (2)
- cpe:2.3:a:ruby-lang:cgi:*:*:*:*:*:ruby:*:*
- cpe:2.3:a:ruby-lang:cgi:0.3.6:*:*:*:*:ruby:*:*
More vulnerabilities in Ruby-lang Cgi
- CVE-2021-41816 — Critical (CVSS 9.8): CGI.escape_html in Ruby before 2.7.5 and 3.x before 3.0.3 has an integer overflow and resultant buffer overflow via a…
- CVE-2021-33621 — High (CVSS 8.8): The cgi gem before 0.1.0.2, 0.2.x before 0.2.2, and 0.3.x before 0.3.5 for Ruby allows HTTP response splitting. This is…
- CVE-2021-41819 — High (CVSS 7.5): CGI::Cookie.parse in Ruby through 2.6.8 mishandles security prefixes in cookie names. This also affects the CGI gem…
- CVE-2025-27219 — Medium (CVSS 5.8): In the CGI gem before 0.4.2 for Ruby, the CGI::Cookie.parse method in the CGI library contains a potential Denial of…
All CVEs affecting Ruby-lang Cgi →
Other CWE-1333 vulnerabilities
- CVE-2026-35458 — Critical (CVSS 9.8): Gotenberg is an API for converting document formats. In 8.29.1 and earlier, Gotenberg uses dlclark/regexp2 to compile…
- CVE-2023-29486 — Critical (CVSS 9.8): An issue was discovered in Heimdal Thor agent versions 3.4.2 and before 3.7.0 on Windows, allows attackers to bypass…
- CVE-2026-25547 — Critical (CVSS 9.2): @isaacs/brace-expansion is a hybrid CJS/ESM TypeScript fork of brace-expansion. Prior to version 5.0.1,…
- CVE-2023-29487 — Critical (CVSS 9.1): An issue was discovered in Heimdal Thor agent versions 3.4.2 and before on Windows and 2.6.9 and before on macOS,…
- CVE-2026-47138 — High (CVSS 8.7): Parse Server is an open source backend that can be deployed to any infrastructure that can run Node.js. Prior to…
- CVE-2025-6998 — High (CVSS 8.7): ReDoS in strip_whitespaces() function in cps/string_helper.py in Calibre Web and Autocaliweb allows unauthenticated…