Skip to content
OpenAdvisories
Medium CVE-2014-7829 EUVD-2017-0245GHSA-h56m-vwxc-3qpw

Directory traversal vulnerability in actionpack

Published Nov 18, 2014 · Updated Aug 6, 2024 · Assigned by redhat

Description

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.

Fixed in Linux distributions

Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.

ReleasePackageFixed inAdvisory
Debian 14 rails 2:4.1.8-1 —
Debian 13 rails 2:4.1.8-1 —
Debian 12 rails 2:4.1.8-1 —

Affected packages

EcosystemPackageAffectedFixedRecord
RubyGems actionpack >= 4.1.0, < 4.1.8 4.1.8 GHSA-h56m-vwxc-3qpw
RubyGems actionpack >= 3.0.0, < 3.2.21 3.2.21 GHSA-h56m-vwxc-3qpw
RubyGems actionpack >= 4.0.0, < 4.0.12 4.0.12 GHSA-h56m-vwxc-3qpw
RubyGems actionpack >= 4.2.0.beta1, < 4.2.0.beta4 4.2.0.beta4 GHSA-h56m-vwxc-3qpw

References