CVE-2019-18978: Path Traversal
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 Software
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Upgrade
Upgrade
debian/ruby-rack-corsto a version that resolves this vulnerability.Fixed in 1.1.1-1Fixed in 2.0.2-1Fixed in 3.0.0-1 - Upgrade
Upgrade
rack-corsto a version that resolves this vulnerability.Fixed in 1.0.4
Event History
Frequently Asked Questions
What is the severity of CVE-2019-18978?
CVE-2019-18978 is classified as a medium severity vulnerability that allows directory traversal to access private resources.
How do I fix CVE-2019-18978?
To fix CVE-2019-18978, upgrade the rack-cors gem to version 1.0.4 or later.
What versions of rack-cors are affected by CVE-2019-18978?
CVE-2019-18978 affects rack-cors versions prior to 1.0.4.
In which software environments is CVE-2019-18978 present?
CVE-2019-18978 is present in Ruby applications using the rack-cors gem in specific versions on Debian and Ubuntu.
What can happen if CVE-2019-18978 is exploited?
If exploited, CVE-2019-18978 can allow an attacker to access sensitive private resources through directory traversal.