CVE-2019-18978
Rack-cors Project Rack-cors vulnerability
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 products
Rack-cors, Debian Linux, Ubuntu Linux. The exact versions are in the references.
What to do now
- Check your exposureFind out whether Rack-cors Project Rack-cors runs anywhere in your environment, including systems of suppliers.
- UpdateInstall the version in which the vendor fixed the vulnerability. The references lead to the advisory.
- Limit access until thenIf you cannot update at once, take the system off the internet or restrict who can reach it.
References
- github.com/cyu/rack-cors/commit/e4d4fc362a4315808927011cbe5afcfe5486f17d · Patch
- github.com/cyu/rack-cors/compare/v1.0.3...v1.0.4 · Patch
- lists.debian.org/debian-lts-announce/2020/02/msg00004.html · Third Party Advisory
- lists.debian.org/debian-lts-announce/2020/10/msg00000.html · Third Party Advisory
- usn.ubuntu.com/4571-1/ · Third Party Advisory
- www.debian.org/security/2021/dsa-4918 · Third Party Advisory
- nvd.nist.gov/vuln/detail/CVE-2019-18978
- cve.org/CVERecord?id=CVE-2019-18978
Data: CVE list and the NVD. This product uses data from the NVD API but is not endorsed or certified by the NVD.