Bug 1689159 (CVE-2019-5418)

Summary: CVE-2019-5418 rubygem-actionpack: render file directory traversal in Action View
Product: [Other] Security Response Reporter: Andrej Nemec <anemec>
Component: vulnerabilityAssignee: Red Hat Product Security <security-response-team>
Status: CLOSED ERRATA QA Contact:
Severity: high Docs Contact:
Priority: high    
Version: unspecifiedCC: dajohnso, dmetzger, gblomqui, gmccullo, gtanzill, hhorak, jaruga, jfrey, jhardy, jorton, jprause, kdixon, obarenbo, pvalena, roliveri, ruby-maint, ruby-packagers-sig, simaishi, strzibny
Target Milestone: ---Keywords: Security
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: rubygem-actionview 6.0.0.beta3, rubygem-actionview 5.2.2.1, rubygem-actionview 5.1.6.2, rubygem-actionview 5.0.7.2, rubygem-actionview 4.2.11.1 Doc Type: If docs needed, set a value
Doc Text:
A content disclosure flaw was found in rubygem-actionview. 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. Code execution cannot be ruled out if the attacker is able to gain access to the proper files. The highest threat from this vulnerability is to data confidentiality and integrity as well as system availability.
Story Points: ---
Clone Of: Environment:
Last Closed: 2019-05-13 09:43:15 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On: 1689161, 1690394, 1690397, 1690399, 1690401, 1695968, 1695969, 1695970, 1695971    
Bug Blocks: 1689162    

Description Andrej Nemec 2019-03-15 10:28:45 UTC
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.

External References:

https://groups.google.com/forum/#!msg/rubyonrails-security/pFRKI96Sm8Q/IhpRq9D2CgAJ
https://github.com/mpgn/CVE-2019-5418

Comment 1 Andrej Nemec 2019-03-15 10:30:39 UTC
Created rubygem-actionview tracking bugs for this issue:

Affects: fedora-all [bug 1689161]

Comment 2 Andrej Nemec 2019-03-15 10:32:30 UTC
References:

https://seclists.org/oss-sec/2019/q1/178

Comment 6 Jun Aruga 2019-03-26 14:31:44 UTC
Note the patch to fix this issue is same with CVE-2019-5419.

Comment 9 Stefan Cornelius 2019-04-02 11:50:03 UTC
Statement:

This issue did affect the versions of rh-ror42-rubygem-actionpack and rh-ror50-rubygem-actionpack as shipped with Red Hat Software Collections.

Comment 12 errata-xmlrpc 2019-04-23 07:46:21 UTC
This issue has been addressed in the following products:

  CloudForms Management Engine 5.10

Via RHSA-2019:0796 https://access.redhat.com/errata/RHSA-2019:0796

Comment 14 errata-xmlrpc 2019-05-13 08:52:09 UTC
This issue has been addressed in the following products:

  Red Hat Software Collections for Red Hat Enterprise Linux 6
  Red Hat Software Collections for Red Hat Enterprise Linux 7
  Red Hat Software Collections for Red Hat Enterprise Linux 7.4 EUS
  Red Hat Software Collections for Red Hat Enterprise Linux 7.5 EUS
  Red Hat Software Collections for Red Hat Enterprise Linux 7.6 EUS

Via RHSA-2019:1147 https://access.redhat.com/errata/RHSA-2019:1147

Comment 15 errata-xmlrpc 2019-05-13 09:11:30 UTC
This issue has been addressed in the following products:

  Red Hat Software Collections for Red Hat Enterprise Linux 6
  Red Hat Software Collections for Red Hat Enterprise Linux 7
  Red Hat Software Collections for Red Hat Enterprise Linux 7.4 EUS
  Red Hat Software Collections for Red Hat Enterprise Linux 7.5 EUS
  Red Hat Software Collections for Red Hat Enterprise Linux 7.6 EUS

Via RHSA-2019:1149 https://access.redhat.com/errata/RHSA-2019:1149

Comment 16 errata-xmlrpc 2019-05-29 12:41:10 UTC
This issue has been addressed in the following products:

  CloudForms Management Engine 5.9

Via RHSA-2019:1289 https://access.redhat.com/errata/RHSA-2019:1289