Bug 1848724 (CVE-2020-8163) - CVE-2020-8163 rubygem-rails: potential remote code execution of user-provided local names
Summary: CVE-2020-8163 rubygem-rails: potential remote code execution of user-provided...
Keywords:
Status: CLOSED NOTABUG
Alias: CVE-2020-8163
Product: Security Response
Classification: Other
Component: vulnerability
Version: unspecified
Hardware: All
OS: Linux
high
high
Target Milestone: ---
Assignee: Red Hat Product Security
QA Contact:
URL:
Whiteboard:
Depends On:
Blocks: 1848728
TreeView+ depends on / blocked
 
Reported: 2020-06-18 20:14 UTC by Guilherme de Almeida Suckevicz
Modified: 2021-12-14 18:47 UTC (History)
33 users (show)

Fixed In Version: rubygem-rails-4.2.11.3, rubygem-rails-5.0.1
Clone Of:
Environment:
Last Closed: 2020-06-22 17:20:45 UTC
Embargoed:


Attachments (Terms of Use)

Description Guilherme de Almeida Suckevicz 2020-06-18 20:14:47 UTC
In the scenario where an attacker might be able to control the name of a local passed into `render`, they can achieve remote code execution.

Reference:
https://groups.google.com/forum/#!msg/rubyonrails-security/hWuKcHyoKh0/9Zk-qxXXAAAJ

Comment 1 Yadnyawalk Tale 2020-06-19 13:09:12 UTC
We have very limited information since reproducer is not public from HackerOne/reporter/rails.

According to newest patch, vulnerable code of following locations has this problem. 
activesupport/lib/active_support/core_ext/module/delegation.rb
actionview/lib/action_view/template.rb

That means, with rubygem-rails bundle, individual activesupport and actionview gems are also affected.
This issue has been fixed in rubygem-rails-4.2.11.3, rubygem-rails-5.0.1 or later.

Comment 2 Yadnyawalk Tale 2020-06-19 13:09:17 UTC
External References:

https://weblog.rubyonrails.org/2020/5/16/rails-4-2-11-3-has-been-released

Comment 3 Yadnyawalk Tale 2020-06-19 13:17:07 UTC
Found out rails released new 4.2.11.3 version due to regression created after CVE fix in 4.2.11.2.
More info: https://github.com/rails/rails/issues/39301

Comment 4 Yadnyawalk Tale 2020-06-19 13:45:10 UTC
Should we track this with existing rubygem-rails multi-flawed Bugzilla for CloudForms and Satellite?

Comment 7 Product Security DevOps Team 2020-06-22 17:20:45 UTC
This bug is now closed. Further updates for individual products will be reflected on the CVE page(s):

https://access.redhat.com/security/cve/cve-2020-8163


Note You need to log in before you can comment on or make changes to this bug.