{"id":"CVE-2019-18978","aliases":["CVE-2019-18978","GHSA-pf8f-w267-mq2h"],"related":[],"kind":"vulnerability","state":"published","title":"The rack-cors rubygem may allow directory traveral","summary":"An issue was discovered in the rack-cors (aka Rack CORS Middleware) gem before 1.0.4 for Ruby. It allows ../ directory traversal to access private resources because resource matching does not ensure that pathnames are in a canonical format.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"An issue was discovered in the rack-cors (aka Rack CORS Middleware) gem before 1.0.4 for Ruby. It allows ../ directory traversal to access private resources because resource matching does not ensure that pathnames are in a canonical format.","source":"cvelist"},{"lang":"es","text":"Se descubrió un problema en la gema rack-cors (también se conoce como Rack CORS Middleware) versiones anteriores a la versión 1.0.4 para Ruby. Permite que un salto de directorio ../  acceda a recursos privados porque la coincidencia de recursos no garantiza que los nombres de ruta estén en formato canónico.","source":"nvd"}],"published":"2019-11-14T20:21:24.000Z","modified":"2026-06-17T02:25:39.227Z","severity":{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N","score":5.3,"rating":"MEDIUM"},"severities":[{"scorer":"GitHub","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N","score":5.3,"rating":"MEDIUM"},{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N","score":5.3,"rating":"MEDIUM"},{"scorer":"NVD","scheme":"CVSS:2.0","vector":"AV:N/AC:L/Au:N/C:P/I:N/A:N","score":5,"rating":"MEDIUM"}],"cwes":["CWE-22"],"affected":[{"ranges":[{"version":"n/a","status":"affected"}],"source":"cvelist"},{"ranges":[{"type":"ecosystem","introduced":"0","status":"affected","fixed":"1.0.4"}],"ecosystem":"RubyGems","package":"rack-cors","purl":"pkg:gem/rack-cors","source":"ghsa"},{"ranges":[{"status":"affected","fixed":"1.0.4"}],"vendor":"rack-cors_project","product":"rack-cors","cpe":"cpe:2.3:a:rack-cors_project:rack-cors:*:*:*:*:*:ruby:*:*","source":"nvd"},{"ranges":[{"status":"affected","version":"8.0"},{"status":"affected","version":"9.0"},{"status":"affected","version":"10.0"}],"vendor":"debian","product":"debian_linux","cpe":"cpe:2.3:o:debian:debian_linux:8.0:*:*:*:*:*:*:*","source":"nvd"},{"ranges":[{"status":"affected","version":"16.04"}],"vendor":"canonical","product":"ubuntu_linux","cpe":"cpe:2.3:o:canonical:ubuntu_linux:16.04:*:*:*:esm:*:*:*","source":"nvd"}],"references":[{"url":"https://github.com/cyu/rack-cors/commit/e4d4fc362a4315808927011cbe5afcfe5486f17d","tags":["patch","third-party-advisory","web","x-refsource-misc","x-transferred"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://github.com/cyu/rack-cors/compare/v1.0.3...v1.0.4","tags":["patch","third-party-advisory","web","x-refsource-misc","x-transferred"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://lists.debian.org/debian-lts-announce/2020/02/msg00004.html","tags":["mailing-list","third-party-advisory","web","x-refsource-mlist","x-transferred"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://lists.debian.org/debian-lts-announce/2020/10/msg00000.html","tags":["mailing-list","third-party-advisory","web","x-refsource-mlist","x-transferred"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://usn.ubuntu.com/4571-1/","tags":["third-party-advisory","vendor-advisory","x-refsource-ubuntu","x-transferred"],"sources":["cvelist","nvd"]},{"url":"https://www.debian.org/security/2021/dsa-4918","tags":["third-party-advisory","vendor-advisory","web","x-refsource-debian","x-transferred"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2019-18978","tags":["advisory"],"sources":["ghsa"]},{"url":"https://github.com/cyu/rack-cors","tags":["package"],"sources":["ghsa"]},{"url":"https://usn.ubuntu.com/4571-1","tags":["web"],"sources":["ghsa"]}],"credits":[],"assigner":"mitre","sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2019-18978","url":"https://www.cve.org/CVERecord?id=CVE-2019-18978","licence":"CVE Terms of Use","modified":"2024-08-05T02:02:39.801Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-pf8f-w267-mq2h","url":"https://github.com/advisories/GHSA-pf8f-w267-mq2h","licence":"CC-BY-4.0","modified":"2024-02-16T08:21:36.004Z"},{"source":"nvd","name":"NVD","id":"CVE-2019-18978","url":"https://nvd.nist.gov/vuln/detail/CVE-2019-18978","licence":"Public domain","modified":"2026-06-17T02:25:39.227Z"}],"updatedAt":"2026-11-25T22:57:48.066Z","epss":{"score":0.02462,"percentile":0.84904,"date":"2026-12-01T12:00:22.000Z"}}