CVE-2016-0752
Ruby on Rails Directory Traversal Vulnerability
Description
Directory traversal vulnerability in Action View in Ruby on Rails before 3.2.22.1, 4.0.x and 4.1.x before 4.1.14.1, 4.2.x before 4.2.5.1, and 5.x before 5.0.0.beta1.1 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.
Description as published by the source, in English.
Key facts
- Published
- 2016-02-16
- Last modified
- 2026-06-17
- Assigned by
- secalert@redhat.com
- CVSS vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N- Scored by
- nvd@nist.gov (NVD Primary)
- Probability of exploitation
-
95.5 %
among the highest of all known vulnerabilities
EPSS, next 30 days, model v2026.06.15 - Fix available
- Not registered in the sources
Actively exploited
CISA added this vulnerability to the Known Exploited Vulnerabilities catalogue on 2022-03-25, with a remediation deadline of 2022-04-15 for US federal agencies.
Required action: Apply updates per vendor instructions.
Affected products
| Vendor | Product | Versions | Status |
|---|---|---|---|
| actionpack (RubyGems) | < 3.2.22.1 | Affected | |
| actionpack (RubyGems) | ≥ 4.0.0, < 4.1.14.1 | Affected | |
| actionpack (RubyGems) | ≥ 4.2.0, < 4.2.5.1 | Affected | |
| actionview (RubyGems) | ≥ 4.0.0, < 4.1.14.1 | Affected | |
| actionview (RubyGems) | ≥ 4.2.0, < 4.2.5.1 | Affected | |
| Debian | Debian Linux | 8.0 | Affected |
| Opensuse | Leap | 42.1 | Affected |
| Opensuse | Opensuse | 13.2 | Affected |
| Redhat | Software Collections | 1.0 | Affected |
| Rubyonrails | Rails | < 3.2.22.1 | Affected |
| Rubyonrails | Rails | 5.0.0 | Affected |
| Rubyonrails | Rails | ≥ 4.0.0, < 4.1.14.1 | Affected |
| Rubyonrails | Rails | ≥ 4.2.0, < 4.2.5.1 | Affected |
| Suse | Linux Enterprise Module For Containers | 12 | Affected |
Weakness type
-
CWE-22: Improper Limitation of a Pathname to a Restricted Directory
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 ele…
References
- http://lists.fedoraproject.org/pipermail/package-announce/2016-February/178044.html
- http://lists.fedoraproject.org/pipermail/package-announce/2016-February/178069.html
- http://lists.opensuse.org/opensuse-security-announce/2016-04/msg00053.html
- http://lists.opensuse.org/opensuse-updates/2016-02/msg00034.html
- http://lists.opensuse.org/opensuse-updates/2016-02/msg00043.html
- http://rhn.redhat.com/errata/RHSA-2016-0296.html
- http://www.debian.org/security/2016/dsa-3464
- http://www.openwall.com/lists/oss-security/2016/01/25/13
- http://www.securityfocus.com/bid/81801
- http://www.securitytracker.com/id/1034816
- https://groups.google.com/forum/message/raw?msg=ruby-security-ann%2F335P1DcLG00%2FJXcBnTt…
- https://www.exploit-db.com/exploits/40561/
- http://lists.fedoraproject.org/pipermail/package-announce/2016-February/178044.html
- http://lists.fedoraproject.org/pipermail/package-announce/2016-February/178069.html
- http://lists.opensuse.org/opensuse-security-announce/2016-04/msg00053.html
- http://lists.opensuse.org/opensuse-updates/2016-02/msg00034.html
- http://lists.opensuse.org/opensuse-updates/2016-02/msg00043.html
- http://rhn.redhat.com/errata/RHSA-2016-0296.html
- http://www.debian.org/security/2016/dsa-3464
- http://www.openwall.com/lists/oss-security/2016/01/25/13
Does this affect you?
A vulnerability matters only if you run the product, in an affected version, somewhere an attacker can reach.