VDB
Sign up
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 rack

Details

`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

RubyGems/rack
Introduced in: 1.5.0Fixed in: 1.5.2
Fixbundle update rack
RubyGems/rack
Introduced in: 1.4.0Fixed in: 1.4.5
Fixbundle update rack

References