Path traversal in Action Mailer - CVE-2014-7818

 

Path traversal in Action Mailer - CVE-2014-7818

Published: November 8, 2014 / Updated: July 28, 2020


Vulnerability identifier: #VU32464
CSH Severity: Medium
CVSS v4.0: CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:L/VI:N/VA:N/SC:N/SI:N/SA:N/E:U/U:Green
CVE-ID: CVE-2014-7818
CWE-ID: CWE-22
Exploitation vector: Remote access
Exploit availability: No public exploit available
Vendor: Rails
Affected software:
Action Mailer

Detailed vulnerability description

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.


How to mitigate CVE-2014-7818

The vendor has issued the following versions to address this vulnerability: 3.2.20, 4.0.11, 4.1.7, 4.2.0.

Sources