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.
References (6)
Core 6
Core References
Patch, Third Party Advisory x_refsource_misc
https://github.com/cyu/rack-cors/commit/e4d4fc362a4315808927011cbe5afcfe5486f17d
Patch, Third Party Advisory x_refsource_misc
https://github.com/cyu/rack-cors/compare/v1.0.3...v1.0.4
Mailing List, Third Party Advisory mailing-list
x_refsource_mlist
https://lists.debian.org/debian-lts-announce/2020/02/msg00004.html
Mailing List, Third Party Advisory mailing-list
x_refsource_mlist
https://lists.debian.org/debian-lts-announce/2020/10/msg00000.html
Third Party Advisory vendor-advisory
x_refsource_ubuntu
https://usn.ubuntu.com/4571-1/
Third Party Advisory vendor-advisory
x_refsource_debian
https://www.debian.org/security/2021/dsa-4918
Scores
CVSS v3
5.3
EPSS
0.0102
EPSS Percentile
77.3%
Attack Vector
NETWORK
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N
Details
CWE
CWE-22
Status
published
Products (6)
canonical/ubuntu_linux
16.04
debian/debian_linux
8.0
debian/debian_linux
9.0
debian/debian_linux
10.0
rack-cors_project/rack-cors
< 1.0.4
rubygems/rack-cors
0 - 1.0.4RubyGems
Published
Nov 14, 2019
Tracked Since
Feb 18, 2026