rack-cors directory traversal via path
Published: November 15, 2019
SECURITY IDENTIFIERS
- CVE: CVE-2019-18978 (NVD)
- GHSA: GHSA-pf8f-w267-mq2h
- Vendor Advisory: https://github.com/cyu/rack-cors/commit/e4d4fc362a4315808927011cbe5afcfe5486f17d
GEM
SEVERITY
CVSS v3.x: 5.3 (Medium)
PATCHED VERSIONS
>= 1.0.4
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.
