CVE-2013-0156
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…
- 7.5HighCVSS base score
- 99.0%Exploitation in 30 daysEPSS · top 0.1% of all CVEs
- NoKnown exploitednot in CISA's KEV catalog
- 5Public exploitsMetasploit, Nuclei and Exploit-DB
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.
Public exploit
An exploit or proof of concept is public: anyone can try it against an unpatched system. The public collections list 3 Metasploit modules and 2 Exploit-DB entries for it.
Show the exploits5
Metasploit modules3 modules
- Ruby on Rails Known Secret Session Cookie Remote Code Execution (Metasploit module) (opens in a new tab)
exploit/multi/http/rails_secret_deserializationRank excellentdisclosed 11 Apr 2013
- Ruby on Rails XML Processor YAML Deserialization Code Execution (Metasploit module) (opens in a new tab)
exploit/multi/http/rails_xml_yaml_code_execRank excellentdisclosed 7 Jan 2013
- Ruby on Rails XML Processor YAML Deserialization Scanner (Metasploit module) (opens in a new tab)
auxiliary/scanner/http/rails_xml_yaml_scannerRank normal
Exploit-DB2 entries
- Ruby on Rails - Known Secret Session Cookie Remote Code Execution (Metasploit) (Exploit-DB entry) (opens in a new tab)
EDB-ID 27527remote, multiplepublished 12 Aug 2013Verified
- Ruby on Rails - XML Processor YAML Deserialization Code Execution (Metasploit) (Exploit-DB entry) (opens in a new tab)
EDB-ID 24019remote, multiplepublished 10 Jan 2013Verified
Modules, templates and exploits as listed by the Metasploit Framework (BSD-3-Clause), ProjectDiscovery's Nuclei templates (MIT) and the Exploit Database (GPLv2), read once a day. Where the data comes from
Timeline
ID reserved
By redhat
- 38 days later
· 38 days later
Published
- 12 years later
· 12 years later
Record updated
Changes after publication (a new score, a public exploit, EPSS crossing 1, 10 or 50 %, leaving KEV) are kept since November 2026; earlier ones are not known.
Scores
| Scored by | CVSS | Score | Vector |
|---|---|---|---|
| NVDNVD · Modified | 2.0 | High7.5 | AV:N/AC:L/Au:N/C:P/I:P/A:P |
- EPSS (exploitation in 30 days)
- 99.0% · top 0.1% of all CVEs (10 Nov 2026)
The list uses the assigner's score when there is one, then CISA's, then NVD's: High 7.5.
Affected products
n/a
- affected n/a
Affected packages
From reviewed advisories of the GitHub Advisory Database.
- RubyGemsactionpackGHSA-jmgw-6vjg-jjwg (opens in a new tab)
References
14
- [rubyonrails-security] 20130108 Multiple vulnerabilities in parameter parsing in Action Pack (CVE-2013-0156) (opens in a new tab)mailing-listx_refsource_MLISTx_transferred
- http://www.insinuator.net/2013/01/rails-yaml/ (opens in a new tab)x_refsource_MISCx_transferred
- RHSA-2013:0155 (opens in a new tab)vendor-advisoryx_refsource_REDHATx_transferred
- VU#628463 (opens in a new tab)third-party-advisoryx_refsource_CERT-VNx_transferred
- https://community.rapid7.com/community/metasploit/blog/2013/01/09/serialization-mischief-in-ruby-land-cve-2013-0156 (opens in a new tab)x_refsource_MISCx_transferred
- http://www.fujitsu.com/global/support/software/security/products-f/sw-sv-rcve-ror201301e.html (opens in a new tab)x_refsource_CONFIRMx_transferred
- VU#380039 (opens in a new tab)third-party-advisoryx_refsource_CERT-VNx_transferred
- APPLE-SA-2013-03-14-1 (opens in a new tab)vendor-advisoryx_refsource_APPLEx_transferred
- DSA-2604 (opens in a new tab)vendor-advisoryx_refsource_DEBIANx_transferred
- http://ics-cert.us-cert.gov/advisories/ICSA-13-036-01A (opens in a new tab)x_refsource_MISCx_transferred
- RHSA-2013:0154 (opens in a new tab)vendor-advisoryx_refsource_REDHATx_transferred
- https://puppet.com/security/cve/cve-2013-0156 (opens in a new tab)x_refsource_CONFIRMx_transferred
- http://weblog.rubyonrails.org/2013/1/28/Rails-3-0-20-and-2-3-16-have-been-released/ (opens in a new tab)x_refsource_CONFIRMx_transferred
- RHSA-2013:0153 (opens in a new tab)vendor-advisoryx_refsource_REDHATx_transferred
Sources
The same CVE in the primary databases and aggregators, to check against.
- CVE.org record (opens in a new tab)
- CVE List JSON (GitHub) (opens in a new tab)
- NVD (opens in a new tab)
- FIRST EPSS (opens in a new tab)
- EUVD EUVD-2017-0264 (opens in a new tab)
- OSV.dev (opens in a new tab)
- GitHub Advisory GHSA-jmgw-6vjg-jjwg (opens in a new tab)
- CIRCL Vulnerability-Lookup (opens in a new tab)
Badge for a README or a ticket
[](https://cveledger.app/cve/CVE-2013-0156)Record last updated .