Path traversal in Sinatra - CVE-2018-7212

 

Path traversal in Sinatra - CVE-2018-7212

Published: March 2, 2018 / Updated: March 2, 2018


Vulnerability identifier: #VU10819
CSH Severity: Low
CVSS v4.0: CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:L/VI:N/VA:N/SC:N/SI:N/SA:N/E:U/U:Clear
CVE-ID: CVE-2018-7212
CWE-ID: CWE-22
Exploitation vector: Remote access
Exploit availability: No public exploit available
Vendor: Sinatra
Affected software:
Sinatra

Detailed vulnerability description

The vulnerability allows a remote unauthenticated attacker to obtain potentially sensitive information on the target system.

The weakness exists due to insufficient path validation in the rack-protection feature when running on Microsoft Windows systems. A remote attacker can send a specially crafted request with a series of backslash characters, trigger path traversal and access potentially sensitive information.


How to mitigate CVE-2018-7212

Update to version 2.0.1.

Sources