CVE-2013-0156: Ruby on Rails XML Parameter Parsing Object Injection and Remote Code Execution
- Vendors
- Debian ProjectRuby On Rails
CVE-2013-0156 is an unsafe type-conversion vulnerability in Ruby on Rails Action Pack XML parameter parsing and ActiveSupport hash conversion. It affects 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. Insufficient restrictions on YAML and Symbol type conversions allow attacker-controlled XML request parameters to instantiate unintended objects and potentially execute arbitrary code. Malicious XML, including nested entity references, can also cause excessive memory and CPU consumption.
Impact, mitigation & remediation
What it means and what to do now: patch path, interim mitigations, and the assume-compromise checklist.
Impact
What an attacker gets, and what they’ve been doing with it.
Remote exploitation can execute arbitrary code with the privileges of the Rails application process or exhaust server memory and CPU, causing denial of service. Depending on application behavior and the injected objects, parameter parsing attacks can also bypass authentication or enable SQL injection. Observed exploitation has deployed XMRig cryptocurrency miners and installed recurring scheduled tasks for persistence.
Mitigation
If you can’t patch tonight, do this now.
If an upgrade cannot be applied immediately, disable XML parameter parsing where it is unnecessary. Where XML parsing must remain enabled, remove YAML and Symbol type-conversion support and reduce REXML::Document.entity_expansion_limit to constrain entity-expansion resource consumption. Disable YAML parameter parsing if it is enabled.
Remediation
Patch, then assume compromise.
Upgrade Ruby on Rails and its Action Pack dependency to a fixed release: 2.3.15 or later in the 2.3 series, 3.0.19 or later in the 3.0 series, 3.1.10 or later in the 3.1 series, or 3.2.11 or later in the 3.2 series. These are historical minimum fixed versions; migrate legacy applications to a currently supported Rails release.
Exploits
3 exploits validated by Mallory's analysis. Hidden: 2 rejected by Mallory's analysis as not a working exploit.
Affected products & vendors
Products and vendors Mallory has correlated with this vulnerability. Open in Mallory to drill down to specific CPE configurations and version ranges.
References
Frequently asked questions
- Is CVE-2013-0156 exploited in the wild?
- Yes. As of Oct 18, 2026, Mallory has reports of exploitation in the wild.
- Is there a public exploit for CVE-2013-0156?
- Yes. Mallory tracks 3 public exploits or proofs of concept for CVE-2013-0156, the earliest disclosed Jan 7, 2013.
- Is there a patch for CVE-2013-0156?
- Upgrade Ruby on Rails and its Action Pack dependency to a fixed release: 2.3.15 or later in the 2.3 series, 3.0.19 or later in the 3.0 series, 3.1.10 or later in the 3.1 series, or 3.2.11 or later in the 3.2 series. These are historical minimum fixed versions; migrate legacy applications to a currently supported Rails release.
- What products are affected by CVE-2013-0156?
- Ruby On Rails Rails, Ruby On Rails, and Debian Project Debian Linux.
- How severe is CVE-2013-0156?
- CVE-2013-0156 has a CVSS v2 score of 7.5 (High) and an EPSS score of 99.0% (100th percentile) as of Oct 18, 2026.
Recent activity
5 sources tracked across advisories, community write-ups, and news. New activity surfaces here as Mallory finds it.