CVE-2025-27610
Local File Inclusion in Rack::Static
Reported by github_m · Published March 10, 2025
rack is fixed in 3.1.12, 3.0.14 and 2.2.13 (RubyGems)
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.
Fixed versions
Upgrade to a fixed version or later. Language registries are listed first, then Linux distributions, then vendor products.
| Package | Ecosystem | Fixed in |
|---|---|---|
| rack | RubyGems | 3.1.12, 3.0.14, 2.2.13 |
| ruby3.4-rails-8.0 | Wolfi | 8.0.2-r0 |
| logstash-8 | Wolfi | 8.17.3-r2 |
| kube-fluentd-operator | Chainguard | 1.18.2-r31 |
| ruby3.4-rails-7.2 | Chainguard | 7.2.2.1-r4 |
| ruby3.2-rails-7.1 | Chainguard | 7.1.5.1-r4 |
| ruby3.2-rack-2.2 | Chainguard | 2.2.22-r0 |
| logstash-8 | Chainguard | 8.17.3-r2 |
| ruby3.4-rails-8.0 | Chainguard | 8.0.2-r0 |
| gitlab-cng-17.9 | Wolfi | 17.9.2-r2 |
Risk scores
Affected products
| Vendor | Product | Versions |
|---|---|---|
| rack | rack | < 2.2.13, >= 3.0, < 3.0.14, >= 3.1, < 3.1.12 |
| wolfi | ruby3.4-rails-8.0 | 0 |
| wolfi | logstash-8 | 0 |
| chainguard | kube-fluentd-operator | 0 |
| RubyGems | rack | 3.1, 3.0, 0 |
| chainguard | ruby3.4-rails-7.2 | 0 |
| chainguard | ruby3.2-rails-7.1 | 0 |
| chainguard | ruby3.2-rack-2.2 | 0 |
| chainguard | logstash-8 | 0 |
| chainguard | ruby3.4-rails-8.0 | 0 |
| wolfi | gitlab-cng-17.9 | 0 |
| rack | rack | 3.0, 3.1, 0 |
| chainguard | gitlab-cng-17.9 | 0 |
| wolfi | ruby3.2-rails-8.0 | 0 |
| chainguard | ruby3.3-rack-2.2 | 0 |
| wolfi | kube-fluentd-operator | 0 |
| wolfi | ruby3.4-rack-2.2 | 0 |
| chainguard | logstash-jre-bcfips | 0 |
| chainguard | ruby4.0-rack-2.2 | 0 |
| chainguard | ruby3.3-rails-7.1 | 0 |
…and 9 more
Timeline
- Mar 10, 2025 CVE Published
- Mar 11, 2025 EPSS Score (30 in total, the first dated here)
- Nov 22, 2025 CVE Updated
- Mar 17, 2026 Security Advisory (7 in total, the first dated here)
- Jun 15, 2026 Coalition ESS Score
- Aug 10, 2026 Distribution Patch (6 in total, the first dated here)
Query this with the API
The same record, from the CLI:
vulnetix vdb vuln CVE-2025-27610
vulnetix vdb fixes CVE-2025-27610
Or with curl, using the org id and key from your account page:
curl -s -H "Authorization: ApiKey ${VULNETIX_ORG_ID}:${VULNETIX_API_KEY}" \
"https://api.vdb.vulnetix.com/v2/vuln/CVE-2025-27610/fixes/registry"
The Community plan is free and allows 50 queries a day. Get a free API key · API quickstart
References
- https://github.com/rack/rack/security/advisories/GHSA-7wqh-767x-r66v x_refsource_CONFIRM
- https://github.com/rack/rack/commit/50caab74fa01ee8f5dbdee7bb2782126d20c6583 x_refsource_MISC
- https://nvd.nist.gov/vuln/detail/CVE-2025-27610 advisory
- https://github.com/advisories/GHSA-7wqh-767x-r66v advisory
- https://github.com/rack/rack url
- https://github.com/rubysec/ruby-advisory-db/blob/master/gems/rack/CVE-2025-27610.yml advisory
- https://lists.debian.org/debian-lts-announce/2025/03/msg00016.html url