Skip to content
Heist/ feed
Back to feed
High

Local File Inclusion in Rack::Static

Type: advisorySources: OSV

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.

Products
Not specified
Affected versions
Not specified
Fixed versions
Not specified
CVEs
CVE-2025-27610
Confirmed fixed CVEs
Not specified
Updated in this feed
6 Nov 2026, 09:13 UTC · Revision 1

Source evidence

Local File Inclusion in Rack::Static

core-osv · Original source

Published 10 Mar 2025, 22:19 UTC

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.

osv:CVE-2025-27610
Complete source record
{
  "id": "b098a10ba8af4905662e1f85ec39e21b73f87fde7fa0e36ab775837ac1247c7d",
  "url": "https://osv.dev/vulnerability/CVE-2025-27610",
  "method": "structured",
  "payload": {
    "kind": "advisory",
    "title": "Local File Inclusion in Rack::Static",
    "summary": "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.",
    "evidence": "osv:CVE-2025-27610",
    "products": [],
    "severity": "high",
    "structured": {
      "id": "CVE-2025-27610",
      "aliases": [
        "CVE-2025-27610",
        "GHSA-7wqh-767x-r66v"
      ],
      "metrics": [
        {
          "type": "CVSS_V3",
          "score": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N"
        }
      ],
      "affected": [
        {
          "ranges": [
            {
              "repo": "https://github.com/rack/rack",
              "type": "GIT",
              "events": [
                {
                  "introduced": "0"
                },
                {
                  "fixed": "df6c47357f6c6bec2d585f45f417285d813d9b3a"
                },
                {
                  "introduced": "52901caf09ebcda879512a8605059963a49df55d"
                },
                {
                  "fixed": "340cd1f11f9d6c16c0c50bba2be0062aa661baf0"
                },
                {
                  "introduced": "606365ba1353cbffdf94422c20166dc2e6d6286d"
                },
                {
                  "fixed": "e8f47608668d507e0f231a932fa37c9ca551c0a5"
                },
                {
                  "fixed": "50caab74fa01ee8f5dbdee7bb2782126d20c6583"
                }
              ],
              "database_specific": {
                "extracted_events": [
                  {
                    "cpe": "cpe:2.3:a:rack:rack:*:*:*:*:*:ruby:*:*",
                    "range": [
                      {
                        "introduced": "0"
                      },
                      {
                        "fixed": "2.2.13"
                      }
                    ],
                    "source": "CPE_RANGE"
                  },
                  {
                    "cpe": "cpe:2.3:a:rack:rack:*:*:*:*:*:ruby:*:*",
                    "range": [
                      {
                        "introduced": "3.0.0"
                      },
                      {
                        "fixed": "3.0.14"
                      }
                    ],
                    "source": "CPE_RANGE"
                  },
                  {
                    "cpe": "cpe:2.3:a:rack:rack:*:*:*:*:*:ruby:*:*",
                    "range": [
                      {
                        "introduced": "3.1.0"
                      },
                      {
                        "fixed": "3.1.12"
                      }
                    ],
                    "source": "CPE_RANGE"
                  },
                  {
                    "range": [
                      {
                        "fixed": "50caab74fa01ee8f5dbdee7bb2782126d20c6583"
                      }
                    ],
                    "source": "REFERENCES_COMMIT"
                  }
                ]
              }
            }
          ],
          "versions": [
            "v3.1.11",
            "v3.0.13",
            "v2.2.12",
            "v3.1.10",
            "v3.0.12",
            "v2.2.11",
            "v2.2.10",
            "v3.1.9",
            "v3.1.8",
            "v3.1.7",
            "v2.2.9",
            "v3.1.6",
            "v3.1.5",
            "v3.1.4",
            "v3.1.3",
            "v3.1.2",
            "v3.1.1",
            "v3.1.0",
            "v3.0.10",
            "v3.0.9.1",
            "v2.2.8",
            "v3.0.9",
            "v3.0.8",
            "v3.0.7",
            "v2.2.7",
            "v3.0.6",
            "v3.0.5",
            "v2.2.6.2",
            "v3.0.4.1",
            "v2.2.6.1",
            "v2.2.6",
            "v3.0.4",
            "v3.0.3",
            "v2.2.5",
            "2.2.4",
            "v3.0.2",
            "v3.0.1",
            "3.0.0",
            "2.2.3",
            "v2.2.2",
            "v2.2.1",
            "2.2.0",
            "2.1.0",
            "2.0.1",
            "2.0.0",
            "2.0.0.rc1",
            "2.0.0.alpha",
            "1.6.0.beta",
            "1.5.1",
            "1.5.0",
            "1.4.1",
            "1.4.0",
            "1.3.0",
            "1.3.0.beta2",
            "1.3.0.beta",
            "1.0",
            "0.3",
            "0.2",
            "0.1"
          ],
          "database_specific": {
            "source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2025-27610.json"
          }
        }
      ],
      "modified": "2026-10-28T02:30:47.132662067Z",
      "provider": "osv",
      "references": [
        "https://lists.debian.org/debian-lts-announce/2025/03/msg00016.html",
        "https://github.com/CVEProject/cvelistV5/tree/main/cves/2025/27xxx/CVE-2025-27610.json",
        "https://github.com/rack/rack/security/advisories/GHSA-7wqh-767x-r66v",
        "https://nvd.nist.gov/vuln/detail/CVE-2025-27610",
        "https://github.com/rack/rack/commit/50caab74fa01ee8f5dbdee7bb2782126d20c6583"
      ],
      "provider_metadata": {
        "cwe_ids": [
          "CWE-23"
        ],
        "cna_assigner": "GitHub_M",
        "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2025/27xxx/CVE-2025-27610.json"
      }
    },
    "related_cves": [
      {
        "value": "CVE-2025-27610",
        "evidence": "/id"
      }
    ],
    "security_relevant": true,
    "severity_evidence": "/severity/0/score"
  },
  "source_id": "core-osv",
  "document_id": 515061,
  "published_at": "2025-03-10T22:19:25.982+00:00"
}