{
  "id": "CVE-2026-22860",
  "url": "https://poc.griffinguard.io/cve/CVE-2026-22860",
  "published_at": "2026-02-18T18:45:02.095Z",
  "title": "Rack has a Directory Traversal via Rack:Directory",
  "vendor": "rack",
  "product": "rack",
  "cvss": {
    "score": 7.5,
    "source": "cna",
    "vector": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N"
  },
  "kev": {
    "in_kev": false,
    "added_at": null,
    "days_after_publication": null
  },
  "first_poc": null,
  "poc_repo_count": 0,
  "exploit_count": 0,
  "suspicious_repo_count": 0,
  "edge_device": null,
  "description": "Rack is a modular Ruby web server interface. Prior to versions 2.2.22, 3.1.20, and 3.2.5, `Rack::Directory`’s path check used a string prefix match on the expanded path. A request like `/../root_example/` can escape the configured root if the target path starts with the root string, allowing directory listing outside the intended root. Versions 2.2.22, 3.1.20, and 3.2.5 fix the issue.",
  "cwe": "CWE-22",
  "cpes": [
    "cpe:2.3:a:rack:rack:*:*:*:*:*:ruby:*:*"
  ],
  "cvss_by_source": {
    "cna": 7.5
  },
  "repos": [],
  "remediation": {
    "affected": [
      {
        "vendor": "rack",
        "product": "rack",
        "ranges": [
          "\u003c 2.2.22",
          "\u003e= 3.0.0.beta1, \u003c 3.1.20",
          "\u003e= 3.2.0, \u003c 3.2.5"
        ],
        "fixed_in": [
          "2.2.22",
          "3.1.20",
          "3.2.5"
        ]
      }
    ],
    "upgrade": [
      "Upgrade rack to 2.2.22 or 3.1.20 or 3.2.5 or later."
    ],
    "references": [
      {
        "kind": "Vendor advisory",
        "url": "https://github.com/rack/rack/security/advisories/GHSA-mxw3-3hh2-x2mh"
      },
      {
        "kind": "Patch",
        "url": "https://github.com/rack/rack/commit/75c5745c286637a8f049a33790c71237762069e7"
      }
    ]
  },
  "exploit_refs": [],
  "hunt_profile": [],
  "rules": []
}
