{
  "affected": [
    {
      "ranges": [
        {
          "database_specific": {
            "extracted_events": [
              {
                "range": [
                  {
                    "introduced": "2.2.0"
                  },
                  {
                    "fixed": "2.2.26"
                  }
                ],
                "source": "AFFECTED_FIELD",
                "strategy": "StringRangeExpression"
              },
              {
                "range": [
                  {
                    "introduced": "3.0.0"
                  },
                  {
                    "fixed": "3.1.24"
                  }
                ],
                "source": "AFFECTED_FIELD",
                "strategy": "StringRangeExpression"
              },
              {
                "range": [
                  {
                    "introduced": "3.2.0"
                  },
                  {
                    "fixed": "3.2.9"
                  }
                ],
                "source": "AFFECTED_FIELD",
                "strategy": "StringRangeExpression"
              },
              {
                "range": [
                  {
                    "fixed": "42af7a7b10c54021e060e52c91a590a5d5f2a48d"
                  }
                ],
                "source": "REFERENCES_COMMIT"
              },
              {
                "range": [
                  {
                    "fixed": "c7102e91e4a1ee832b006790de31b3d5b207b89e"
                  }
                ],
                "source": "REFERENCES_COMMIT"
              },
              {
                "range": [
                  {
                    "fixed": "d73bdad9e2ebec7217ecd3e9bbc079f076b0d120"
                  }
                ],
                "source": "REFERENCES_COMMIT"
              },
              {
                "original_tag": "v2.2.26",
                "range": [
                  {
                    "fixed": "320778d0cdd17d8791d986626e2d09084d32c84d"
                  }
                ],
                "source": "REFERENCES_TAG"
              },
              {
                "original_tag": "v3.1.24",
                "range": [
                  {
                    "fixed": "f1ebc3d8c3eea89908b931db76b131fea9bda52b"
                  }
                ],
                "source": "REFERENCES_TAG"
              },
              {
                "original_tag": "v3.2.9",
                "range": [
                  {
                    "fixed": "52941a02842fd956e3c5532147116354a0240149"
                  }
                ],
                "source": "REFERENCES_TAG"
              }
            ]
          },
          "events": [
            {
              "introduced": "39d501a28c1fe51284addfe6dacffafb69d49849"
            },
            {
              "fixed": "320778d0cdd17d8791d986626e2d09084d32c84d"
            },
            {
              "introduced": "52901caf09ebcda879512a8605059963a49df55d"
            },
            {
              "fixed": "f1ebc3d8c3eea89908b931db76b131fea9bda52b"
            },
            {
              "introduced": "b68251c03788ff39d4a4b25424df7360426e4afd"
            },
            {
              "fixed": "52941a02842fd956e3c5532147116354a0240149"
            },
            {
              "fixed": "42af7a7b10c54021e060e52c91a590a5d5f2a48d"
            },
            {
              "fixed": "c7102e91e4a1ee832b006790de31b3d5b207b89e"
            },
            {
              "fixed": "d73bdad9e2ebec7217ecd3e9bbc079f076b0d120"
            }
          ],
          "repo": "https://github.com/rack/rack",
          "type": "GIT"
        }
      ]
    }
  ],
  "aliases": [
    "GHSA-mhj6-xc86-54m8"
  ],
  "database_specific": {
    "cna_assigner": "GitHub_M",
    "cwe_ids": [
      "CWE-22",
      "CWE-59"
    ],
    "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/142xxx/CVE-2026-142593.json"
  },
  "details": "Rack is a modular Ruby web server interface. From 2.2.0 until 2.2.26, 3.1.24, and 3.2.9, Rack::Directory#get checks a path containing dot-dot segments with File.expand_path but then passes the original unnormalized path to File.stat and Dir.foreach instead of first applying Utils.clean_path_info. Earlier Rack versions reject every path containing dot-dot and are not affected. When a directory beneath the served root is a symbolic link followed by .., the operating system resolves the link before applying the dot-dot segment, allowing an unauthenticated request to list the target's parent or siblings outside the root. The disclosure is limited to directory entry names, sizes, and modification times because Rack::Files normalizes paths before serving file contents. This issue is fixed in versions 2.2.26, 3.1.24, and 3.2.9.",
  "id": "CVE-2026-142593",
  "modified": "2026-12-02T22:45:45.497726931Z",
  "published": "2026-12-02T21:39:42.905Z",
  "references": [
    {
      "type": "ADVISORY",
      "url": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/142xxx/CVE-2026-142593.json"
    },
    {
      "type": "FIX",
      "url": "https://github.com/rack/rack/commit/42af7a7b10c54021e060e52c91a590a5d5f2a48d"
    },
    {
      "type": "FIX",
      "url": "https://github.com/rack/rack/commit/c7102e91e4a1ee832b006790de31b3d5b207b89e"
    },
    {
      "type": "FIX",
      "url": "https://github.com/rack/rack/commit/d73bdad9e2ebec7217ecd3e9bbc079f076b0d120"
    },
    {
      "type": "WEB",
      "url": "https://github.com/rack/rack/releases/tag/v2.2.26"
    },
    {
      "type": "WEB",
      "url": "https://github.com/rack/rack/releases/tag/v3.1.24"
    },
    {
      "type": "WEB",
      "url": "https://github.com/rack/rack/releases/tag/v3.2.9"
    },
    {
      "type": "ADVISORY",
      "url": "https://github.com/rack/rack/security/advisories/GHSA-mhj6-xc86-54m8"
    },
    {
      "type": "ADVISORY",
      "url": "https://nvd.nist.gov/vuln/detail/CVE-2026-142593"
    }
  ],
  "schema_version": "1.9.2",
  "severity": [
    {
      "score": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N",
      "type": "CVSS_V3"
    }
  ],
  "summary": "Rack: `Rack::Directory` lists directories outside the root when `..` follows a symbolic link."
}