Description
Directory traversal vulnerability in actionpack/lib/action_dispatch/middleware/static.rb in Action Pack in Ruby on Rails 3.x before 3.2.20, 4.0.x before 4.0.11, 4.1.x before 4.1.7, and 4.2.x before 4.2.0.beta3, when serve_static_assets is enabled, allows remote attackers to determine the existence of files outside the application root via a /..%2F sequence.
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.
Debian
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| 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
| Ecosystem | Package | Affected | Fixed | Record |
|---|---|---|---|---|
| RubyGems | actionpack | >= 3.0.0, < 3.2.20 | 3.2.20 | GHSA-29gr-w57f-rpfw |
| RubyGems | actionpack | >= 4.0.0, < 4.0.11 | 4.0.11 | GHSA-29gr-w57f-rpfw |
| RubyGems | actionpack | >= 4.1.0, < 4.1.7 | 4.1.7 | GHSA-29gr-w57f-rpfw |
| RubyGems | actionpack | >= 4.2.0.beta1, < 4.2.0.beta3 | 4.2.0.beta3 | GHSA-29gr-w57f-rpfw |