Vulnerability Details : CVE-2019-18978
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.
Vulnerability category: Directory traversal
Products affected by CVE-2019-18978
- cpe:2.3:o:debian:debian_linux:8.0:*:*:*:*:*:*:*
- cpe:2.3:o:debian:debian_linux:9.0:*:*:*:*:*:*:*
- cpe:2.3:o:debian:debian_linux:10.0:*:*:*:*:*:*:*
- cpe:2.3:o:canonical:ubuntu_linux:16.04:*:*:*:esm:*:*:*
- cpe:2.3:a:rack-cors_project:rack-cors:*:*:*:*:*:ruby:*:*
Exploit prediction scoring system (EPSS) score for CVE-2019-18978
0.42%
Probability of exploitation activity in the next 30 days
EPSS Score History
~ 74 %
Percentile, the proportion of vulnerabilities that are scored at or less
CVSS scores for CVE-2019-18978
Base Score | Base Severity | CVSS Vector | Exploitability Score | Impact Score | Score Source | First Seen |
---|---|---|---|---|---|---|
5.0
|
MEDIUM | AV:N/AC:L/Au:N/C:P/I:N/A:N |
10.0
|
2.9
|
NIST | |
5.3
|
MEDIUM | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N |
3.9
|
1.4
|
NIST |
CWE ids for CVE-2019-18978
-
The product uses external input to construct a pathname that is intended to identify a file or directory that is located underneath a restricted parent directory, but the product does not properly neutralize special elements within the pathname that can cause the pathname to resolve to a location that is outside of the restricted directory.Assigned by: nvd@nist.gov (Primary)
References for CVE-2019-18978
-
https://lists.debian.org/debian-lts-announce/2020/10/msg00000.html
[SECURITY] [DLA 2389-1] ruby-rack-cors security updateMailing List;Third Party Advisory
-
https://github.com/cyu/rack-cors/compare/v1.0.3...v1.0.4
Comparing v1.0.3...v1.0.4 · cyu/rack-cors · GitHubPatch;Third Party Advisory
-
https://lists.debian.org/debian-lts-announce/2020/02/msg00004.html
[SECURITY] [DLA 2096-1] ruby-rack-cors security updateMailing List;Third Party Advisory
-
https://usn.ubuntu.com/4571-1/
USN-4571-1: rack-cors vulnerability | Ubuntu security notices | UbuntuThird Party Advisory
-
https://github.com/cyu/rack-cors/commit/e4d4fc362a4315808927011cbe5afcfe5486f17d
Unescape and resolve paths before resource checks · cyu/rack-cors@e4d4fc3 · GitHubPatch;Third Party Advisory
-
https://www.debian.org/security/2021/dsa-4918
Debian -- Security Information -- DSA-4918-1 ruby-rack-corsThird Party Advisory
Jump to