CVE-2016-2097
Vulnerability Summary
Timeline
Description
Directory traversal vulnerability in Action View in Ruby on Rails before 3.2.22.2 and 4.x before 4.1.14.2 allows remote attackers to read arbitrary files by leveraging an application's unrestricted use of the render method and providing a .. (dot dot) in a pathname. NOTE: this vulnerability exists because of an incomplete fix for CVE-2016-0752.
CVSS Metrics
- v3.0•MEDIUM•Score: 5.3CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N
- v2.0•MEDIUM•Score: 5AV:N/AC:L/Au:N/C:P/I:N/A:N
EPSS Trends
Current EPSS score: 1.91%• Percentile: 84%
Techniques & Countermeasures
- CWE-22•Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal')
The product uses external input to construct a pathname that is intended to identify a file or directory that is located underneath a restricted parent directory, but the product does not properly neutralize special elements within the pathname that can cause the pathname to resolve to a location that is outside of the restricted directory.
Affected Systems
- rubyonrails•rails
4.0.0 | 4.0.0:beta | 4.0.0:rc1 | 4.0.0:rc2 | 4.0.1 | 4.0.1:rc1 | 4.0.1:rc2 | 4.0.1:rc3 | 4.0.1:rc4 | 4.0.2 | 4.0.3 | 4.0.4 | 4.0.4:rc1 | 4.0.5 | 4.0.6 | 4.0.6:rc1 | 4.0.6:rc2 | 4.0.6:rc3 | 4.0.7 | 4.0.8 | 4.0.9 | 4.0.10:rc1 | 4.1.0 | 4.1.0:beta1 | 4.1.0:beta2 | 4.1.0:rc1 | 4.1.0:rc2 | 4.1.1 | 4.1.2 | 4.1.2:rc1 | 4.1.2:rc2 | 4.1.2:rc3 | 4.1.3 | 4.1.4 | 4.1.5 | 4.1.6:rc1 | 4.1.6:rc2 | 4.1.7 | 4.1.7.1 | 4.1.8 | 4.1.9:rc1 | 4.1.10:rc1 | 4.1.10:rc2 | 4.1.10:rc3 | 4.1.10:rc4 | 4.1.12:rc1 | 4.1.13:rc1 | 4.1.14:rc1 | 4.1.14:rc2
- rubyonrails•ruby_on_rails
≤ 3.2.22.1 | 4.1.14.1
References (8)
- http://lists.opensuse.org/opensuse-security-announce/2016-04/msg00006.html
- http://www.debian.org/security/2016/dsa-3509
- https://groups.google.com/forum/message/raw?msg=rubyonrails-security/ddY6HgqB2z4/we0RasMZIAAJ
- http://www.securitytracker.com/id/1035122
- http://lists.opensuse.org/opensuse-security-announce/2016-03/msg00083.html
- http://www.securityfocus.com/bid/83726
- http://lists.opensuse.org/opensuse-security-announce/2016-03/msg00080.html
- http://weblog.rubyonrails.org/2016/2/29/Rails-4-2-5-2-4-1-14-2-3-2-22-2-have-been-released/