GitHub Advisoryadvisory · RubyGems
GHSA-86g5-2wh3-gc9j Path Traversal in Action View
HIGH
Official page ↗
- Aliases
- CVE-2019-5418
- Ecosystem
- RubyGems
- Packages
- actionview
- Severity
- High
- CVSS vector
- CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N/E:H
- Weaknesses
- CWE-22
- Reviewed
- 2020-06-16
Affected packages
• RubyGems actionview: >= 5.2.0, < 5.2.2.1 → fixed in 5.2.2.1
• RubyGems actionview: >= 4.0.0, < 4.2.11.1 → fixed in 4.2.11.1
• RubyGems actionview: >= 5.1.0, < 5.1.6.2 → fixed in 5.1.6.2
• RubyGems actionview: >= 5.0.0, < 5.0.7.2 → fixed in 5.0.7.2
Description
File Content Disclosure in Action View
Impact
------
There is a possible file content disclosure vulnerability in Action View. Specially crafted accept headers in combination with calls to `render file:` can cause arbitrary files on the target server to be rendered, disclosing the file contents.
The impact is limited to calls to `render` which render file contents without a specified accept format. Impacted code in a controller looks something like this:
``` ruby
class UserController of GitHub
Related
Alias · CVE (1)
- CVE-2019-5418 There is a File Content Disclosure vulnerability in Action View <5.2.2.1, <5.1.6.2, <5.0.7.2, <4.2.11.1 and v3 where specially crafted… vulnerability
Weakness · CWE (1)
- CWE-22 Improper Limitation of a Pathname to a Restricted Directory weakness
References
- https://nvd.nist.gov/vuln/detail/CVE-2019-5418 advisory
- https://access.redhat.com/errata/RHSA-2019:0796 web
- https://access.redhat.com/errata/RHSA-2019:1147 web
- https://access.redhat.com/errata/RHSA-2019:1149 web
- https://access.redhat.com/errata/RHSA-2019:1289 web
- https://groups.google.com/forum/#!topic/rubyonrails-security/pFRKI96Sm8Q web
- https://groups.google.com/forum/#!topic/rubyonrails-security/zRNVOUhKHrg web
- https://groups.google.com/forum/#%21topic/rubyonrails-security/pFRKI96Sm8Q web
- https://lists.debian.org/debian-lts-announce/2019/03/msg00042.html web
- https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/Y43636TH4D6T46IC6N2RQVJTRFJAAYGA web
- https://lists.fedoraproject.org/archives/list/[email protected]/message/Y43636TH4D6T46IC6N2RQVJTRFJAAYGA web
- https://web.archive.org/web/20190313201629/https://weblog.rubyonrails.org/2019/3/13/Rails-4-2-5-1-5-1-6-2-have-been-released web
- https://weblog.rubyonrails.org/2019/3/13/Rails-4-2-5-1-5-1-6-2-have-been-released web
- https://www.cisa.gov/known-exploited-vulnerabilities-catalog?field_cve=CVE-2019-5418 web
- https://www.exploit-db.com/exploits/46585 web
- http://lists.opensuse.org/opensuse-security-announce/2019-05/msg00011.html web
- http://packetstormsecurity.com/files/152178/Rails-5.2.1-Arbitrary-File-Content-Disclosure.html web
- http://www.openwall.com/lists/oss-security/2019/03/22/1 web