CVE-2019-18978: An issue was discovered in the rack-cors (aka Rack CORS Middleware) gem before 1.0.4 for Ruby
CVE-2019-18978 is a medium-severity flaw (CVSS 5.3) affecting rack-cors, debian linux, ubuntu linux. Below: why it ranks where it does, which versions are affected, what to do, and the exact commands.
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.
Why this priority
- Remotely exploitable, no login, no user action
- On your watchlist
A fixed release or distro patch exists.
Risk facts
| CVSS score | 5.3 (Medium) |
| Attack vector | Network (remote) |
| Attack complexity | Low |
| Privileges needed | None |
| User interaction | None |
| EPSS exploit chance | 2.5% (top 16%) |
| CISA exploited list | No |
| Weakness | CWE-22 |
| Published | 2019-11-14 |
| Last modified | 2026-06-17 |
Last updated 2026-06-17 · Sources: CVE Program, NVD, CISA KEV, EPSS and vendor advisories · How we score
Am I affected?
Timeline
- Published CVE record published
- Updated Record last modified
Scores and fixes here are computed automatically from those and other public sources. Confirm with the vendor advisory before changing production systems.
Quick answers
How do I fix CVE-2019-18978?
rack-cors: upgrade to 1.0.4; debian linux: mitigate or apply the listed mitigation; ubuntu linux: mitigate or apply the listed mitigation. Exact commands for each OS are on this page.
Is CVE-2019-18978 being exploited?
CVE-2019-18978 is not on the CISA Known Exploited Vulnerabilities list at the time of the last update. Check again, as this can change.
What does CVE-2019-18978 affect?
CVE-2019-18978 affects rack-cors, debian linux, ubuntu linux. Severity is medium (CVSS 5.3). 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.
How urgent is CVE-2019-18978?
Priority 50/100. Remotely exploitable, no login, no user action; On your watchlist
Software pages
Ubuntu vulnerabilities · Debian vulnerabilities · Ruby vulnerabilities
Related CVEs
- CVE-2017-11173 HIGH 8.8 UPGRADE MITIGATE Missing anchor in generated regex for rack-cors before 0.4.1 allows a malicious third-party site to perform CO