{"id":"UBUNTU-CVE-2019-18978","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.","modified":"2026-02-04T04:20:33.502315Z","published":"2019-11-14T21:15:00Z","related":["USN-4571-1"],"upstream":["CVE-2019-18978"],"references":[{"type":"REPORT","url":"https://ubuntu.com/security/CVE-2019-18978"},{"type":"REPORT","url":"https://github.com/cyu/rack-cors/compare/v1.0.3...v1.0.4"},{"type":"ADVISORY","url":"https://ubuntu.com/security/notices/USN-4571-1"},{"type":"REPORT","url":"https://www.cve.org/CVERecord?id=CVE-2019-18978"}],"affected":[{"package":{"name":"ruby-rack-cors","ecosystem":"Ubuntu:16.04:LTS","purl":"pkg:deb/ubuntu/ruby-rack-cors@0.4.0-1+deb9u2build0.16.04.1?arch=source&distro=xenial"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"0.4.0-1+deb9u2build0.16.04.1"}]}],"versions":["0.4.0-1","0.4.0-1+deb9u1build0.16.04.1"],"ecosystem_specific":{"availability":"No subscription required","binaries":[{"binary_version":"0.4.0-1+deb9u2build0.16.04.1","binary_name":"ruby-rack-cors"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2019/UBUNTU-CVE-2019-18978.json"}},{"package":{"name":"ruby-rack-cors","ecosystem":"Ubuntu:18.04:LTS","purl":"pkg:deb/ubuntu/ruby-rack-cors@1.0.1-2?arch=source&distro=bionic"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["0.4.1-1","1.0.1-2"],"ecosystem_specific":{"binaries":[{"binary_version":"1.0.1-2","binary_name":"ruby-rack-cors"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2019/UBUNTU-CVE-2019-18978.json"}}],"schema_version":"1.7.3","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N"},{"type":"Ubuntu","score":"medium"}]}