CVE-2019-18978

NameCVE-2019-18978
DescriptionAn 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.
SourceCVE (at NVD; CERT, LWN, oss-sec, fulldisc, Red Hat, Ubuntu, Gentoo, SUSE bugzilla/CVE, GitHub advisories/code/issues, web search, more)
ReferencesDLA-2096-1, DLA-2389-1, DSA-4918-1
Debian Bugs944849

Vulnerable and fixed packages

The table below lists information on source packages.

Source PackageReleaseVersionStatus
ruby-rack-cors (PTS)jessie, jessie (lts)0.2.9-1+deb8u1fixed
stretch (security), stretch (lts), stretch0.4.0-1+deb9u2fixed
buster (security), buster, buster (lts)1.0.2-1+deb10u1fixed
bullseye, bookworm1.1.1-1fixed
sid, trixie2.0.1-2fixed

The information below is based on the following data on fixed versions.

PackageTypeReleaseFixed VersionUrgencyOriginDebian Bugs
ruby-rack-corssourcewheezy(unfixed)end-of-life
ruby-rack-corssourcejessie0.2.9-1+deb8u1DLA-2096-1
ruby-rack-corssourcestretch0.4.0-1+deb9u2DLA-2389-1
ruby-rack-corssourcebuster1.0.2-1+deb10u1DSA-4918-1
ruby-rack-corssource(unstable)1.1.1-1944849

Notes

https://github.com/cyu/rack-cors/commit/e4d4fc362a4315808927011cbe5afcfe5486f17d
https://github.com/cyu/rack-cors/compare/v1.0.3...v1.0.4

Search for package or bug name: Reporting problems