Vulnerability Details : CVE-2018-7212
An issue was discovered in rack-protection/lib/rack/protection/path_traversal.rb in Sinatra 2.x before 2.0.1 on Windows. Path traversal is possible via backslash characters.
Vulnerability category: Directory traversal
Products affected by CVE-2018-7212
- cpe:2.3:a:sinatrarb:sinatra:2.0.0:*:*:*:*:*:*:*
- cpe:2.3:a:sinatrarb:sinatra:2.0.0:rc2:*:*:*:*:*:*
- cpe:2.3:a:sinatrarb:sinatra:2.0.0:rc4:*:*:*:*:*:*
- cpe:2.3:a:sinatrarb:sinatra:2.0.0:rc5:*:*:*:*:*:*
- cpe:2.3:a:sinatrarb:sinatra:2.0.0:rc6:*:*:*:*:*:*
- cpe:2.3:a:sinatrarb:sinatra:2.0.0:beta2:*:*:*:*:*:*
- cpe:2.3:a:sinatrarb:sinatra:2.0.0:rc1:*:*:*:*:*:*
- cpe:2.3:a:sinatrarb:sinatra:2.0.0:rc3:*:*:*:*:*:*
- cpe:2.3:a:sinatrarb:sinatra:2.0.1:rc1:*:*:*:*:*:*
Exploit prediction scoring system (EPSS) score for CVE-2018-7212
0.08%
Probability of exploitation activity in the next 30 days
EPSS Score History
~ 34 %
Percentile, the proportion of vulnerabilities that are scored at or less
CVSS scores for CVE-2018-7212
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.0/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-2018-7212
-
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-2018-7212
-
https://github.com/sinatra/sinatra/commit/6ad721abcfe36334108dcdd05d046c361e1b7a9c
Merge pull request #1387 from namusyaka/update-changelog · sinatra/sinatra@6ad721a · GitHubThird Party Advisory
-
https://github.com/sinatra/sinatra/pull/1379
enhanced path validation in Windows by orangetw · Pull Request #1379 · sinatra/sinatra · GitHubIssue Tracking;Third Party Advisory
Jump to