GHSA-pf8f-w267-mq2hMediumCVSS 5.3
The rack-cors rubygem may allow directory traveral
🔗 CVE IDs covered (1)
📋 Description
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.
🎯 Affected products1
- rubygems/rack-cors:< 1.0.4
🔗 References (8)
- https://nvd.nist.gov/vuln/detail/CVE-2019-18978
- https://github.com/cyu/rack-cors/commit/e4d4fc362a4315808927011cbe5afcfe5486f17d
- https://github.com/cyu/rack-cors/compare/v1.0.3...v1.0.4
- https://lists.debian.org/debian-lts-announce/2020/02/msg00004.html
- https://lists.debian.org/debian-lts-announce/2020/10/msg00000.html
- https://usn.ubuntu.com/4571-1/
- https://www.debian.org/security/2021/dsa-4918
- https://github.com/advisories/GHSA-pf8f-w267-mq2h