{"id":"CVE-2026-22860","aliases":["CVE-2026-22860","GHSA-mxw3-3hh2-x2mh"],"related":[],"kind":"vulnerability","state":"published","title":"Rack has a Directory Traversal via Rack:Directory","summary":"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.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"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.","source":"cvelist"},{"lang":"en","text":"## Summary\n\n`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.\n\n## Details\n\nIn `directory.rb`, `File.expand_path(File.join(root, path_info)).start_with?(root)` does not enforce a path boundary. If the server root is `/var/www/root`, a path like `/var/www/root_backup` passes the check because it shares the same prefix, so `Rack::Directory` will list that directory also. \n\n## Impact\n\nInformation disclosure via directory listing outside the configured root when `Rack::Directory` is exposed to untrusted clients and a directory shares the root prefix (e.g., `public2`, `www_backup`).\n\n## Mitigation\n\n* Update to a patched version of Rack that correctly checks the root prefix.\n* Don't name directories with the same prefix as one which is exposed via `Rack::Directory`.","format":"markdown","source":"ghsa"},{"lang":"es","text":"Rack es una interfaz modular de servidor web Ruby. Antes de las versiones 2.2.22, 3.1.20 y 3.2.5, la verificación de ruta de 'Rack::Directory' utilizaba una coincidencia de prefijo de cadena en la ruta expandida. Una solicitud como '/../root_example/' puede escapar de la raíz configurada si la ruta de destino comienza con la cadena raíz, permitiendo la enumeración de directorios fuera de la raíz prevista. Las versiones 2.2.22, 3.1.20 y 3.2.5 solucionan el problema.","source":"nvd"}],"published":"2026-02-17T16:14:11.000Z","modified":"2026-09-10T03:50:35.448Z","severity":{"scorer":"GitHub_M","scheme":"CVSS: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,"rating":"HIGH"},"severities":[{"scorer":"GitHub_M","scheme":"CVSS: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,"rating":"HIGH"},{"scorer":"redhat-SADP","scheme":"CVSS: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,"rating":"HIGH"},{"scorer":"GitHub","scheme":"CVSS: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,"rating":"HIGH"}],"cwes":["CWE-22","CWE-548"],"affected":[{"ranges":[{"version":"< 2.2.22","status":"affected"},{"version":">= 3.0.0.beta1, < 3.1.20","status":"affected"},{"version":">= 3.2.0, < 3.2.5","status":"affected"}],"vendor":"rack","product":"rack","source":"cvelist"},{"ranges":[],"vendor":"Red Hat","product":"Logging Subsystem for Red Hat OpenShift","package":"openshift-logging/cluster-logging-operator-bundle","cpe":"cpe:/a:redhat:logging:5","source":"cvelist"},{"ranges":[],"vendor":"Red Hat","product":"Logging Subsystem for Red Hat OpenShift","package":"openshift-logging/cluster-logging-rhel9-operator","cpe":"cpe:/a:redhat:logging:5","source":"cvelist"},{"ranges":[],"vendor":"Red Hat","product":"Logging Subsystem for Red Hat OpenShift","package":"openshift-logging/eventrouter-rhel9","cpe":"cpe:/a:redhat:logging:5","source":"cvelist"},{"ranges":[],"vendor":"Red Hat","product":"Logging Subsystem for Red Hat OpenShift","package":"openshift-logging/fluentd-rhel9","cpe":"cpe:/a:redhat:logging:5","source":"cvelist"},{"ranges":[],"vendor":"Red Hat","product":"Logging Subsystem for Red Hat OpenShift","package":"openshift-logging/log-file-metric-exporter-rhel9","cpe":"cpe:/a:redhat:logging:5","source":"cvelist"},{"ranges":[],"vendor":"Red Hat","product":"Logging Subsystem for Red Hat OpenShift","package":"openshift-logging/logging-view-plugin-rhel9","cpe":"cpe:/a:redhat:logging:5","source":"cvelist"},{"ranges":[],"vendor":"Red Hat","product":"Logging Subsystem for Red Hat OpenShift","package":"openshift-logging/vector-rhel9","cpe":"cpe:/a:redhat:logging:5","source":"cvelist"},{"ranges":[],"vendor":"Red Hat","product":"Red Hat 3scale API Management Platform 2","package":"3scale-amp20/backend","cpe":"cpe:/a:redhat:red_hat_3scale_amp:2","source":"cvelist"},{"ranges":[],"vendor":"Red Hat","product":"Red Hat 3scale API Management Platform 2","package":"3scale-amp20/system","cpe":"cpe:/a:redhat:red_hat_3scale_amp:2","source":"cvelist"},{"ranges":[],"vendor":"Red Hat","product":"Red Hat 3scale API Management Platform 2","package":"3scale-amp21/backend","cpe":"cpe:/a:redhat:red_hat_3scale_amp:2","source":"cvelist"},{"ranges":[],"vendor":"Red Hat","product":"Red Hat 3scale API Management Platform 2","package":"3scale-amp21/system","cpe":"cpe:/a:redhat:red_hat_3scale_amp:2","source":"cvelist"},{"ranges":[],"vendor":"Red Hat","product":"Red Hat 3scale API Management Platform 2","package":"3scale-amp21/zync","cpe":"cpe:/a:redhat:red_hat_3scale_amp:2","source":"cvelist"},{"ranges":[],"vendor":"Red Hat","product":"Red Hat 3scale API Management Platform 2","package":"3scale-amp22/backend","cpe":"cpe:/a:redhat:red_hat_3scale_amp:2","source":"cvelist"},{"ranges":[],"vendor":"Red Hat","product":"Red Hat 3scale API Management Platform 2","package":"3scale-amp22/system","cpe":"cpe:/a:redhat:red_hat_3scale_amp:2","source":"cvelist"},{"ranges":[],"vendor":"Red Hat","product":"Red Hat 3scale API Management Platform 2","package":"3scale-amp22/zync","cpe":"cpe:/a:redhat:red_hat_3scale_amp:2","source":"cvelist"},{"ranges":[],"vendor":"Red Hat","product":"Red Hat 3scale API Management Platform 2","package":"3scale-amp24/backend","cpe":"cpe:/a:redhat:red_hat_3scale_amp:2","source":"cvelist"},{"ranges":[],"vendor":"Red Hat","product":"Red Hat 3scale API Management Platform 2","package":"3scale-amp24/system","cpe":"cpe:/a:redhat:red_hat_3scale_amp:2","source":"cvelist"},{"ranges":[],"vendor":"Red Hat","product":"Red Hat 3scale API Management Platform 2","package":"3scale-amp24/zync","cpe":"cpe:/a:redhat:red_hat_3scale_amp:2","source":"cvelist"},{"ranges":[],"vendor":"Red Hat","product":"Red Hat 3scale API Management Platform 2","package":"3scale-amp25/backend","cpe":"cpe:/a:redhat:red_hat_3scale_amp:2","source":"cvelist"},{"ranges":[],"vendor":"Red Hat","product":"Red Hat 3scale API Management Platform 2","package":"3scale-amp25/system","cpe":"cpe:/a:redhat:red_hat_3scale_amp:2","source":"cvelist"},{"ranges":[],"vendor":"Red Hat","product":"Red Hat 3scale API Management Platform 2","package":"3scale-amp25/zync","cpe":"cpe:/a:redhat:red_hat_3scale_amp:2","source":"cvelist"},{"ranges":[],"vendor":"Red Hat","product":"Red Hat 3scale API Management Platform 2","package":"3scale-amp26/backend","cpe":"cpe:/a:redhat:red_hat_3scale_amp:2","source":"cvelist"},{"ranges":[],"vendor":"Red Hat","product":"Red Hat 3scale API Management Platform 2","package":"3scale-amp26/system","cpe":"cpe:/a:redhat:red_hat_3scale_amp:2","source":"cvelist"},{"ranges":[],"vendor":"Red Hat","product":"Red Hat 3scale API Management Platform 2","package":"3scale-amp26/zync","cpe":"cpe:/a:redhat:red_hat_3scale_amp:2","source":"cvelist"},{"ranges":[],"vendor":"Red Hat","product":"Red Hat 3scale API Management Platform 2","package":"3scale-amp2/backend-rhel7","cpe":"cpe:/a:redhat:red_hat_3scale_amp:2","source":"cvelist"},{"ranges":[],"vendor":"Red Hat","product":"Red Hat 3scale API Management Platform 2","package":"3scale-amp2/backend-rhel8","cpe":"cpe:/a:redhat:red_hat_3scale_amp:2","source":"cvelist"},{"ranges":[],"vendor":"Red Hat","product":"Red Hat 3scale API Management Platform 2","package":"3scale-amp2/system-rhel7","cpe":"cpe:/a:redhat:red_hat_3scale_amp:2","source":"cvelist"},{"ranges":[],"vendor":"Red Hat","product":"Red Hat 3scale API Management Platform 2","package":"3scale-amp2/system-rhel8","cpe":"cpe:/a:redhat:red_hat_3scale_amp:2","source":"cvelist"},{"ranges":[],"vendor":"Red Hat","product":"Red Hat 3scale API Management Platform 2","package":"3scale-amp2/system-rhel9","cpe":"cpe:/a:redhat:red_hat_3scale_amp:2","source":"cvelist"},{"ranges":[],"vendor":"Red Hat","product":"Red Hat 3scale API Management Platform 2","package":"3scale-amp2/zync-rhel7","cpe":"cpe:/a:redhat:red_hat_3scale_amp:2","source":"cvelist"},{"ranges":[],"vendor":"Red Hat","product":"Red Hat 3scale API Management Platform 2","package":"3scale-amp2/zync-rhel8","cpe":"cpe:/a:redhat:red_hat_3scale_amp:2","source":"cvelist"},{"ranges":[],"vendor":"Red Hat","product":"Red Hat 3scale API Management Platform 2","package":"3scale-amp2/zync-rhel9","cpe":"cpe:/a:redhat:red_hat_3scale_amp:2","source":"cvelist"},{"ranges":[],"vendor":"Red Hat","product":"Red Hat Enterprise Linux 10","package":"pcs","cpe":"cpe:/o:redhat:enterprise_linux:10","source":"cvelist"},{"ranges":[],"vendor":"Red Hat","product":"Red Hat Enterprise Linux 7","package":"pcs","cpe":"cpe:/o:redhat:enterprise_linux:7","source":"cvelist"},{"ranges":[],"vendor":"Red Hat","product":"Red Hat Enterprise Linux 8","package":"pcs","cpe":"cpe:/o:redhat:enterprise_linux:8","source":"cvelist"},{"ranges":[],"vendor":"Red Hat","product":"Red Hat Enterprise Linux 9","package":"pcs","cpe":"cpe:/o:redhat:enterprise_linux:9","source":"cvelist"},{"ranges":[{"type":"ecosystem","introduced":"0","status":"affected","fixed":"2.2.22"}],"ecosystem":"RubyGems","package":"rack","purl":"pkg:gem/rack","source":"ghsa"},{"ranges":[{"type":"ecosystem","introduced":"3.0.0.beta1","status":"affected","fixed":"3.1.20"}],"ecosystem":"RubyGems","package":"rack","purl":"pkg:gem/rack","source":"ghsa"},{"ranges":[{"type":"ecosystem","introduced":"3.2.0","status":"affected","fixed":"3.2.5"}],"ecosystem":"RubyGems","package":"rack","purl":"pkg:gem/rack","source":"ghsa"},{"ranges":[{"status":"affected","fixed":"2.2.22"},{"status":"affected","introduced":"3.0.0","fixed":"3.1.20"},{"status":"affected","introduced":"3.2.0","fixed":"3.2.5"}],"vendor":"rack","product":"rack","cpe":"cpe:2.3:a:rack:rack:*:*:*:*:*:ruby:*:*","source":"nvd"}],"references":[{"url":"https://github.com/rack/rack/security/advisories/GHSA-mxw3-3hh2-x2mh","tags":["exploit","mitigation","vendor-advisory","web","x-refsource-confirm"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://github.com/rack/rack/commit/75c5745c286637a8f049a33790c71237762069e7","tags":["patch","web","x-refsource-misc"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://access.redhat.com/security/cve/CVE-2026-22860","tags":["vdb-entry","x-refsource-redhat"],"sources":["cvelist","nvd"]},{"url":"https://bugzilla.redhat.com/show_bug.cgi?id=2440737","tags":["issue-tracking","x-refsource-redhat"],"sources":["cvelist","nvd"]},{"url":"https://security.access.redhat.com/data/csaf/v2/vex/2026/cve-2026-22860.json","tags":["x-sadp-csaf-vex"],"sources":["cvelist","nvd"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2026-22860","tags":["advisory"],"sources":["ghsa"]},{"url":"https://github.com/rack/rack","tags":["package"],"sources":["ghsa"]},{"url":"https://github.com/rubysec/ruby-advisory-db/blob/master/gems/rack/CVE-2026-22860.yml","tags":["web"],"sources":["ghsa"]}],"credits":[],"assigner":"GitHub_M","ssvc":{"scorer":"CISA-ADP","exploitation":"none","automatable":"yes","technicalImpact":"partial","date":"2026-02-18T19:27:31.243Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2026-22860","url":"https://www.cve.org/CVERecord?id=CVE-2026-22860","licence":"CVE Terms of Use","modified":"2026-07-15T01:18:57.147Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-mxw3-3hh2-x2mh","url":"https://github.com/advisories/GHSA-mxw3-3hh2-x2mh","licence":"CC-BY-4.0","modified":"2026-09-10T03:50:35.448Z"},{"source":"nvd","name":"NVD","id":"CVE-2026-22860","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-22860","licence":"Public domain","modified":"2026-07-15T02:18:39.003Z"}],"updatedAt":"2026-11-25T22:59:14.009Z","epss":{"score":0.0078,"percentile":0.57117,"date":"2026-12-01T12:00:22.000Z"}}