VDB

CVE-2025-27610

CVE-2025-27610 PUBLISHED CVSS 7.5 HIGH

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.

PackageEcosystemFixed in
rackRubyGems3.1.12, 3.0.14, 2.2.13
ruby3.4-rails-8.0Wolfi8.0.2-r0
logstash-8Wolfi8.17.3-r2
kube-fluentd-operatorChainguard1.18.2-r31
ruby3.4-rails-7.2Chainguard7.2.2.1-r4
ruby3.2-rails-7.1Chainguard7.1.5.1-r4
ruby3.2-rack-2.2Chainguard2.2.22-r0
logstash-8Chainguard8.17.3-r2
ruby3.4-rails-8.0Chainguard8.0.2-r0
gitlab-cng-17.9Wolfi17.9.2-r2

Risk scores

CVSS 3.1
7.5
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N

Affected products

VendorProductVersions
rackrack< 2.2.13, >= 3.0, < 3.0.14, >= 3.1, < 3.1.12
wolfiruby3.4-rails-8.00
wolfilogstash-80
chainguardkube-fluentd-operator0
RubyGemsrack3.1, 3.0, 0
chainguardruby3.4-rails-7.20
chainguardruby3.2-rails-7.10
chainguardruby3.2-rack-2.20
chainguardlogstash-80
chainguardruby3.4-rails-8.00
wolfigitlab-cng-17.90
rackrack3.0, 3.1, 0
chainguardgitlab-cng-17.90
wolfiruby3.2-rails-8.00
chainguardruby3.3-rack-2.20
wolfikube-fluentd-operator0
wolfiruby3.4-rack-2.20
chainguardlogstash-jre-bcfips0
chainguardruby4.0-rack-2.20
chainguardruby3.3-rails-7.10

…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

Look up in the Resolve Platform →
$ Lookup Community · 50/day Open Lookup ›