VDB
Sign up
MEDIUM

GHSA-h56m-vwxc-3qpw

Directory traversal vulnerability in actionpack

Quick fix

GHSA-h56m-vwxc-3qpw — actionpack: upgrade to the fixed version with the command below.

bundle update actionpack

Details

Directory traversal vulnerability in actionpack/lib/action_dispatch/middleware/static.rb in Action Pack in Ruby on Rails 3.x before 3.2.21, 4.0.x before 4.0.12, 4.1.x before 4.1.8, and 4.2.x before 4.2.0.beta4, when serve_static_assets is enabled, allows remote attackers to determine the existence of files outside the application root via vectors involving a \ (backslash) character, a similar issue to CVE-2014-7818.

Are you affected?

Enter the version of the package you're using.

Affected packages

RubyGems/actionpack
Introduced in: 4.1.0Fixed in: 4.1.8
Fixbundle update actionpack
RubyGems/actionpack
Introduced in: 3.0.0Fixed in: 3.2.21
Fixbundle update actionpack
RubyGems/actionpack
Introduced in: 4.0.0Fixed in: 4.0.12
Fixbundle update actionpack
RubyGems/actionpack
Introduced in: 4.2.0.beta1Fixed in: 4.2.0.beta4
Fixbundle update actionpack

References