Path traversal in Rack CORS Middleware - CVE-2019-18978
Published: February 10, 2020 / Updated: February 10, 2020
Vulnerability details
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.
Affected software
ruby-rack-cors (Debian package)
ruby-rack-cors (Ubuntu package)
rubygem-rack-cors
Gitlab Community Edition
Fedora
Ubuntu
How to mitigate CVE-2019-18978
ruby-rack-cors (Debian package) - update to 1.0.2-1+deb10u1
Gitlab Community Edition - addressed in versions 12.5.9, 12.6.6, 12.7.4
ruby-rack-cors (Ubuntu package) - update to 0.4.0-1+deb9u2build0.16.04.1
rubygem-rack-cors - update to 1.0.6-1.el7