Patchfirst
CVE-2013-0156 Public exploit EPSS 99.0%

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…

Fix:upgrade actionpack to 3.2.22.2 also fixes CVE-2014-0130, CVE-2016-0752, +1 Details ↓

Summary

The flaw is in active_support/core_ext/hash/conversions.rb in Ruby on Rails, affecting releases before 2.3.15, the 3.0.x line before 3.0.19, the 3.1.x line before 3.1.10, and the 3.2.x line before 3.2.11. The code does not properly restrict casts of string values, so an attacker can exploit Action Pack's YAML and Symbol type conversion support through nested XML entity references to perform object-injection attacks, execute arbitrary code, or cause denial of service through memory and CPU consumption, with remote attack the stated access path.

Official description · CVE.org

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.

Breakdown
61.8 / 100
Exploited
Yes, in VulnCheck KEV
Reports
0
Tactics
0/15

First seen exploited 4 months after disclosure. Public exploit code (Metasploit) was available 6 days before disclosure.

  1. Public exploit codeMetasploit6 days before
  2. Disclosedday 0
  3. First seen exploitedVulnCheck KEV evidence+4 mo

6 related vulnerabilities in the same code over 3 months. The latest fix listed for actionpack is 3.2.17.

Linked vulnerabilitiesLinked by evidence that a fix failed or the same code was patched again. Oldest first.

  1. This CVECVE-2013-0156active_support/core_ext/hash/conversions.rb in Ruby on Rails…13 Jan 2013
  2. relatedLow

    Why these are linked:

    • Stated in the CVE text…ode, 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, a similar vulnerability to CVE-2013-0156.
    CVE-2013-0285The nori gem 2.0.x before 2.0.2, 1.1.x before 1.1.4, and 1.0.x…9 Apr 2013
  3. same family
    CVE-2013-1800The crack gem 0.3.1 and earlier for Ruby does not properly…9 Apr 2013
  4. same family
    CVE-2013-1801The httparty gem 0.9.0 and earlier for Ruby does not properly…9 Apr 2013
  5. same family
    CVE-2013-1802The extlib gem 0.9.15 and earlier for Ruby does not properly…9 Apr 2013
  6. same family
    CVE-2013-0175multi_xml gem 0.5.2 for Ruby, as used in Grape before 0.2.6 and…25 Apr 2013

Fixes in actionpackRubyGems package, by fixed version. Earlier and later fixes in the same package, not necessarily the same bug.

  1. 3.0.10CVE-2011-293129 Aug 2011
  2. 3.2.7CVE-2012-34248 Aug 2012
  3. 3.2.8CVE-2012-346310 Aug 2012
  4. 3.2.8CVE-2012-346510 Aug 2012
  5. 3.2.11CVE-2013-015613 Jan 2013
  6. 3.2.13CVE-2013-185519 Mar 2013
  7. 3.2.13CVE-2013-185719 Mar 2013
  8. 3.2.17CVE-2014-008220 Feb 2014Latest listed

Am I affected? What do I upgrade to?

From GitHub Security Advisories and OSV

1 package in 1 ecosystem. Main package: actionpack.

RubyGemsactionpackGHSA-jmgw-6vjg-jjwg

Upgrade to 3.2.22.2

Fixes this CVE and 3 other known vulnerabilities in this package (CVE-2014-0130, CVE-2016-0752, +1).

Still affected on this line by CVE-2026-126081 (fixed in 8.0.5.2, a newer line).

Gemfilegem "actionpack", ">= 3.2.22.2"

First fixed in 3.2.11 for CVE-2013-0156.

Affected versions, by release line

If you runUpgrade to
3.2.0 up to 3.2.113.2.22.2first fix for this CVE: 3.2.11
3.1.0 up to 3.1.10

Still affected on this line by CVE-2014-0130 (fixed in 3.2.18, a newer line); CVE-2016-0752 (fixed in 3.2.22.1, a newer line); CVE-2016-2098 (fixed in 3.2.22.2, a newer line); CVE-2026-126081 (fixed in 8.0.5.2, a newer line).

3.1.10
3.0.0 up to 3.0.19

Still affected on this line by CVE-2014-0130 (fixed in 3.2.18, a newer line); CVE-2016-0752 (fixed in 3.2.22.1, a newer line); CVE-2016-2098 (fixed in 3.2.22.2, a newer line); CVE-2026-126081 (fixed in 8.0.5.2, a newer line).

3.0.19
All versions before 2.3.15

Still affected on this line by CVE-2016-0752 (fixed in 3.2.22.1, a newer line); CVE-2026-126081 (fixed in 8.0.5.2, a newer line).

2.3.15

“Up to” means the second version is the fix and is not affected.

Check your lockfile against all CVEs

What security researchers reported

Not named in any threat report yet

Also mentioned in 5 community threat pulses (AlienVault OTX)

Weaker evidence

Pulses are indicator collections that anyone can publish. A mention is not confirmation of exploitation.

References

14 links, grouped by NVD tag
↑ ↓ chooseEnter openEsc close