← Vulnerability feed

Vulnerability record · CVE-2013-0156 · published 13 January 2013

CVE-2013-0156: Ruby on Rails XML parameter parsing allows object injection and code execution

Rubyonrails · Rails

Ruby on Rails fails to properly restrict casts of string values in active_support/core_ext/hash/conversions.rb, allowing remote attackers to perform object-injection attacks and execute arbitrary code. The flaw also permits denial of service through nested XML entity references that consume memory and CPU. 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.

7.5 CVSS 2.0 High EPSS 99% · top 0.1% CWE-20 · Improper input validation
7.5CVSS 2.0 base score
99%EPSS exploitation probability, 30 days
NoNot in CISA KEV
3Affected product versions listed by NVD
28References
16 Jun 2026Last modified by NVD

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.

AV:N/AC:L/Au:N/C:P/I:P/A:P

Automated analysis

Generated by VULONE's analysis model from the NVD record, CISA KEV and EPSS data on 17 September 2026. Confidence: high.

critical priorityUnauthenticated remote code execution with an EPSS probability above 0.99 and public exploitation tooling makes this an urgent patching priority.

What it is

Ruby on Rails fails to properly restrict casts of string values in active_support/core_ext/hash/conversions.rb, allowing remote attackers to perform object-injection attacks and execute arbitrary code. The flaw also permits denial of service through nested XML entity references that consume memory and CPU. 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.

Impact

An unauthenticated remote attacker can execute arbitrary code in the context of the Rails application or exhaust server memory and CPU to cause a denial of service.

Attack surface

Reached over the network via HTTP requests that supply crafted XML or YAML/Symbol type-converted parameters to Action Pack; no authentication or user interaction is required per the AV:N/AC:L/Au:N vector.

Exploitation

Not listed in CISA KEV, but EPSS is 0.99449 (99.942 percentile), indicating near-certain exploitation activity; references include a Metasploit blog post on serialization exploitation, and no ransomware group usage is documented.

What to do

  • Upgrade Rails to 2.3.15, 3.0.19, 3.1.10, 3.2.11 or later, or apply the vendor patch for your branch
  • Apply the official workaround disabling XML parameter parsing (action_dispatch request parameter parsing) if immediate upgrade is not possible
  • Apply distribution vendor updates for Debian, Red Hat, and other affected packages
  • Disable or restrict YAML and Symbol type conversion in incoming request parameters
  • Review and limit XML entity expansion in any XML parsing paths

Detection

  • Monitor HTTP requests containing XML bodies with nested entity references or YAML/Symbol type tags
  • Alert on Rails application processes spawning unexpected child processes or shell commands
  • Track spikes in memory and CPU usage correlated with XML-heavy request patterns
  • Search logs for Action Pack parameter parsing errors or exceptions involving YAML or Symbol conversion

This assessment is produced automatically and is not human-reviewed. Verify against the vendor advisory before acting on it.

Affected products

3 vulnerable configurations from NVD's CPE data, grouped by vendor and product.

References

