Skip to content
OpenAdvisories
High Public exploit CVE-2013-0156 EUVD-2017-0264GHSA-jmgw-6vjg-jjwg

actionpack Improper Input Validation vulnerability

Published Jan 13, 2013 · Updated Aug 6, 2024 · Assigned by redhat

Description

active_support/core_ext/hash/conversions.rb in Ruby on Rails before 2.3.15, 3.0.x before 3.0.19, 3.1.x before 3.1.10, and 3.2.x before 3.2.11 does not properly restrict casts of string values, which allows remote attackers to conduct object-injection attacks and execute arbitrary code, or cause a denial of service (memory and CPU consumption) involving nested XML entity references, by leveraging Action Pack support for (1) YAML type conversion or (2) Symbol type conversion.

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.3.14.1 —
Debian 13 rails 2.3.14.1 —
Debian 12 rails 2.3.14.1 —
Debian 6.0 rails 2.3.5-1.2+squeeze4.1 DSA-2604-1
ReleasePackageFixed inAdvisory
Red Hat OpenShift 1 ruby193-rubygem-actionpack +1 1:3.2.8-2.el6 RHSA-2013:0153
Red Hat OpenShift 1 ruby193-rubygem-activesupport 1:3.2.8-3.el6 RHSA-2013:0153
Red Hat OpenShift 1 rubygem-actionpack 1:3.0.13-2.1.el6op RHSA-2013:0153
Red Hat OpenShift 1 rubygem-activesupport 1:3.0.13-2.el6op RHSA-2013:0153
ReleasePackageFixed inAdvisory
openSUSE Tumbleweed rubygem-extlib 0.9.16-7.4 openSUSE-SU-2024:10188-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 3 modules

Exploit-DB 2

GitHub 8 repositories

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 < 2.3.15 2.3.15 GHSA-jmgw-6vjg-jjwg
RubyGems actionpack >= 3.0.0, < 3.0.19 3.0.19 GHSA-jmgw-6vjg-jjwg
RubyGems actionpack >= 3.1.0, < 3.1.10 3.1.10 GHSA-jmgw-6vjg-jjwg
RubyGems actionpack >= 3.2.0, < 3.2.11 3.2.11 GHSA-jmgw-6vjg-jjwg

Advisories 3

References