Skip to content
OpenAdvisories
High · 7.3 Public exploit CVE-2016-2098 EUVD-2017-0185GHSA-78rc-8c29-p45g

actionpack allows remote code execution via application's unrestricted use of render method

Published Apr 7, 2016 · Updated Aug 5, 2024 · Assigned by redhat

Description

Action Pack in Ruby on Rails before 3.2.22.2, 4.x before 4.1.14.2, and 4.2.x before 4.2.5.2 allows remote attackers to execute arbitrary Ruby code by leveraging an application's unrestricted use of the render method.

Fixed in Linux distributions

Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.

ReleasePackageFixed inAdvisory
Debian 14 rails 2:4.2.5.2-1 —
Debian 13 rails 2:4.2.5.2-1 —
Debian 12 rails 2:4.2.5.2-1 —
Debian 8 rails 2:4.1.8-1+deb8u2 DSA-3509-1
Debian 7 ruby-actionpack-3.2 3.2.6-6+deb7u3 DLA-604-1
ReleasePackageFixed inAdvisory
RHEL 2 rh-ror41-rubygem-actionpack +1 1:4.1.5-4.el6 RHSA-2016:0456
RHEL 2 rh-ror41-rubygem-actionview +1 4.1.5-5.el6 RHSA-2016:0456
RHEL 2 ror40-rubygem-actionpack +1 1:4.0.2-7.el6 RHSA-2016:0454
RHEL 2 ror40-rubygem-activerecord +1 1:4.0.2-6.el6 RHSA-2016:0454
RHEL 2 ror40-rubygem-activesupport 1:4.0.2-4.el6 RHSA-2016:0454
RHEL 2 ruby193-rubygem-actionpack +1 1:3.2.8-16.el6 RHSA-2016:0455
RHEL 2 ruby193-rubygem-activerecord +1 1:3.2.8-11.el6 RHSA-2016:0455
RHEL 2 ruby193-rubygem-activesupport 1:3.2.8-6.el6 RHSA-2016:0455
ReleasePackageFixed inAdvisory
SLES 12 portus 2.0.3-2.4 SUSE-SU-2016:1146-1
SLES 11 SP4 rubygem-actionpack-3_2 3.2.12-0.26.1 SUSE-SU-2016:0967-1
Show 9 more (older releases, extended support, other products)
ReleasePackageFixed inAdvisory
SUSE WebYast 1.3 rubygem-actionpack-3_2 3.2.12-0.26.1 SUSE-SU-2016:0967-1
SUSE Studio Onsite 1.3 rubygem-actionpack-3_2 3.2.12-0.26.1 SUSE-SU-2016:0967-1
SUSE OpenStack Cloud 7 rubygem-actionpack-4_2 +1 4.2.9-7.3.1 SUSE-SU-2017:2716-1
SUSE OpenStack Cloud 7 rubygem-actionview-4_2 4.2.9-9.3.1 SUSE-SU-2017:2716-1
SUSE OpenStack Cloud 7 rubygem-activemodel-4_2 +1 4.2.9-6.3.1 SUSE-SU-2017:2716-1
SUSE OpenStack Cloud 7 rubygem-rails-4_2 +3 4.2.9-3.3.1 SUSE-SU-2017:2716-1
SUSE OpenStack Cloud 7 rubygem-rails-html-sanitizer 1.0.3-8.3.1 SUSE-SU-2017:2716-1
SUSE OpenStack Cloud 6 rubygem-actionpack-4_2 +1 4.2.9-7.3.1 SUSE-SU-2017:2716-1
SUSE OpenStack Cloud 6 rubygem-actionview-4_2 4.2.2-8.1 SUSE-SU-2017:2716-1, SUSE-SU-2016:0867-1
SUSE OpenStack Cloud 6 rubygem-activemodel-4_2 +1 4.2.9-6.3.1 SUSE-SU-2017:2716-1
SUSE OpenStack Cloud 6 rubygem-rails-4_2 +3 4.2.9-3.3.1 SUSE-SU-2017:2716-1
SUSE OpenStack Cloud 6 rubygem-rails-html-sanitizer 1.0.3-8.3.1 SUSE-SU-2017:2716-1
SUSE OpenStack Cloud 5 rubygem-actionview-4_1 4.1.9-12.1 SUSE-SU-2016:0854-1
SUSE Lifecycle Management Server 1.3 rubygem-actionpack-3_2 3.2.12-0.26.1 SUSE-SU-2016:0967-1
SUSE Enterprise Storage 4 rubygem-actionpack-4_2 +1 4.2.9-7.3.1 SUSE-SU-2017:2716-1
SUSE Enterprise Storage 4 rubygem-actionview-4_2 4.2.9-9.3.1 SUSE-SU-2017:2716-1
SUSE Enterprise Storage 4 rubygem-activemodel-4_2 +1 4.2.9-6.3.1 SUSE-SU-2017:2716-1
SUSE Enterprise Storage 4 rubygem-rails-4_2 +3 4.2.9-3.3.1 SUSE-SU-2017:2716-1
SUSE Enterprise Storage 4 rubygem-rails-html-sanitizer 1.0.3-8.3.1 SUSE-SU-2017:2716-1
SUSE Enterprise Storage 3 rubygem-actionpack-4_2 +1 4.2.9-7.3.1 SUSE-SU-2017:2716-1
SUSE Enterprise Storage 3 rubygem-actionview-4_2 4.2.9-9.3.1 SUSE-SU-2017:2716-1
SUSE Enterprise Storage 3 rubygem-activemodel-4_2 +1 4.2.9-6.3.1 SUSE-SU-2017:2716-1
SUSE Enterprise Storage 3 rubygem-rails-4_2 +3 4.2.9-3.3.1 SUSE-SU-2017:2716-1
SUSE Enterprise Storage 3 rubygem-rails-html-sanitizer 1.0.3-8.3.1 SUSE-SU-2017:2716-1
SUSE Enterprise Storage 2.1 rubygem-actionview-4_2 4.2.2-8.1 SUSE-SU-2016:0867-1
ReleasePackageFixed inAdvisory
openSUSE Tumbleweed rubygem-actionview-4_2 5.0.0.1-1.1 openSUSE-SU-2024:10057-1

Public exploits

Exploit or proof-of-concept code for this vulnerability is publicly available, which lowers the bar for attackers. Treat it as a reason to patch sooner.

Third-party code, not reviewed by us. Public PoCs are sometimes fake or contain malware. Read the code first and run it only in an isolated lab, against systems you are authorised to test.

Metasploit 1 module

Exploit-DB 1

GitHub 12 repositories · most starred shown

Sources: PoC-in-GitHub, Metasploit Framework, Exploit-DB — updated daily. Only links are listed; no exploit code is hosted here.

Affected packages

EcosystemPackageAffectedFixedRecord
RubyGems actionpack >= 3.0.0, < 3.2.22.2 3.2.22.2 GHSA-78rc-8c29-p45g
RubyGems actionpack >= 4.0.0, < 4.1.14.2 4.1.14.2 GHSA-78rc-8c29-p45g
RubyGems actionpack >= 4.2.0, < 4.2.5.2 4.2.5.2 GHSA-78rc-8c29-p45g

Advisories 11

References