Path traversal in Rack CORS Middleware - CVE-2019-18978

 

Path traversal in Rack CORS Middleware - CVE-2019-18978

Published: February 10, 2020 / Updated: February 10, 2020


Vulnerability identifier: #VU25103
CSH Severity: Medium
CVSS v4.0: CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:N/VA:N/SC:N/SI:N/SA:N/E:U/U:Green
CVE-ID: CVE-2019-18978
CWE-ID: CWE-22
Exploitation vector: Remote access
Exploit availability: No public exploit available
Vendor: Calvin Yu
Affected software:
Rack CORS Middleware

Detailed vulnerability description

The vulnerability allows a remote attacker to perform directory traversal attacks.

The vulnerability exists due to resource matching does not ensure that pathnames are in a canonical format when processing directory traversal sequences. A remote attacker can send a specially crafted HTTP request and read arbitrary files on the system.


How to mitigate CVE-2019-18978

Install update from vendor's website.

Sources