{"cve":"CVE-2026-34785","nvd":{"published":"2026-04-02T17:16:24.873","modified":"2026-07-24T21:10:00.143","status":"Modified","description":"Rack is a modular Ruby web server interface. Prior to versions 2.2.23, 3.1.21, and 3.2.6, Rack::Static determines whether a request should be served as a static file using a simple string prefix check. When configured with URL prefixes such as \"/css\", it matches any request path that begins with that string, including unrelated paths such as \"/css-config.env\" or \"/css-backup.sql\". As a result, files under the static root whose names merely share the configured prefix may be served unintentionally, leading to information disclosure. This issue has been patched in versions 2.2.23, 3.1.21, and 3.2.6.","cvss_v4":null,"cvss_v3":{"version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N","score":7.5},"cwes":["CWE-187","CWE-200","CWE-552"],"references":["https://github.com/rack/rack/security/advisories/GHSA-h2jq-g4cq-5ppq","https://access.redhat.com/security/cve/CVE-2026-34785","https://bugzilla.redhat.com/show_bug.cgi?id=2454486","https://security.access.redhat.com/data/csaf/v2/vex/2026/cve-2026-34785.json"],"products":["rack:rack"],"source":"nvd","synced_at":"2026-10-19T22:28:18.033120106+00:00"},"epss":{"cve":"CVE-2026-34785","score":0.00394,"percentile":0.33644,"date":"2026-10-31"},"kev":null,"osv":[{"id":"GHSA-h2jq-g4cq-5ppq","url":"https://osv.dev/vulnerability/GHSA-h2jq-g4cq-5ppq","summary":"Rack::Static prefix matching can expose unintended files under the static root","modified":"2026-09-10T03:51:01.819837916Z","packages":[{"ecosystem":"RubyGems","name":"rack","purl":"pkg:gem/rack","ranges":["<2.2.23"],"fixed":["2.2.23"]},{"ecosystem":"RubyGems","name":"rack","purl":"pkg:gem/rack","ranges":[">=3.0.0.beta1 <3.1.21"],"fixed":["3.1.21"]},{"ecosystem":"RubyGems","name":"rack","purl":"pkg:gem/rack","ranges":[">=3.2.0 <3.2.6"],"fixed":["3.2.6"]}]}],"attribution":["This product uses the NVD API but is not endorsed or certified by the NVD.","EPSS scores: FIRST Exploit Prediction Scoring System, https://www.first.org/epss","Known exploited vulnerabilities: CISA Known Exploited Vulnerabilities Catalog, https://www.cisa.gov/known-exploited-vulnerabilities-catalog","Package advisories: OSV (https://osv.dev), from the GitHub Advisory Database, PyPA, Go, RustSec and other ecosystem databases, under CC-BY 4.0 or CC0","CVE records: the CVE Program's CVE List (https://www.cve.org), under its terms of use (https://www.cve.org/Legal/TermsOfUse). CVE is a registered trademark of The MITRE Corporation; this product is not affiliated with the CVE Program."]}