CVE-2019-18978
MEDIUM 5.3CVSS 3.1The rack-cors rubygem may allow directory traveral
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.
- Published
- 14 Nov 2019
- Last modified
- 17 Jun 2026
- Assigned by
- cve@mitre.org
- NVD status
- Modified
- Weakness
- CWE-22
- Also known as
- GHSA-pf8f-w267-mq2h
- Sources
- NVDJSONOSV GHSA-pf8f-w267-mq2hJSON
Scores
| Source | Scored by | Version | Score | Vector / decision |
|---|---|---|---|---|
| NVD | nvd@nist.gov (Primary) | CVSS 3.1 | MEDIUM 5.3 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N |
| OSV | GitHub | CVSS 3.1 | MEDIUM 5.3 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N |
| NVD | nvd@nist.gov (Primary) | CVSS 2.0 | MEDIUM 5.0 | AV:N/AC:L/Au:N/C:P/I:N/A:N |
Affected
| Source | Vendor / ecosystem | Product / package | Affected versions | Fixed in |
|---|---|---|---|---|
| NVD | rack-cors_project | rack-corscpe:2.3:a:rack-cors_project:rack-cors:*:*:*:*:*:ruby:*:* |
< 1.0.4 | 1.0.4 |
| NVD | debian | debian_linuxcpe:2.3:o:debian:debian_linux:8.0:*:*:*:*:*:*:* |
= 8.0 | |
| NVD | debian | debian_linuxcpe:2.3:o:debian:debian_linux:9.0:*:*:*:*:*:*:* |
= 9.0 | |
| NVD | debian | debian_linuxcpe:2.3:o:debian:debian_linux:10.0:*:*:*:*:*:*:* |
= 10.0 | |
| NVD | canonical | ubuntu_linuxcpe:2.3:o:canonical:ubuntu_linux:16.04:*:*:*:esm:*:*:* |
= 16.04 | |
| OSV | RubyGems | rack-cors | < 1.0.4 | 1.0.4 |
References
- https://github.com/cyu/rack-cors/commit/e4d4fc362a4315808927011cbe5afcfe5486f17d · Patch, Third Party Advisory, WEB
- https://github.com/cyu/rack-cors/compare/v1.0.3...v1.0.4 · Patch, Third Party Advisory, WEB
- https://lists.debian.org/debian-lts-announce/2020/02/msg00004.html · Mailing List, Third Party Advisory, WEB
- https://lists.debian.org/debian-lts-announce/2020/10/msg00000.html · Mailing List, Third Party Advisory, WEB
- https://usn.ubuntu.com/4571-1/ · Third Party Advisory, WEB
- https://www.debian.org/security/2021/dsa-4918 · Third Party Advisory, WEB
- https://nvd.nist.gov/vuln/detail/CVE-2019-18978 · ADVISORY
- https://github.com/cyu/rack-cors · PACKAGE
History
- 25 Nov 2026 20:31 UTC · NVD: first stored (published 14 Nov 2019)
- 25 Nov 2026 20:14 UTC · OSV: first stored (published 15 Nov 2019)