patchminder
Weaponized · Metasploit CVE-2013-0156

Remote code executionin the actionpack package.

Published 13 Jan 2013 · Updated 6 Aug 2024 · Every fact sourced

JSONCite
Is it exploited?
Not confirmed

Weaponized: a Metasploit exploit is public.

Attack code is public
Severity
Not scored
No source has scored it yet
Attack likelihood
Very high
EPSSA daily score from FIRST: the chance a hole is attacked in the next 30 days. 99.0% chance in 30 days · 4 Dec 2026
Fix
Available
Fixed versions listed below
In plain words

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.

What to do now
  • Upgrade actionpack (RubyGems) to 2.3.15, 3.0.19, 3.1.10, 3.2.11 or later, whichever matches your release line.

Not confirmed by any source yet: severity not scored yet. We show these as not confirmed instead of guessing.

Versions

Affected and fixed versions

Product or package
Affected
Fixed in
Source
n/a
Not confirmed
Not confirmed
CVE record
actionpack (RubyGems)
before 2.3.15
2.3.15
GitHub advisory
actionpack (RubyGems)
3.0.0 to before 3.0.19
3.0.19
GitHub advisory
actionpack (RubyGems)
3.1.0 to before 3.1.10
3.1.10
GitHub advisory
actionpack (RubyGems)
3.2.0 to before 3.2.11
3.2.11
GitHub advisory

From the CVE record, NVD and package advisories. When no source has versions yet, this table says "not confirmed" instead of guessing.

Timeline

From first report to first attacks

  1. 6 Dec 2012
    CVE ID reserved by redhat.
  2. 10 Jan 2013
    First public proof of concept on GitHub.
  3. 13 Jan 2013
    Published in the CVE List.
  4. 6 Aug 2024
    CVE record last updated.
Exploit code

Attack code anyone can find

Exploit maturity: Weaponized (Metasploit).

Metasploit module
3 modules
Nuclei scan template
None known
Exploit-DB
2 entries
GitHub proof of concepts
8 repositories
Exploit-DBEDB-ID 27527remote exploit for multiple, published 12 Aug 2013, verified by Exploit-DB
Exploit-DBEDB-ID 24019remote exploit for multiple, published 10 Jan 2013, verified by Exploit-DB
GitHubno warning signs foundbsodmike/rails-exploit-cve-2013-01565 stars · created 12 Jan 2013Bootstrapped Rails 3.2.10 to test the remote code exploit CVE-2013-0156
GitHubno warning signs foundheroku/heroku-CVE-2013-01561 stars · created 11 Jan 2013Inspect all of your heroku apps to see if they are running a vulnerable version of Rails
GitHubno warning signs foundterracatta/name_reverser0 stars · created 10 Jan 2013Silly Rails App to demonstrate vuln CVE-2013-0156
GitHubno warning signs foundjosal/crack-0.1.8-fixed0 stars · created 11 Jan 2013crack repo from jnunemaker but with version 0.1.8 and rails CVE-2013-0156 vulnerability fixed
GitHubno warning signs foundR3dKn33-zz/CVE-2013-01560 stars · created 27 May 2019Arbitrary deserialization that can be used to trigger SQL injection and even Code execution
GitHubno warning signs foundJjdt12/kuang_grade_mk110 stars · created 29 Jul 2023Pseudo shell for CVE-2013-0156.
GitHubno warning signs foundoxben10/CVE-2013-01560 stars · created 13 Nov 2024This script is specifically designed to solve the challenge on PentesterLab for the CVE-2013-0156 exploit
GitHubno warning signs found7s26simon/CVE-2013-01560 stars · created 11 Dec 2025Modified ruby script for RCE

Listed so defenders can judge how urgent this is and test systems they are authorised to test. Patchminder does not host exploit code; links open the source page. Labels for GitHub repositories come from their public details and are never a promise about the code. Run anything only in an isolated lab.

Related

Other vulnerabilities in this package

References
Cite this page

Patchminder. CVE-2013-0156: Remote code execution in the actionpack package. https://patchminder.com/cve/cve-2013-0156/ (accessed 5 December 2026).