{"id":"CVE-2013-0156","published":"2013-01-13T22:00:00Z","modified":"2024-08-06T14:18:09Z","title":"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…","vendor":null,"product":null,"tier":"core","eol":null,"description":{"text":"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.","provenance":"source","from":"CVE.org"},"summary":{"text":"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.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-10-29T07:14:28Z"},"cvss":null,"epss":{"score":0.98979,"percentile":0.99929,"date":"2026-11-08","provenance":"source"},"kev":null,"vulncheckKev":{"dateAdded":"2013-05-28","exploitedFirstSeen":"2013-05-28","ransomware":false,"evidence":[{"url":"https://gist.github.com/ismasan/5647955","date":"2013-05-28"},{"url":"https://research.checkpoint.com/2018/rubyminer-cryptominer-affects-30-ww-networks/","date":"2018-01-11"},{"url":"https://www.certego.net/blog/ruby-rce-used-to-push-monero-coinminer/","date":"2018-01-11"},{"url":"https://www.bleepingcomputer.com/news/security/linux-and-windows-servers-targeted-with-rubyminer-malware/","date":"2018-01-15"}],"evidenceTotal":4,"provenance":"source"},"exploited":true,"otx":{"pulseCount":5,"pulses":[{"name":"SCANID: S-KhOoOrXsco8: Thor Lite Linux 64 - Sample Lab Device 2 - incomplete (not enriched)","url":"https://otx.alienvault.com/pulse/67c6bb5aa601e91b1314ff44","created":"2025-03-04"},{"name":"Python: OVSAgentServer Document (autofilled name)","url":"https://otx.alienvault.com/pulse/6660c1268a1f430e17236b55","created":"2024-06-05"},{"name":"Thor Lite Scan - 10.7.15 - Ubuntu Scan on Archived Files","url":"https://otx.alienvault.com/pulse/664cc3c1938ed0b9abf026a2","created":"2024-05-21"},{"name":"Proof Point Emerging Exploit list","url":"https://otx.alienvault.com/pulse/6399fdc966948f6b537b9762","created":"2022-12-14"},{"name":"Ruby RCE pushing Monero Coinminer","url":"https://otx.alienvault.com/pulse/5a607968d817901b38dbcad3","created":"2018-01-18"}],"provenance":"machine"},"cwes":[],"references":[{"url":"https://groups.google.com/group/rubyonrails-security/msg/c1432d0f8c70e89d?dmode=source&output=gplain","tags":["mailing-list","x_refsource_MLIST"]},{"url":"http://www.insinuator.net/2013/01/rails-yaml/","tags":["x_refsource_MISC"]},{"url":"http://rhn.redhat.com/errata/RHSA-2013-0155.html","tags":["vendor-advisory","x_refsource_REDHAT"]},{"url":"http://www.kb.cert.org/vuls/id/628463","tags":["third-party-advisory","x_refsource_CERT-VN"]},{"url":"https://community.rapid7.com/community/metasploit/blog/2013/01/09/serialization-mischief-in-ruby-land-cve-2013-0156","tags":["x_refsource_MISC"]},{"url":"http://www.fujitsu.com/global/support/software/security/products-f/sw-sv-rcve-ror201301e.html","tags":["x_refsource_CONFIRM"]},{"url":"http://www.kb.cert.org/vuls/id/380039","tags":["third-party-advisory","x_refsource_CERT-VN"]},{"url":"http://lists.apple.com/archives/security-announce/2013/Mar/msg00002.html","tags":["vendor-advisory","x_refsource_APPLE"]},{"url":"http://www.debian.org/security/2013/dsa-2604","tags":["vendor-advisory","x_refsource_DEBIAN"]},{"url":"http://ics-cert.us-cert.gov/advisories/ICSA-13-036-01A","tags":["x_refsource_MISC"]},{"url":"http://rhn.redhat.com/errata/RHSA-2013-0154.html","tags":["vendor-advisory","x_refsource_REDHAT"]},{"url":"https://puppet.com/security/cve/cve-2013-0156","tags":["x_refsource_CONFIRM"]},{"url":"http://weblog.rubyonrails.org/2013/1/28/Rails-3-0-20-and-2-3-16-have-been-released/","tags":["x_refsource_CONFIRM"]},{"url":"http://rhn.redhat.com/errata/RHSA-2013-0153.html","tags":["vendor-advisory","x_refsource_REDHAT"]}],"techniques":[],"reports":[],"affected":[{"ecosystem":"RubyGems","package":"actionpack","vulnerableRanges":["<2.3.15",">=3.0.0, <3.0.19",">=3.1.0, <3.1.10",">=3.2.0, <3.2.11"],"patched":["2.3.15","3.0.19","3.1.10","3.2.11"],"from":["GHSA-jmgw-6vjg-jjwg"],"provenance":"source"}],"advisories":[{"id":"GHSA-jmgw-6vjg-jjwg","url":"https://github.com/advisories/GHSA-jmgw-6vjg-jjwg","severity":"HIGH","ecosystem":"RubyGems","package":"actionpack","vulnerableRanges":["<2.3.15"],"patched":["2.3.15"],"provenance":"source","from":"GHSA"},{"id":"GHSA-jmgw-6vjg-jjwg","url":"https://github.com/advisories/GHSA-jmgw-6vjg-jjwg","severity":"HIGH","ecosystem":"RubyGems","package":"actionpack","vulnerableRanges":[">=3.0.0, <3.0.19"],"patched":["3.0.19"],"provenance":"source","from":"GHSA"},{"id":"GHSA-jmgw-6vjg-jjwg","url":"https://github.com/advisories/GHSA-jmgw-6vjg-jjwg","severity":"HIGH","ecosystem":"RubyGems","package":"actionpack","vulnerableRanges":[">=3.1.0, <3.1.10"],"patched":["3.1.10"],"provenance":"source","from":"GHSA"},{"id":"GHSA-jmgw-6vjg-jjwg","url":"https://github.com/advisories/GHSA-jmgw-6vjg-jjwg","severity":"HIGH","ecosystem":"RubyGems","package":"actionpack","vulnerableRanges":[">=3.2.0, <3.2.11"],"patched":["3.2.11"],"provenance":"source","from":"GHSA"}],"euvd":{"id":"EUVD-2017-0264","url":"https://euvd.enisa.europa.eu/vulnerability/EUVD-2017-0264","exploited":false,"exploitedSince":null,"provenance":"source"},"exploits":[{"id":24019,"url":"https://www.exploit-db.com/exploits/24019","title":"Ruby on Rails - XML Processor YAML Deserialization Code Execution (Metasploit)","type":"remote","platform":"multiple","date":"2013-01-10","verified":true,"provenance":"source"},{"id":27527,"url":"https://www.exploit-db.com/exploits/27527","title":"Ruby on Rails - Known Secret Session Cookie Remote Code Execution (Metasploit)","type":"remote","platform":"multiple","date":"2013-08-12","verified":true,"provenance":"source"}],"exploitSources":{"exploitdb":{"count":2,"earliest":"2013-01-10"},"pocGithub":{"count":8,"skipped":0,"earliest":"2013-01-10","earliestUrl":"https://github.com/terracatta/name_reverser","repos":[{"name":"bsodmike/rails-exploit-cve-2013-0156","url":"https://github.com/bsodmike/rails-exploit-cve-2013-0156","stars":5,"created":"2013-01-12"},{"name":"heroku/heroku-CVE-2013-0156","url":"https://github.com/heroku/heroku-CVE-2013-0156","stars":1,"created":"2013-01-11"},{"name":"terracatta/name_reverser","url":"https://github.com/terracatta/name_reverser","stars":0,"created":"2013-01-10"},{"name":"josal/crack-0.1.8-fixed","url":"https://github.com/josal/crack-0.1.8-fixed","stars":0,"created":"2013-01-11"},{"name":"R3dKn33-zz/CVE-2013-0156","url":"https://github.com/R3dKn33-zz/CVE-2013-0156","stars":0,"created":"2019-05-27"}]},"metasploit":[{"name":"Ruby on Rails XML Processor YAML Deserialization Code Execution","module":"exploit/multi/http/rails_xml_yaml_code_exec","type":"exploit","disclosureDate":"2013-01-07","url":"https://github.com/rapid7/metasploit-framework/blob/master/modules/exploits/multi/http/rails_xml_yaml_code_exec.rb"},{"name":"Ruby on Rails Known Secret Session Cookie Remote Code Execution","module":"exploit/multi/http/rails_secret_deserialization","type":"exploit","disclosureDate":"2013-04-11","url":"https://github.com/rapid7/metasploit-framework/blob/master/modules/exploits/multi/http/rails_secret_deserialization.rb"},{"name":"Ruby on Rails XML Processor YAML Deserialization Scanner","module":"auxiliary/scanner/http/rails_xml_yaml_scanner","type":"auxiliary","disclosureDate":null,"url":"https://github.com/rapid7/metasploit-framework/blob/master/modules/auxiliary/scanner/http/rails_xml_yaml_scanner.rb"}],"first":{"date":"2013-01-07","source":"Metasploit","url":"https://github.com/rapid7/metasploit-framework/blob/master/modules/exploits/multi/http/rails_xml_yaml_code_exec.rb"},"provenance":"source"},"exploitRefs":[],"flow":[],"timeline":[{"date":"2013-01-07","kind":"exploit-public","label":"First public exploit: Metasploit; later: Exploit-DB 2013-01-10, PoC-in-GitHub 2013-01-10","url":"https://github.com/rapid7/metasploit-framework/blob/master/modules/exploits/multi/http/rails_xml_yaml_code_exec.rb","provenance":"source"},{"date":"2013-01-13","kind":"published","label":"Published (CVE.org)","url":"https://www.cve.org/CVERecord?id=CVE-2013-0156","provenance":"source"},{"date":"2013-05-28","kind":"exploited-reported","label":"Exploitation first reported (VulnCheck KEV evidence)","url":"https://gist.github.com/ismasan/5647955","provenance":"source"}],"speed":{"daysToPublicExploit":null,"firstExploitFrom":"Metasploit","daysToKev":null},"priority":{"score":61.8,"factors":[{"name":"In a KEV catalog","points":35.0,"detail":"listed in VulnCheck KEV"},{"name":"Recent KEV listing","points":0.0,"detail":"added 4912 days ago"},{"name":"Known ransomware use","points":0.0,"detail":"not known"},{"name":"EPSS percentile","points":19.99,"detail":"percentile 0.9993"},{"name":"Named in threat reports","points":0.0,"detail":"0 reports"},{"name":"Public exploit code","points":5.0,"detail":"2 Exploit-DB entries; 8 PoC-in-GitHub repos; 3 Metasploit modules"},{"name":"Mentioned in OTX pulses","points":1.77,"detail":"5 pulses"},{"name":"CVSS severity","points":0.0,"detail":"no CVSS"},{"name":"End-of-life product","points":0.0,"detail":"supported or unknown"}]},"lineage":{"children":[{"from":"CVE-2013-0156","to":"CVE-2013-0175","relation":"related","confidence":"low","kind":"lineage","evidence":[{"kind":"text","provenance":"source","relation":"related","quote":"…arbitrary code, or cause a denial of service (memory and CPU consumption) involving nested XML entity references, by leveraging support for (1) YAML type conversion or (2) Symbol type conversion, a similar vulnerability to CVE-2013-0156.","from":"CVE.org","in":"CVE-2013-0175"}]},{"from":"CVE-2013-0156","to":"CVE-2013-0285","relation":"related","confidence":"low","kind":"lineage","evidence":[{"kind":"text","provenance":"source","relation":"related","quote":"…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.","from":"CVE.org","in":"CVE-2013-0285"}]},{"from":"CVE-2013-0156","to":"CVE-2013-1800","relation":"related","confidence":"low","kind":"lineage","evidence":[{"kind":"text","provenance":"source","relation":"related","quote":"…njection attacks and execute arbitrary code, or cause a denial of service (memory and CPU consumption) by leveraging Action Pack support for (1) YAML type conversion or (2) Symbol type conversion, a similar vulnerability to CVE-2013-0156.","from":"CVE.org","in":"CVE-2013-1800"}]},{"from":"CVE-2013-0156","to":"CVE-2013-1801","relation":"related","confidence":"low","kind":"lineage","evidence":[{"kind":"text","provenance":"source","relation":"related","quote":"…mote attackers to conduct object-injection attacks and execute arbitrary code, or cause a denial of service (memory and CPU consumption) by leveraging Action Pack support for YAML type conversion, a similar vulnerability to CVE-2013-0156.","from":"CVE.org","in":"CVE-2013-1801"}]},{"from":"CVE-2013-0156","to":"CVE-2013-1802","relation":"related","confidence":"low","kind":"lineage","evidence":[{"kind":"text","provenance":"source","relation":"related","quote":"…njection attacks and execute arbitrary code, or cause a denial of service (memory and CPU consumption) by leveraging Action Pack support for (1) YAML type conversion or (2) Symbol type conversion, a similar vulnerability to CVE-2013-0156.","from":"CVE.org","in":"CVE-2013-1802"}]}],"packageHistory":[{"cve":"CVE-2011-2931","published":"2011-08-29","fixed":"3.0.10","kev":false,"link":{"from":"CVE-2011-2931","to":"CVE-2013-0156","relation":"successor","confidence":"low","kind":"sequence","evidence":[{"kind":"version-step","provenance":"source","package":"RubyGems:actionpack","fromFixed":"2.3.13","toFixed":"2.3.15","daysApart":503}]}},{"cve":"CVE-2012-3424","published":"2012-08-08","fixed":"3.2.7","kev":false},{"cve":"CVE-2012-3463","published":"2012-08-10","fixed":"3.2.8","kev":false,"link":{"from":"CVE-2012-3463","to":"CVE-2013-0156","relation":"successor","confidence":"low","kind":"sequence","evidence":[{"kind":"version-step","provenance":"source","package":"RubyGems:actionpack","fromFixed":"3.0.17","toFixed":"3.0.19","daysApart":156}]}},{"cve":"CVE-2012-3465","published":"2012-08-10","fixed":"3.2.8","kev":false},{"cve":"CVE-2013-0156","published":"2013-01-13","fixed":"3.2.11","kev":false},{"cve":"CVE-2013-1855","published":"2013-03-19","fixed":"3.2.13","kev":false,"link":{"from":"CVE-2013-0156","to":"CVE-2013-1855","relation":"successor","confidence":"low","kind":"sequence","evidence":[{"kind":"version-step","provenance":"source","package":"RubyGems:actionpack","fromFixed":"3.1.10","toFixed":"3.1.12","daysApart":65}]}},{"cve":"CVE-2013-1857","published":"2013-03-19","fixed":"3.2.13","kev":false,"link":{"from":"CVE-2013-0156","to":"CVE-2013-1857","relation":"successor","confidence":"low","kind":"sequence","evidence":[{"kind":"version-step","provenance":"source","package":"RubyGems:actionpack","fromFixed":"3.1.10","toFixed":"3.1.12","daysApart":65}]}},{"cve":"CVE-2014-0082","published":"2014-02-20","fixed":"3.2.17","kev":false}],"package":"RubyGems:actionpack"}}