# CVE-2025-27220

- Priority: **Routine**
- Reason: Not severe (CVSS 4, network access); no exploitation reported by the 5 checked sources
- Next step: Fix in the normal cadence
- Status: published
- Published: 2025-03-03 · Modified: 2025-11-03
- Aliases: UBUNTU-CVE-2025-27220, DEBIAN-CVE-2025-27220, CGA-24pg-gj46-pxvm, CGA-2554-96j2-86r9, CGA-2832-cxrr-jmwx, CGA-2mg8-4qr9-hfcv, CGA-436w-6f8c-4hw9, CGA-4rw6-hjwv-664r, CGA-4vg8-9hrg-36hp, CGA-656h-v6ff-q84w, CGA-6xcq-m45r-cg9v, CGA-9594-xrf5-6hwm, CGA-cfp2-4r93-448w, CGA-f9v5-3xwm-p9qr, CGA-ffxc-5jv4-fph6, CGA-fj6h-frx9-33f3, CGA-j5gj-c6v3-rpp5, CGA-m6p3-h5v6-j7cf, CGA-mcf7-j5r8-466m, CGA-mr5h-8c75-pq7v, CGA-p2hv-947g-2j69, CGA-pvgc-f49w-hfpj, CGA-qfrj-qxwc-87gc, CGA-r4pg-hhh9-7wrr, CGA-v5w6-hq88-gfw5, CGA-vfq9-rjh8-3hgr, CGA-vqqc-3f77-8pg4, CGA-wv75-ww2g-xgpw, CGA-2vxm-cc6c-r2qx, CGA-348h-7926-prc8, CGA-3fc3-6524-7vmh, CGA-3j55-2cw4-7x44, CGA-57jm-457r-v5rp, CGA-684f-r28h-7vfg, CGA-69xc-h6xx-5wm6, CGA-6j26-w4qj-pr4j, CGA-76m7-2c7q-hvr8, CGA-7ghw-72q5-cwq6, CGA-7jfh-97gh-7mc5, CGA-84j5-p52p-g2gr, CGA-87q4-2mv3-799v, CGA-89gj-5j8p-3prv, CGA-8cfx-jx4c-pjx4, CGA-8r7x-5pxv-j7f7, CGA-9xq7-99p9-jvwx, CGA-cqx2-vrj2-93qg, CGA-f8ch-c35w-6fg3, CGA-fghj-9qqm-pvc2, CGA-fm4p-p4qv-3mv4, CGA-g67m-wxmj-fxwp, CGA-gpxq-vgjh-5gwg, CGA-h7xx-gj8m-9wfg, CGA-hxx6-cq7f-rxmw, CGA-j8m2-8cjg-q8rp, CGA-jq6v-ff85-fqcx, CGA-mc2w-r225-g45j, GHSA-mhwm-jh88-3gjf, CGA-pwmq-h62f-f6c7, CGA-q3qf-crvc-f529, CGA-qg8f-gxq3-gxv9, CGA-qjcv-f74x-h6m4, CGA-qvgg-rrwh-6j8j, CGA-r6hx-6wc9-86g7, CGA-r9cm-jxvp-q764, CGA-r9pg-fhv6-rvp9, CGA-rh48-j3g3-q6r3, CGA-rr9g-mqm7-cq5f, CGA-rxhg-gcv4-723r, CGA-vhxg-g49j-cr3m, CGA-wr3c-wxgm-3c5w, CGA-x8mv-2h6p-5hmm
- Record: https://cvemate.com/vulnerability/CVE-2025-27220 · JSON: https://cvemate.com/vulnerability/CVE-2025-27220/json

## Description

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

## Signals

- CVSS: 7.5 high (v3.1, NVD) CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
- EPSS: 0.76%, percentile 56.653%, as of 2026-12-04
- Known exploited (KEV): CISA not listed, ENISA not listed, CIRCL not listed
- Ransomware use: none recorded
- Public exploits: 0

## Affected (first 20 of 57)

- chainguard elasticsearch-8.17 (Chainguard): \< 8.17.10-r13
- chainguard jruby-9.4 (Chainguard): \< 9.4.14.0-r0
- chainguard jruby-9.4-default-ruby (Chainguard): \< 9.4.14.0-r0
- chainguard logstash-8-with-output-opensearch (Chainguard): All versions (No fix recorded)
- chainguard logstash-8.17 (Chainguard): All versions (No fix recorded)
- chainguard logstash-8.17-iamguarded-compat (Chainguard): All versions (No fix recorded)
- chainguard logstash-8.17-with-output-opensearch (Chainguard): All versions (No fix recorded)
- chainguard logstash-8.18 (Chainguard): All versions (No fix recorded)
- chainguard logstash-8.18-iamguarded-compat (Chainguard): All versions (No fix recorded)
- chainguard logstash-8.18-with-output-opensearch (Chainguard): All versions (No fix recorded)
- chainguard logstash-8.19 (Chainguard): \< 8.19.19-r0
- chainguard logstash-8.19-iamguarded-compat (Chainguard): \< 8.19.19-r0
- chainguard logstash-8.19-with-output-opensearch (Chainguard): \< 8.19.19-r0
- chainguard logstash-9.0 (Chainguard): All versions (No fix recorded)
- chainguard logstash-9.0-iamguarded-compat (Chainguard): All versions (No fix recorded)
- chainguard logstash-9.0-with-output-opensearch (Chainguard): All versions (No fix recorded)
- chainguard logstash-9.1 (Chainguard): \< 9.1.8-r0 \| \< 9.1.10-r3
- chainguard logstash-9.1-bitnami-compat (Chainguard): \< 9.1.10-r3
- chainguard logstash-9.1-iamguarded-compat (Chainguard): \< 9.1.10-r3
- chainguard logstash-9.1-with-output-opensearch (Chainguard): \< 9.1.10-r3

## References

- <https://hackerone.com/reports/2890322>
- <https://github.com/rubysec/ruby-advisory-db/blob/master/gems/cgi/CVE-2025-27220.yml>
- <https://lists.debian.org/debian-lts-announce/2025/03/msg00008.html>
- <https://ubuntu.com/security/CVE-2025-27220>
- <https://www.cve.org/CVERecord?id=CVE-2025-27220>
- <https://ubuntu.com/security/notices/USN-7418-1>
- <https://ubuntu.com/security/notices/USN-7442-1>
- <https://security-tracker.debian.org/tracker/CVE-2025-27220>
- <https://github.com/CVEProject/cvelistV5/tree/main/cves/2025/27xxx/CVE-2025-27220.json>
- <https://nvd.nist.gov/vuln/detail/CVE-2025-27220>
- <https://github.com/ruby/cgi/pull/52>
- <https://github.com/ruby/cgi/pull/53>
- <https://github.com/ruby/cgi/pull/54>
- <https://github.com/ruby/cgi>
- <https://www.ruby-lang.org/en/news/2025/02/26/security-advisories>

---

Data as of 2026-12-05T05:32:12.675Z. The priority label is CveMate's own model from public evidence, not an official rating, and it knows nothing about your assets. How labels are decided: https://cvemate.com/faq#priority
