{"id":"CVE-2025-27610","published":"2025-03-10T22:19:25Z","modified":"2025-11-03T21:13:28Z","title":"Local File Inclusion in Rack::Static","vendor":"rack","product":"rack","tier":"tail","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.","provenance":"source","from":"CVE.org"},"cvss":{"score":7.5,"severity":"HIGH","version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.01173,"percentile":0.68265,"provenance":"source"},"cwes":[{"id":"CWE-23","name":"Relative Path Traversal"}],"references":[{"url":"https://github.com/rack/rack/security/advisories/GHSA-7wqh-767x-r66v","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/rack/rack/commit/50caab74fa01ee8f5dbdee7bb2782126d20c6583","tags":["x_refsource_MISC"]},{"url":"https://lists.debian.org/debian-lts-announce/2025/03/msg00016.html","tags":[]}],"priority":{"score":18.9,"factors":[{"name":"EPSS percentile","points":13.65},{"name":"CVSS severity","points":5.25}]},"vendorSlug":"rack","affectedVersions":[{"vendor":"rack","product":"rack","versions":["< 2.2.13",">= 3.0, < 3.0.14",">= 3.1, < 3.1.12"]}],"ssvc":{"exploitation":"none","automatable":"yes","technicalImpact":"partial","timestamp":"2025-03-11T15:22:45.488436Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"RubyGems","package":"rack","vulnerableRanges":["<2.2.13",">=3.0, <3.0.14",">=3.1, <3.1.12"],"patched":["2.2.13","3.0.14","3.1.12"],"from":["GHSA-7wqh-767x-r66v"],"provenance":"source"}],"summary":{"text":"Rack::Static in the rack product, a Ruby interface for building web applications, does not properly sanitise user-supplied paths, so encoded path traversal sequences are not correctly validated and files can be served from the specified root directory even when urls: is set. An attacker with network access and no authentication or user interaction can read any file under the configured root: directory, provided they can determine the path of the file, and this is possible only in deployments using Rack::Static, which is affected prior to versions 2.2.13, 3.0.14 and 3.1.12.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T20:33:37Z"},"euvd":{"id":"EUVD-2025-7800","exploited":false,"provenance":"source"},"lineage":{"packageHistory":[{"cve":"CVE-2025-32441","published":"2025-05-07","fixed":"2.2.14","kev":false,"link":{"from":"CVE-2025-27610","to":"CVE-2025-32441","relation":"successor","confidence":"low","kind":"sequence","evidence":[{"kind":"version-step","provenance":"source","package":"RubyGems:rack","fromFixed":"2.2.13","toFixed":"2.2.14","daysApart":58}]}},{"cve":"CVE-2024-39316","published":"2024-07-02","fixed":"3.1.5","kev":false},{"cve":"CVE-2025-25184","published":"2025-02-12","fixed":"3.1.10","kev":false},{"cve":"CVE-2025-27111","published":"2025-03-04","fixed":"3.1.11","kev":false,"link":{"from":"CVE-2025-27111","to":"CVE-2025-27610","relation":"successor","confidence":"low","kind":"sequence","evidence":[{"kind":"version-step","provenance":"source","package":"RubyGems:rack","fromFixed":"2.2.12","toFixed":"2.2.13","daysApart":6},{"kind":"version-step","provenance":"source","package":"RubyGems:rack","fromFixed":"3.0.13","toFixed":"3.0.14","daysApart":6}]}},{"cve":"CVE-2025-27610","published":"2025-03-10","fixed":"3.1.12","kev":false},{"cve":"CVE-2025-46727","published":"2025-05-07","fixed":"3.1.14","kev":false,"link":{"from":"CVE-2025-27610","to":"CVE-2025-46727","relation":"successor","confidence":"low","kind":"sequence","evidence":[{"kind":"version-step","provenance":"source","package":"RubyGems:rack","fromFixed":"2.2.13","toFixed":"2.2.14","daysApart":58},{"kind":"version-step","provenance":"source","package":"RubyGems:rack","fromFixed":"3.0.14","toFixed":"3.0.16","daysApart":58}]}},{"cve":"CVE-2025-49007","published":"2025-06-04","fixed":"3.1.16","kev":false},{"cve":"CVE-2025-61770","published":"2025-10-07","fixed":"3.2.2","kev":false}],"package":"RubyGems:rack"}}