GitHub Advisoryadvisory · RubyGems
GHSA-pf8f-w267-mq2h The rack-cors rubygem may allow directory traveral
MEDIUM
Official page ↗
- Aliases
- CVE-2019-18978
- Ecosystem
- RubyGems
- Packages
- rack-cors
- Severity
- Moderate
- CVSS vector
- CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N
- Weaknesses
- CWE-22
- Reviewed
- 2019-11-15
Affected packages
• RubyGems rack-cors: < 1.0.4 → fixed in 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.
Related
Alias · CVE (1)
- CVE-2019-18978 An issue was discovered in the rack-cors (aka Rack CORS Middleware) gem before 1.0.4 for Ruby. vulnerability
Weakness · CWE (1)
- CWE-22 Improper Limitation of a Pathname to a Restricted Directory weakness
References
- https://nvd.nist.gov/vuln/detail/CVE-2019-18978 advisory
- https://github.com/cyu/rack-cors/commit/e4d4fc362a4315808927011cbe5afcfe5486f17d web
- https://github.com/cyu/rack-cors package
- https://github.com/cyu/rack-cors/compare/v1.0.3...v1.0.4 web
- https://lists.debian.org/debian-lts-announce/2020/02/msg00004.html web
- https://lists.debian.org/debian-lts-announce/2020/10/msg00000.html web
- https://usn.ubuntu.com/4571-1 web
- https://www.debian.org/security/2021/dsa-4918 web