Skip to content
OpenAdvisories
Medium · 5.3 CVE-2019-18978 EUVD-2019-0758GHSA-pf8f-w267-mq2h

The rack-cors rubygem may allow directory traveral

Published Nov 14, 2019 · Updated Aug 5, 2024 · Assigned by mitre

Description

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.

Fixed in Linux distributions

Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.

ReleasePackageFixed inAdvisory
Debian 14 ruby-rack-cors 1.1.1-1 —
Debian 13 ruby-rack-cors 1.1.1-1 —
Debian 12 ruby-rack-cors 1.1.1-1 —
Debian 10 ruby-rack-cors 1.0.2-1+deb10u1 DSA-4918-1
Debian 9 ruby-rack-cors 0.4.0-1+deb9u2 DLA-2389-1
Show 1 more (older releases, extended support, other products)
ReleasePackageFixed inAdvisory
Debian 8 ruby-rack-cors 0.2.9-1+deb8u1 DLA-2096-1
ReleasePackageFixed inAdvisory
Ubuntu 18.04 LTS ruby-rack-cors No fix yet —
Ubuntu 16.04 LTS ruby-rack-cors 0.4.0-1+deb9u2build0.16.04.1 USN-4571-1

Affected packages

EcosystemPackageAffectedFixedRecord
RubyGems rack-cors < 1.0.4 1.0.4 GHSA-pf8f-w267-mq2h

Advisories 4

References