RubySec

Providing security resources for the Ruby community

CVE-2019-18978 (rack-cors): rack-cors directory traversal via path

ADVISORIES

GEM

rack-cors

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.