{"id":"GHSA-pf8f-w267-mq2h","summary":"The rack-cors rubygem may allow directory traveral","details":"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.","aliases":["CVE-2019-18978"],"modified":"2024-02-16T05:35:12.435226Z","published":"2019-11-15T20:26:59Z","database_specific":{"cwe_ids":["CWE-22"],"severity":"MODERATE","github_reviewed":true,"github_reviewed_at":"2019-11-15T20:26:35Z","nvd_published_at":"2019-11-14T21:15:00Z"},"references":[{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2019-18978"},{"type":"WEB","url":"https://github.com/cyu/rack-cors/commit/e4d4fc362a4315808927011cbe5afcfe5486f17d"},{"type":"PACKAGE","url":"https://github.com/cyu/rack-cors"},{"type":"WEB","url":"https://github.com/cyu/rack-cors/compare/v1.0.3...v1.0.4"},{"type":"WEB","url":"https://lists.debian.org/debian-lts-announce/2020/02/msg00004.html"},{"type":"WEB","url":"https://lists.debian.org/debian-lts-announce/2020/10/msg00000.html"},{"type":"WEB","url":"https://usn.ubuntu.com/4571-1"},{"type":"WEB","url":"https://www.debian.org/security/2021/dsa-4918"}],"affected":[{"package":{"name":"rack-cors","ecosystem":"RubyGems","purl":"pkg:gem/rack-cors"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"1.0.4"}]}],"versions":["0.1.0","0.1.1","0.2.0","0.2.2","0.2.4","0.2.5","0.2.6","0.2.7","0.2.8","0.2.9","0.3.0","0.3.1","0.4.0","0.4.1","1.0.0","1.0.1","1.0.2","1.0.3"],"database_specific":{"source":"https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2019/11/GHSA-pf8f-w267-mq2h/GHSA-pf8f-w267-mq2h.json"}}],"schema_version":"1.9.0","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N"}]}