# CVE-2025-27610: Local File Inclusion in Rack::Static

- Priority: **Prioritise**
- Reason: Severe, CVSS 7.5 (CVE.org); no exploitation reported by the 5 checked sources; EPSS 1% (FIRST, 04-12-2026)
- Next step: Check applicability: affected before 2.2.13, 3.0.14, 3.1.12 (CNA); fix release not confirmed
- Status: published
- Published: 2025-03-10 · Modified: 2025-11-03
- Aliases: UBUNTU-CVE-2025-27610, DEBIAN-CVE-2025-27610, CGA-253q-vfrp-v8v7, CGA-45hj-6pjf-56xc, CGA-4766-5vr7-c3p2, CGA-5gjx-4r4c-pcmv, CGA-5r67-9wqg-3hmf, CGA-734j-5fgv-5mr7, CGA-7fv3-r75g-p2c4, CGA-889q-gv58-8rwf, CGA-c3pm-m4wf-x23p, CGA-f4vh-crjw-7hgq, CGA-f9jm-9cxv-6m6h, CGA-g4f7-788v-4p6q, CGA-g65w-4794-397p, CGA-h8w7-7wx4-7j3q, CGA-qjfj-mg4p-7mw3, CGA-vr4j-5xg7-8wjj, CGA-xgp9-742f-vvm5, CGA-xgw3-h439-j5mx, openSUSE-SU-2025:14876-1, CGA-4gh6-3425-x3r5, CGA-5h8q-55q4-f3pc, CGA-6g4j-qg4c-rvxp, CGA-6mff-xg5w-w27r, CGA-786r-rx4q-r9xx, CGA-7wjw-7whg-5v5p, CGA-859v-qgv3-8h95, CGA-8mfg-wv53-gp67, CGA-996q-2x24-xp8f, CGA-9fc4-5cq2-fmcx, CGA-ccf3-9qp8-c93c, CGA-g9mg-623j-9xpj, CGA-gccf-p8qw-f4cc, CGA-h3v5-7jxx-4w7j, CGA-hf7p-887r-7r22, CGA-hphq-3hxv-573x, CGA-jj89-7vmq-8vg7, CGA-m88c-q9pp-79wj, CGA-mg6v-gxrv-cpvp, CGA-mgwj-6hvv-5f6c, CGA-p645-7f79-86gj, CGA-pjcw-3673-hgcq, GHSA-7wqh-767x-r66v, CGA-px29-pj6v-6m87, CGA-px5c-wxpc-j46g, CGA-q6mv-2x2f-2q39, CGA-vf2w-v2xq-7g39, CGA-vmvq-4223-37p8, CGA-xr7h-3pwj-w5cq
- Record: https://cvemate.com/vulnerability/CVE-2025-27610 · JSON: https://cvemate.com/vulnerability/CVE-2025-27610/json

## Description

```text
Rack provides an interface for developing web applications in Ruby. Prior to versions 2.2.13, 3.0.14, and 3.1.12, `Rack::Static` can serve files under the specified `root:` even if `urls:` are provided, which may expose other files under the specified `root:` unexpectedly. The vulnerability occurs because `Rack::Static` does not properly sanitize user-supplied paths before serving files. Specifically, encoded path traversal sequences are not correctly validated, allowing attackers to access files outside the designated static file directory. By exploiting this vulnerability, an attacker can gain access to all files under the specified `root:` directory, provided they are able to determine then path of the file. Versions 2.2.13, 3.0.14, and 3.1.12 contain a patch for the issue. Other mitigations include removing usage of `Rack::Static`, or ensuring that `root:` points at a directory path which only contains files which should be accessed publicly. It is likely that a CDN or similar static file server would also mitigate the issue.
```

## Signals

- CVSS: 7.5 high (v3.1, CVE.org) CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N
- EPSS: 1.173%, percentile 68.549%, 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 37)

- chainguard kube-fluentd-operator (Chainguard): \< 1.18.2-r31
- chainguard kube-fluentd-operator-compat (Chainguard): \< 1.18.2-r31
- chainguard kube-fluentd-operator-default-config (Chainguard): \< 1.18.2-r31
- chainguard kube-fluentd-operator-oci-entrypoint (Chainguard): \< 1.18.2-r31
- chainguard logstash-8-with-output-opensearch (Chainguard): \< 8.17.3-r2
- chainguard ruby3.2-rack-2.2 (Chainguard): \< 2.2.22-r0
- chainguard ruby3.2-rails-7.1 (Chainguard): \< 7.1.5.1-r4
- chainguard ruby3.2-rails-7.1-compat (Chainguard): \< 7.1.5.1-r4
- chainguard ruby3.2-rails-8.0 (Chainguard): \< 8.0.2-r0
- chainguard ruby3.2-rails-8.0-compat (Chainguard): \< 8.0.2-r0
- chainguard ruby3.3-rack-2.2 (Chainguard): \< 2.2.22-r0
- chainguard ruby3.3-rails-7.1 (Chainguard): \< 7.1.5.1-r4
- chainguard ruby3.3-rails-7.1-compat (Chainguard): \< 7.1.5.1-r4
- chainguard ruby3.3-rails-7.2 (Chainguard): \< 7.2.2.1-r4
- chainguard ruby3.3-rails-7.2-compat (Chainguard): \< 7.2.2.1-r4
- chainguard ruby3.4-rack-2.2 (Chainguard): \< 2.2.22-r0
- chainguard ruby3.4-rails-7.1 (Chainguard): \< 7.1.5.1-r4
- chainguard ruby3.4-rails-7.1-compat (Chainguard): \< 7.1.5.1-r4
- chainguard ruby3.4-rails-7.2 (Chainguard): \< 7.2.2.1-r4
- chainguard ruby3.4-rails-7.2-compat (Chainguard): \< 7.2.2.1-r4

## References

- <https://github.com/rack/rack/security/advisories/GHSA-7wqh-767x-r66v>
- <https://github.com/rack/rack/commit/50caab74fa01ee8f5dbdee7bb2782126d20c6583>
- <https://lists.debian.org/debian-lts-announce/2025/03/msg00016.html>
- <https://ubuntu.com/security/CVE-2025-27610>
- <https://www.cve.org/CVERecord?id=CVE-2025-27610>
- <https://ubuntu.com/security/notices/USN-7366-1>
- <https://ubuntu.com/security/notices/USN-7366-2>
- <https://security-tracker.debian.org/tracker/CVE-2025-27610>
- <https://github.com/CVEProject/cvelistV5/tree/main/cves/2025/27xxx/CVE-2025-27610.json>
- <https://nvd.nist.gov/vuln/detail/CVE-2025-27610>
- <https://www.suse.com/security/cve/CVE-2025-27610>
- <https://github.com/rack/rack>
- <https://github.com/rubysec/ruby-advisory-db/blob/master/gems/rack/CVE-2025-27610.yml>

---

Data as of 2026-12-05T08:54:41.235Z. 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
