MEDIUM
GHSA-85r7-w5mv-c849
Rack Vulnerable to Path Traversal
Quick fix
GHSA-85r7-w5mv-c849 — rack: upgrade to the fixed version with the command below.
bundle update rackDetails
`rack/file.rb` (`Rack::File`) in Rack 1.5.x before 1.5.2 and 1.4.x before 1.4.5 allows attackers to access arbitrary files outside the intended root directory via a crafted `PATH_INFO` environment variable, probably a directory traversal vulnerability that is remotely exploitable, aka "symlink path traversals."
Are you affected?
Enter the version of the package you're using.
Affected packages
References
- https://nvd.nist.gov/vuln/detail/CVE-2013-0262[ADVISORY]
- https://github.com/rack/rack/commit/6f237e4c9fab649d3750482514f0fde76c56ab30[WEB]
- https://bugzilla.redhat.com/show_bug.cgi?id=909071[WEB]
- https://bugzilla.redhat.com/show_bug.cgi?id=909072[WEB]
- https://gist.github.com/rentzsch/4736940[WEB]
- https://github.com/rack/rack[PACKAGE]
- https://github.com/rack/rack/blob/master/lib/rack/file.rb#L56[WEB]
- https://github.com/rubysec/ruby-advisory-db/blob/master/gems/rack/CVE-2013-0262.yml[WEB]
- https://groups.google.com/forum/#!msg/rack-devel/bf937jPZxJM/1s6x95vIhmAJ[WEB]
- https://groups.google.com/forum/#!msg/rack-devel/mZsuRonD7G8/DpZIOmMLbOgJ[WEB]
- http://lists.opensuse.org/opensuse-updates/2013-03/msg00048.html[WEB]