LinkTags
http://ics-cert.us-cert.gov/advisories/ICSA-13-036-01A Third Party AdvisoryUS Government Resource
http://lists.apple.com/archives/security-announce/2013/Mar/msg00002.html Mailing ListThird Party Advisory
http://rhn.redhat.com/errata/RHSA-2013-0153.html Third Party Advisory
http://rhn.redhat.com/errata/RHSA-2013-0154.html Third Party Advisory
http://rhn.redhat.com/errata/RHSA-2013-0155.html Third Party Advisory
http://weblog.rubyonrails.org/2013/1/28/Rails-3-0-20-and-2-3-16-have-been-released/ Vendor Advisory
http://www.debian.org/security/2013/dsa-2604 Third Party Advisory
http://www.fujitsu.com/global/support/software/security/products-f/sw-sv-rcve-ror201301e.html Third Party Advisory
http://www.insinuator.net/2013/01/rails-yaml/ Third Party Advisory
http://www.kb.cert.org/vuls/id/380039 Third Party AdvisoryUS Government Resource
http://www.kb.cert.org/vuls/id/628463 Third Party AdvisoryUS Government Resource
https://community.rapid7.com/community/metasploit/blog/2013/01/09/serialization-mischief-in-ruby-land-cve-2013-0156 Third Party Advisory
https://groups.google.com/group/rubyonrails-security/msg/c1432d0f8c70e89d?dmode=source&output=gplain Third Party Advisory
https://puppet.com/security/cve/cve-2013-0156 Third Party Advisory
http://ics-cert.us-cert.gov/advisories/ICSA-13-036-01A Third Party AdvisoryUS Government Resource
http://lists.apple.com/archives/security-announce/2013/Mar/msg00002.html Mailing ListThird Party Advisory
http://rhn.redhat.com/errata/RHSA-2013-0153.html Third Party Advisory
http://rhn.redhat.com/errata/RHSA-2013-0154.html Third Party Advisory
http://rhn.redhat.com/errata/RHSA-2013-0155.html Third Party Advisory
http://weblog.rubyonrails.org/2013/1/28/Rails-3-0-20-and-2-3-16-have-been-released/ Vendor Advisory
http://www.debian.org/security/2013/dsa-2604 Third Party Advisory
http://www.fujitsu.com/global/support/software/security/products-f/sw-sv-rcve-ror201301e.html Third Party Advisory
http://www.insinuator.net/2013/01/rails-yaml/ Third Party Advisory
http://www.kb.cert.org/vuls/id/380039 Third Party AdvisoryUS Government Resource
http://www.kb.cert.org/vuls/id/628463 Third Party AdvisoryUS Government Resource
https://community.rapid7.com/community/metasploit/blog/2013/01/09/serialization-mischief-in-ruby-land-cve-2013-0156 Third Party Advisory
https://groups.google.com/group/rubyonrails-security/msg/c1432d0f8c70e89d?dmode=source&output=gplain Third Party Advisory
https://puppet.com/security/cve/cve-2013-0156 Third Party Advisory

Track CVE-2013-0156 inside VULONE

Watch it alongside the ransomware crews, C2 infrastructure and forum chatter that reference it, query it through the API and pull it into your SIEM over TAXII.

Start free Open in platform

Related vulnerabilities

Same products first, then exploited flaws of the same weakness class.

10.0CVE-2025-32433Erlang/OTP SSH server missing authentication allows remote code executionErlang/OTP SSH servers before OTP-27.3.3, OTP-26.2.5.11 and OTP-25.3.2.20 mishandle SSH protocol messages, letting an unauthenticated attacker execut…KEVEPSS 99%analysed10.0CVE-2025-24201Apple WebKit out-of-bounds write allows sandbox escapeCVE-2025-24201 is an out-of-bounds write in Apple's WebKit that was addressed with improved checks. Maliciously crafted web content may break out of …KEVEPSS 3.8%analysed10.0CVE-2021-44228Apache Log4j2 JNDI lookup remote code executionApache Log4j2 versions 2.0-beta9 through 2.15.0 (excluding 2.12.2, 2.12.3, and 2.3.1) do not protect against attacker-controlled LDAP and other JNDI …KEVEPSS 100%analysed9.8CVE-2026-24061GNU Inetutils telnetd argument injection allows remote auth bypasstelnetd in GNU Inetutils through 2.7 fails to sanitize the USER environment variable, so a value such as "-f root" is passed as an argument to login …KEVEPSS 99%analysed9.8CVE-2025-39682Linux kernel TLS zero-length record handling flaw on rx_listThe Linux kernel TLS receive path mishandles zero-length records that arrive from the rx_list, breaking the assumption that a record type change cann…KEVEPSS 2.9%analysed9.8CVE-2025-24813Apache Tomcat Default Servlet path equivalence enables RCE and file disclosureApache Tomcat mishandles path equivalence for names containing an internal dot, letting a remote unauthenticated attacker write files through the Def…KEVEPSS 100%analysed9.8CVE-2024-9680Mozilla Firefox and Thunderbird use-after-free in Animation timelinesA use-after-free flaw in Animation timelines allows an attacker to execute code in the content process of Firefox and Thunderbird. Mozilla reports ex…KEVEPSS 23%analysed9.8CVE-2023-46604Apache ActiveMQ OpenWire deserialization remote code executionThe Java OpenWire protocol marshaller in Apache ActiveMQ deserializes untrusted data, letting an attacker manipulate serialized class types so the br…KEVEPSS 100%analysed

Source: NIST National Vulnerability Database (record CVE-2013-0156), CISA KEV, FIRST EPSS (scores of 2026-09-22). This page is refreshed as NVD updates the record.