CVE-2019-18978
Published: 14 November 2019
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.
From the Ubuntu Security Team
It was discovered that rack-cors did not properly handle relative file paths. An attacker could use this vulnerability to access arbitrary files.
Priority
Status
Package | Release | Status |
---|---|---|
ruby-rack-cors Launchpad, Ubuntu, Debian |
bionic |
Needed
|
disco |
Ignored
(end of life)
|
|
eoan |
Ignored
(end of life)
|
|
focal |
Not vulnerable
(1.1.1-1)
|
|
groovy |
Not vulnerable
(1.1.1-1)
|
|
hirsute |
Not vulnerable
(1.1.1-1)
|
|
impish |
Not vulnerable
(1.1.1-1)
|
|
jammy |
Not vulnerable
(1.1.1-1)
|
|
kinetic |
Not vulnerable
(1.1.1-1)
|
|
lunar |
Not vulnerable
(1.1.1-1)
|
|
mantic |
Not vulnerable
(1.1.1-1)
|
|
trusty |
Does not exist
|
|
upstream |
Needs triage
|
|
xenial |
Released
(0.4.0-1+deb9u2build0.16.04.1)
|
|
Patches: upstream: https://github.com/cyu/rack-cors/commit/e4d4fc362a4315808927011cbe5afcfe5486f17d |
Severity score breakdown
Parameter | Value |
---|---|
Base score | 5.3 |
Attack vector | Network |
Attack complexity | Low |
Privileges required | None |
User interaction | None |
Scope | Unchanged |
Confidentiality | Low |
Integrity impact | None |
Availability impact | None |
Vector | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N |