Path traversal in Action Mailer - CVE-2014-7818
Published: November 8, 2014 / Updated: July 28, 2020
Vulnerability details
The vulnerability allows a remote attacker to perform directory traversal attacks.
The vulnerability exists due to input validation error when processing directory traversal sequences 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,. A remote authenticated attacker can send a specially crafted HTTP request and remote attackers to determine the existence of files outside the application root via a /.%2F sequence.
Affected software
ruby-actionmailer (Alpine package)
ruby-redmine-actionmailer (Alpine package)
ruby-activesupport (Alpine package)
ruby-actionpack (Alpine package)
ruby-activemodel (Alpine package)
How to mitigate CVE-2014-7818
ruby-actionmailer (Alpine package) - update to 4.0.12-r0
ruby-redmine-actionmailer (Alpine package) - update to 3.2.21-r0
ruby-activesupport (Alpine package) - update to 4.0.7-r0
ruby-actionpack (Alpine package) - update to 4.0.7-r0
ruby-activemodel (Alpine package) - update to 4.0.7-r0