Directory traversal vulnerability in Action View in Ruby on Rails before 3.2.22.1, 4.0.x…
Key facts
- Attack vector
- Network
- Privileges required
- None
- User interaction
- None
- Attack complexity
- Low
- Impact type
- Information disclosure
- Confidentiality · integrity · availability
- High · None · None
- Fix status
- Partial Red Hat: 8 fixed, 2 without a fix
Attack profile from CVSS 3.1 · CISA ADP. Fix status from CNA, GitHub and Red Hat. Impact type from CWE-22 and the CVSS impact.
Summary
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.
Why it matters now
SSVC decision points
CISA ADP · SSVC 2.0.3
- Exploitation
- Active
- Automatable
- Yes
- Technical impact
- Partial
The decision (Track, Attend, Act) also depends on your mission and well-being impact; see CISA's SSVC guide.
Affected products
| Vendor | Product | Affected versions | Fixed in | Status | Source |
|---|---|---|---|---|---|
| — | — | all versions | — | No fix listed | CNA |
| — | actionview (RubyGems) | 4.0.0 to before 4.1.14.1 | 4.1.14.1 | Patch available | GHSA-xrr4-p6fq-hjg7 |
| — | actionview (RubyGems) | 4.2.0 to before 4.2.5.1 | 4.2.5.1 | Patch available | GHSA-xrr4-p6fq-hjg7 |
| — | actionpack (RubyGems) | 4.0.0 to before 4.1.14.1 | 4.1.14.1 | Patch available | GHSA-xrr4-p6fq-hjg7 |
| — | actionpack (RubyGems) | 4.2.0 to before 4.2.5.1 | 4.2.5.1 | Patch available | GHSA-xrr4-p6fq-hjg7 |
| — | actionpack (RubyGems) | before 3.2.22.1 | 3.2.22.1 | Patch available | GHSA-xrr4-p6fq-hjg7 |
- — Vendor— Affected all versions Fixed in — No fix listed CNA
- actionview (RubyGems) Vendor— Affected 4.0.0 to before 4.1.14.1 Fixed in 4.1.14.1 Patch available GHSA-xrr4-p6fq-hjg7
- actionview (RubyGems) Vendor— Affected 4.2.0 to before 4.2.5.1 Fixed in 4.2.5.1 Patch available GHSA-xrr4-p6fq-hjg7
- actionpack (RubyGems) Vendor— Affected 4.0.0 to before 4.1.14.1 Fixed in 4.1.14.1 Patch available GHSA-xrr4-p6fq-hjg7
- actionpack (RubyGems) Vendor— Affected 4.2.0 to before 4.2.5.1 Fixed in 4.2.5.1 Patch available GHSA-xrr4-p6fq-hjg7
- actionpack (RubyGems) Vendor— Affected before 3.2.22.1 Fixed in 3.2.22.1 Patch available GHSA-xrr4-p6fq-hjg7
CPE configurations NVD · 7
| CPE | Versions | Role | Vendor |
|---|---|---|---|
| cpe:2.3:a:rubyonrails:rails:*:*:*:*:*:*:*:* | before 3.2.22.1; 4.0.0 to before 4.1.14.1; 4.2.0 to before 4.2.5.1 | Vulnerable | Rails |
| cpe:2.3:a:rubyonrails:rails:5.0.0:beta1:*:*:*:*:*:* | 5.0.0 beta1 | Vulnerable | Rails |
| cpe:2.3:o:opensuse:leap:42.1:*:*:*:*:*:*:* | 42.1 | Vulnerable | openSUSE |
| cpe:2.3:o:opensuse:opensuse:13.2:*:*:*:*:*:*:* | 13.2 | Vulnerable | openSUSE |
| cpe:2.3:o:suse:linux_enterprise_module_for_containers:12:*:*:*:*:*:*:* | 12 | Vulnerable | SUSE |
| cpe:2.3:o:debian:debian_linux:8.0:*:*:*:*:*:*:* | 8.0 | Vulnerable | Debian |
| cpe:2.3:a:redhat:software_collections:1.0:*:*:*:*:*:*:* | 1.0 | Vulnerable | Red Hat |
- cpe:2.3:a:rubyonrails:rails:*:*:*:*:*:*:*:* Versions before 3.2.22.1; 4.0.0 to before 4.1.14.1; 4.2.0 to before 4.2.5.1 Vulnerable ·Rails
- cpe:2.3:a:rubyonrails:rails:5.0.0:beta1:*:*:*:*:*:* Versions 5.0.0 beta1 Vulnerable ·Rails
- cpe:2.3:o:opensuse:leap:42.1:*:*:*:*:*:*:* Versions 42.1 Vulnerable ·openSUSE
- cpe:2.3:o:opensuse:opensuse:13.2:*:*:*:*:*:*:* Versions 13.2 Vulnerable ·openSUSE
- cpe:2.3:o:suse:linux_enterprise_module_for_containers:12:*:*:*:*:*:*:* Versions 12 Vulnerable ·SUSE
- cpe:2.3:o:debian:debian_linux:8.0:*:*:*:*:*:*:* Versions 8.0 Vulnerable ·Debian
- cpe:2.3:a:redhat:software_collections:1.0:*:*:*:*:*:*:* Versions 1.0 Vulnerable ·Red Hat
Remediation
- Fix · GHSA-xrr4-p6fq-hjg7 actionview (RubyGems) Fixed in 4.1.14.1 Advisory →
- Fix · GHSA-xrr4-p6fq-hjg7 actionview (RubyGems) Fixed in 4.2.5.1 Advisory →
- Fix · GHSA-xrr4-p6fq-hjg7 actionpack (RubyGems) Fixed in 4.1.14.1 Advisory →
- Fix · GHSA-xrr4-p6fq-hjg7 actionpack (RubyGems) Fixed in 4.2.5.1 Advisory →
- Fix · GHSA-xrr4-p6fq-hjg7 actionpack (RubyGems) Fixed in 3.2.22.1 Advisory →
Red Hat 3 advisories
- RHSA-2016:0454 Released 2016-03-15 · Red Hat rating Importantror40 security update
- Red Hat Software Collections for Red Hat Enterprise Linux Server (v. 6) ror40-rubygem-actionpack-1:4.0.2-7.el6, ror40-rubygem-actionpack-doc-1:4.0.2-7.el6, ror40-rubygem-activerecord-1:4.0.2-6.el6 +2
- Red Hat Software Collections for Red Hat Enterprise Linux Server (v. 7) ror40-rubygem-actionpack-1:4.0.2-7.el7, ror40-rubygem-actionpack-doc-1:4.0.2-7.el7, ror40-rubygem-activerecord-1:4.0.2-6.el7 +2
- Red Hat Software Collections for Red Hat Enterprise Linux Server EUS (v. 6.6) ror40-rubygem-actionpack-1:4.0.2-7.el6, ror40-rubygem-actionpack-doc-1:4.0.2-7.el6, ror40-rubygem-activerecord-1:4.0.2-6.el6 +2
- Red Hat Software Collections for Red Hat Enterprise Linux Server EUS (v. 6.7) ror40-rubygem-actionpack-1:4.0.2-7.el6, ror40-rubygem-actionpack-doc-1:4.0.2-7.el6, ror40-rubygem-activerecord-1:4.0.2-6.el6 +2
- Red Hat Software Collections for Red Hat Enterprise Linux Server EUS (v. 7.1) ror40-rubygem-actionpack-1:4.0.2-7.el7, ror40-rubygem-actionpack-doc-1:4.0.2-7.el7, ror40-rubygem-activerecord-1:4.0.2-6.el7 +2
- Red Hat Software Collections for Red Hat Enterprise Linux Server EUS (v. 7.2) ror40-rubygem-actionpack-1:4.0.2-7.el7, ror40-rubygem-actionpack-doc-1:4.0.2-7.el7, ror40-rubygem-activerecord-1:4.0.2-6.el7 +2
- Red Hat Software Collections for Red Hat Enterprise Linux Workstation (v. 6) ror40-rubygem-actionpack-1:4.0.2-7.el6, ror40-rubygem-actionpack-doc-1:4.0.2-7.el6, ror40-rubygem-activerecord-1:4.0.2-6.el6 +2
- Red Hat Software Collections for Red Hat Enterprise Linux Workstation (v. 7) ror40-rubygem-actionpack-1:4.0.2-7.el7, ror40-rubygem-actionpack-doc-1:4.0.2-7.el7, ror40-rubygem-activerecord-1:4.0.2-6.el7 +2
- RHSA-2016:0455 Released 2016-03-15 · Red Hat rating Importantruby193 security update
- Red Hat Software Collections for Red Hat Enterprise Linux Server (v. 6) ruby193-rubygem-actionpack-1:3.2.8-16.el6, ruby193-rubygem-actionpack-doc-1:3.2.8-16.el6, ruby193-rubygem-activerecord-1:3.2.8-11.el6 +2
- Red Hat Software Collections for Red Hat Enterprise Linux Server (v. 7) ruby193-rubygem-actionpack-1:3.2.8-16.el7, ruby193-rubygem-actionpack-doc-1:3.2.8-16.el7, ruby193-rubygem-activerecord-1:3.2.8-11.el7 +2
- Red Hat Software Collections for Red Hat Enterprise Linux Server EUS (v. 6.6) ruby193-rubygem-actionpack-1:3.2.8-16.el6, ruby193-rubygem-actionpack-doc-1:3.2.8-16.el6, ruby193-rubygem-activerecord-1:3.2.8-11.el6 +2
- Red Hat Software Collections for Red Hat Enterprise Linux Server EUS (v. 6.7) ruby193-rubygem-actionpack-1:3.2.8-16.el6, ruby193-rubygem-actionpack-doc-1:3.2.8-16.el6, ruby193-rubygem-activerecord-1:3.2.8-11.el6 +2
- Red Hat Software Collections for Red Hat Enterprise Linux Server EUS (v. 7.1) ruby193-rubygem-actionpack-1:3.2.8-16.el7, ruby193-rubygem-actionpack-doc-1:3.2.8-16.el7, ruby193-rubygem-activerecord-1:3.2.8-11.el7 +2
- Red Hat Software Collections for Red Hat Enterprise Linux Server EUS (v. 7.2) ruby193-rubygem-actionpack-1:3.2.8-16.el7, ruby193-rubygem-actionpack-doc-1:3.2.8-16.el7, ruby193-rubygem-activerecord-1:3.2.8-11.el7 +2
- Red Hat Software Collections for Red Hat Enterprise Linux Workstation (v. 6) ruby193-rubygem-actionpack-1:3.2.8-16.el6, ruby193-rubygem-actionpack-doc-1:3.2.8-16.el6, ruby193-rubygem-activerecord-1:3.2.8-11.el6 +2
- Red Hat Software Collections for Red Hat Enterprise Linux Workstation (v. 7) ruby193-rubygem-actionpack-1:3.2.8-16.el7, ruby193-rubygem-actionpack-doc-1:3.2.8-16.el7, ruby193-rubygem-activerecord-1:3.2.8-11.el7 +2
- RHSA-2016:0296 Released 2016-02-24 · Red Hat rating Importantrh-ror41 security update
- Red Hat Software Collections for Red Hat Enterprise Linux Server (v. 6) rh-ror41-rubygem-actionpack-1:4.1.5-3.el6, rh-ror41-rubygem-actionpack-doc-1:4.1.5-3.el6, rh-ror41-rubygem-actionview-4.1.5-4.el6 +6
- Red Hat Software Collections for Red Hat Enterprise Linux Server (v. 7) rh-ror41-rubygem-actionpack-1:4.1.5-3.el7, rh-ror41-rubygem-actionpack-doc-1:4.1.5-3.el7, rh-ror41-rubygem-actionview-4.1.5-4.el7 +6
- Red Hat Software Collections for Red Hat Enterprise Linux Server EUS (v. 6.6) rh-ror41-rubygem-actionpack-1:4.1.5-3.el6, rh-ror41-rubygem-actionpack-doc-1:4.1.5-3.el6, rh-ror41-rubygem-actionview-4.1.5-4.el6 +6
- Red Hat Software Collections for Red Hat Enterprise Linux Server EUS (v. 6.7) rh-ror41-rubygem-actionpack-1:4.1.5-3.el6, rh-ror41-rubygem-actionpack-doc-1:4.1.5-3.el6, rh-ror41-rubygem-actionview-4.1.5-4.el6 +6
- Red Hat Software Collections for Red Hat Enterprise Linux Server EUS (v. 7.1) rh-ror41-rubygem-actionpack-1:4.1.5-3.el7, rh-ror41-rubygem-actionpack-doc-1:4.1.5-3.el7, rh-ror41-rubygem-actionview-4.1.5-4.el7 +6
- Red Hat Software Collections for Red Hat Enterprise Linux Server EUS (v. 7.2) rh-ror41-rubygem-actionpack-1:4.1.5-3.el7, rh-ror41-rubygem-actionpack-doc-1:4.1.5-3.el7, rh-ror41-rubygem-actionview-4.1.5-4.el7 +6
- Red Hat Software Collections for Red Hat Enterprise Linux Workstation (v. 6) rh-ror41-rubygem-actionpack-1:4.1.5-3.el6, rh-ror41-rubygem-actionpack-doc-1:4.1.5-3.el6, rh-ror41-rubygem-actionview-4.1.5-4.el6 +6
- Red Hat Software Collections for Red Hat Enterprise Linux Workstation (v. 7) rh-ror41-rubygem-actionpack-1:4.1.5-3.el7, rh-ror41-rubygem-actionpack-doc-1:4.1.5-3.el7, rh-ror41-rubygem-actionview-4.1.5-4.el7 +6
Vendor assessments
Red Hat
Red Hat rating: Important. Red Hat's page for this CVE →
| Product | Status | Plan or fix |
|---|---|---|
| CloudForms Management Engine 5 | Affected | No fix planned: Will not fix |
| Red Hat Subscription Asset Manager | Affected | No fix planned: Will not fix |
| Red Hat Software Collections for Red Hat Enterprise Linux Server (v. 6) | Fixed | RHSA-2016:0296, RHSA-2016:0454, RHSA-2016:0455 |
| Red Hat Software Collections for Red Hat Enterprise Linux Server (v. 7) | Fixed | RHSA-2016:0296, RHSA-2016:0454, RHSA-2016:0455 |
| Red Hat Software Collections for Red Hat Enterprise Linux Server EUS (v. 6.6) | Fixed | RHSA-2016:0296, RHSA-2016:0454, RHSA-2016:0455 |
| Red Hat Software Collections for Red Hat Enterprise Linux Server EUS (v. 6.7) | Fixed | RHSA-2016:0296, RHSA-2016:0454, RHSA-2016:0455 |
| Red Hat Software Collections for Red Hat Enterprise Linux Server EUS (v. 7.1) | Fixed | RHSA-2016:0296, RHSA-2016:0454, RHSA-2016:0455 |
| Red Hat Software Collections for Red Hat Enterprise Linux Server EUS (v. 7.2) | Fixed | RHSA-2016:0296, RHSA-2016:0454, RHSA-2016:0455 |
| Red Hat Software Collections for Red Hat Enterprise Linux Workstation (v. 6) | Fixed | RHSA-2016:0296, RHSA-2016:0454, RHSA-2016:0455 |
| Red Hat Software Collections for Red Hat Enterprise Linux Workstation (v. 7) | Fixed | RHSA-2016:0296, RHSA-2016:0454, RHSA-2016:0455 |
Timeline
- 2022-03-25 Added to CISA KEV
- 2026-10-02 Threatist record created from CVE-2016-0752
- 2026-10-03 Alias added: GHSA-xrr4-p6fq-hjg7
References
Exploit 2
Advisory 9
Other 9
- [ruby-security-ann] 20160125 [CVE-2016-0752] Possible Information Leak Vulnerability in Action View
- https://github.com/rubysec/ruby-advisory-db/blob/master/gems/actionpack/CVE-2016-0752.yml
- https://github.com/rubysec/ruby-advisory-db/blob/master/gems/actionview/CVE-2016-0752.yml
- https://groups.google.com/forum/#!topic/rubyonrails-security/335P1DcLG00
- https://web.archive.org/web/20210618005620/https://groups.google.com/forum/message/raw?msg=ruby-security-ann/335P1DcLG00/JXcBnTtZEgAJ
- https://web.archive.org/web/20210621170450/http://www.securityfocus.com/bid/81801
- https://web.archive.org/web/20210723192420/http://www.securitytracker.com/id/1034816
- https://www.cisa.gov/known-exploited-vulnerabilities-catalog?field_cve=CVE-2016-0752
- https://www.exploit-db.com/exploits/40561
More Rails vulnerabilities
- TI-2014-00124 Directory traversal vulnerability in actionpack/lib/abstract_controller/base.rb in the… KEVCVSS 3.1HIGH 7.5
- TI-2019-03828 Path traversal in Rails https://github.com/rails/rails KEVCVSS 3.1HIGH 7.5
- TI-2019-03830 Command injection in Rails https://github.com/rails/rails CVSS 3.1CRITICAL 9.8
- TI-2020-06581 Code injection in https://github.com/rails/rails CVSS 3.1HIGH 8.8
- TI-2013-00091 active_support/core_ext/hash/conversions.rb in Ruby on Rails before 2.3.15, 3.0.x before… CVSS 2.0HIGH 7.5
- TI-2013-00263 lib/active_support/json/backends/yaml.rb in Ruby on Rails 2.3.x before 2.3.16 and 3.0.x… CVSS 2.0HIGH 7.5
Sources
- CVE-2016-0752 · CVE Program
- CVE-2016-0752 · NVD
- CISA Known Exploited Vulnerabilities
- FIRST EPSS
- GHSA-xrr4-p6fq-hjg7 · GitHub Advisory Database · CC BY 4.0
- CVE-2016-0752 · Red Hat security data · CC BY 4.0
This product uses the NVD API but is not endorsed or certified by the NVD. Sources and licences