{"id":"CVE-2019-18978","published":"2019-11-14T20:21:24Z","modified":"2024-08-05T02:02:39Z","title":"An issue was discovered in the rack-cors (aka Rack CORS Middleware) gem before 1.0.4 for Ruby","vendor":null,"product":null,"tier":"tail","description":{"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.","provenance":"source","from":"CVE.org"},"cvss":null,"epss":{"score":0.02462,"percentile":0.84847,"provenance":"source"},"cwes":[],"references":[{"url":"https://github.com/cyu/rack-cors/commit/e4d4fc362a4315808927011cbe5afcfe5486f17d","tags":["x_refsource_MISC"]},{"url":"https://github.com/cyu/rack-cors/compare/v1.0.3...v1.0.4","tags":["x_refsource_MISC"]},{"url":"https://lists.debian.org/debian-lts-announce/2020/02/msg00004.html","tags":["mailing-list","x_refsource_MLIST"]},{"url":"https://lists.debian.org/debian-lts-announce/2020/10/msg00000.html","tags":["mailing-list","x_refsource_MLIST"]},{"url":"https://usn.ubuntu.com/4571-1/","tags":["vendor-advisory","x_refsource_UBUNTU"]},{"url":"https://www.debian.org/security/2021/dsa-4918","tags":["vendor-advisory","x_refsource_DEBIAN"]}],"priority":{"score":17.0,"factors":[{"name":"EPSS percentile","points":16.97}]},"affected":[{"ecosystem":"RubyGems","package":"rack-cors","vulnerableRanges":["<1.0.4"],"patched":["1.0.4"],"from":["GHSA-pf8f-w267-mq2h"],"provenance":"source"}],"summary":{"text":"The rack-cors (Rack CORS Middleware) gem for Ruby, before version 1.0.4, contains a flaw in its resource matching logic, which does not require request pathnames to be in a canonical format. An attacker who sends requests containing \"../\" directory traversal sequences can reach private resources that the configured CORS rules were meant to restrict, with the specific network, authentication, interaction, and configuration conditions not stated in the available record.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T21:32:03Z"},"euvd":{"id":"EUVD-2019-0758","exploited":false,"provenance":"source"},"lineage":{"familyId":"fam-rack-cors-cve-2017-11173","parents":[{"from":"CVE-2017-11173","to":"CVE-2019-18978","relation":"related","confidence":"medium","kind":"lineage","evidence":[{"kind":"same-code","provenance":"machine","files":["lib/rack/cors.rb"],"commits":["https://github.com/cyu/rack-cors/commit/42ebe6caa8e85ffa9c8a171bda668ba1acc7a5e6","https://github.com/cyu/rack-cors/commit/e4d4fc362a4315808927011cbe5afcfe5486f17d"],"basis":"rarely changed file"}]}]}}