{"id":"CVE-2013-0333","published":"2013-01-30T11:00:00Z","modified":"2024-08-06T14:25:09Z","title":"lib/active_support/json/backends/yaml.rb in Ruby on Rails 2.3.x before 2.3.16 and 3.0.x before 3.0.20 does not…","vendor":null,"product":null,"tier":"core","eol":null,"description":{"text":"lib/active_support/json/backends/yaml.rb in Ruby on Rails 2.3.x before 2.3.16 and 3.0.x before 3.0.20 does not properly convert JSON data to YAML data for processing by a YAML parser, which allows remote attackers to execute arbitrary code, conduct SQL injection attacks, or bypass authentication via crafted data that triggers unsafe decoding, a different vulnerability than CVE-2013-0156.","provenance":"source","from":"CVE.org"},"summary":{"text":"The flaw lies in the YAML JSON-handling backend (lib/active_support/json/backends/yaml.rb) of Ruby on Rails 2.3.x before 2.3.16 and 3.0.x before 3.0.20, where JSON data is not properly converted to YAML before being passed to a YAML parser.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-10-29T07:15:22Z"},"cvss":null,"epss":{"score":0.95573,"percentile":0.9987,"date":"2026-10-28","provenance":"source"},"kev":null,"vulncheckKev":null,"exploited":false,"otx":{"pulseCount":2,"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":"Thor Lite Scan - 10.7.15 - Ubuntu Scan on Archived Files","url":"https://otx.alienvault.com/pulse/664cc3c1938ed0b9abf026a2","created":"2024-05-21"}],"provenance":"machine"},"cwes":[],"references":[{"url":"http://www.kb.cert.org/vuls/id/628463","tags":["third-party-advisory","x_refsource_CERT-VN"]},{"url":"http://www.debian.org/security/2013/dsa-2613","tags":["vendor-advisory","x_refsource_DEBIAN"]},{"url":"http://support.apple.com/kb/HT5784","tags":["x_refsource_CONFIRM"]},{"url":"http://lists.apple.com/archives/security-announce/2013/Jun/msg00000.html","tags":["vendor-advisory","x_refsource_APPLE"]},{"url":"http://lists.apple.com/archives/security-announce/2013/Mar/msg00002.html","tags":["vendor-advisory","x_refsource_APPLE"]},{"url":"https://groups.google.com/group/rubyonrails-security/msg/52179af76915e518?dmode=source&output=gplain","tags":["mailing-list","x_refsource_MLIST"]},{"url":"http://rhn.redhat.com/errata/RHSA-2013-0201.html","tags":["vendor-advisory","x_refsource_REDHAT"]},{"url":"http://rhn.redhat.com/errata/RHSA-2013-0202.html","tags":["vendor-advisory","x_refsource_REDHAT"]},{"url":"https://puppet.com/security/cve/cve-2013-0333","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-0203.html","tags":["vendor-advisory","x_refsource_REDHAT"]}],"techniques":[],"reports":[],"affected":[{"ecosystem":"RubyGems","package":"activesupport","vulnerableRanges":[">=2.3.2, <2.3.16",">=3.0.0, <3.0.20"],"patched":["2.3.16","3.0.20"],"from":["GHSA-xgr2-v94m-rc9g"],"provenance":"source"}],"advisories":[{"id":"GHSA-xgr2-v94m-rc9g","url":"https://github.com/advisories/GHSA-xgr2-v94m-rc9g","severity":"HIGH","ecosystem":"RubyGems","package":"activesupport","vulnerableRanges":[">=2.3.2, <2.3.16"],"patched":["2.3.16"],"provenance":"source","from":"GHSA"},{"id":"GHSA-xgr2-v94m-rc9g","url":"https://github.com/advisories/GHSA-xgr2-v94m-rc9g","severity":"HIGH","ecosystem":"RubyGems","package":"activesupport","vulnerableRanges":[">=3.0.0, <3.0.20"],"patched":["3.0.20"],"provenance":"source","from":"GHSA"}],"euvd":{"id":"EUVD-2017-0331","url":"https://euvd.enisa.europa.eu/vulnerability/EUVD-2017-0331","exploited":false,"exploitedSince":null,"provenance":"source"},"exploits":[{"id":24434,"url":"https://www.exploit-db.com/exploits/24434","title":"Ruby on Rails - JSON Processor YAML Deserialization Code Execution (Metasploit)","type":"remote","platform":"multiple","date":"2013-01-29","verified":true,"provenance":"source"}],"exploitSources":{"exploitdb":{"count":1,"earliest":"2013-01-29"},"pocGithub":{"count":1,"skipped":0,"earliest":"2013-01-29","earliestUrl":"https://github.com/heroku/heroku-CVE-2013-0333","repos":[{"name":"heroku/heroku-CVE-2013-0333","url":"https://github.com/heroku/heroku-CVE-2013-0333","stars":2,"created":"2013-01-29"}]},"metasploit":[{"name":"Ruby on Rails JSON Processor YAML Deserialization Code Execution","module":"exploit/multi/http/rails_json_yaml_code_exec","type":"exploit","disclosureDate":"2013-01-28","url":"https://github.com/rapid7/metasploit-framework/blob/master/modules/exploits/multi/http/rails_json_yaml_code_exec.rb"},{"name":"Ruby on Rails JSON Processor YAML Deserialization Scanner","module":"auxiliary/scanner/http/rails_json_yaml_scanner","type":"auxiliary","disclosureDate":null,"url":"https://github.com/rapid7/metasploit-framework/blob/master/modules/auxiliary/scanner/http/rails_json_yaml_scanner.rb"}],"first":{"date":"2013-01-28","source":"Metasploit","url":"https://github.com/rapid7/metasploit-framework/blob/master/modules/exploits/multi/http/rails_json_yaml_code_exec.rb"},"provenance":"source"},"exploitRefs":[],"flow":[],"timeline":[{"date":"2013-01-28","kind":"exploit-public","label":"First public exploit: Metasploit; later: Exploit-DB 2013-01-29, PoC-in-GitHub 2013-01-29","url":"https://github.com/rapid7/metasploit-framework/blob/master/modules/exploits/multi/http/rails_json_yaml_code_exec.rb","provenance":"source"},{"date":"2013-01-30","kind":"published","label":"Published (CVE.org)","url":"https://www.cve.org/CVERecord?id=CVE-2013-0333","provenance":"source"}],"speed":{"daysToPublicExploit":null,"firstExploitFrom":"Metasploit","daysToKev":null},"priority":{"score":26.1,"factors":[{"name":"In a KEV catalog","points":0.0,"detail":"not listed"},{"name":"Recent KEV listing","points":0.0,"detail":"not listed"},{"name":"Known ransomware use","points":0.0,"detail":"not known"},{"name":"EPSS percentile","points":19.97,"detail":"percentile 0.9987"},{"name":"Named in threat reports","points":0.0,"detail":"0 reports"},{"name":"Public exploit code","points":5.0,"detail":"1 Exploit-DB entry; 1 PoC-in-GitHub repo; 2 Metasploit modules"},{"name":"Mentioned in OTX pulses","points":1.08,"detail":"2 pulses"},{"name":"CVSS severity","points":0.0,"detail":"no CVSS"},{"name":"End-of-life product","points":0.0,"detail":"supported or unknown"}]},"lineage":{"packageHistory":[{"cve":"CVE-2009-3086","published":"2009-09-08","fixed":"2.3.4","kev":false},{"cve":"CVE-2011-2197","published":"2011-06-30","fixed":"3.0.8","kev":false},{"cve":"CVE-2011-2932","published":"2011-08-29","fixed":"3.0.10","kev":false,"link":{"from":"CVE-2011-2932","to":"CVE-2013-0333","relation":"successor","confidence":"low","kind":"sequence","evidence":[{"kind":"version-step","provenance":"source","package":"RubyGems:activesupport","fromFixed":"2.3.13","toFixed":"2.3.16","daysApart":520}]}},{"cve":"CVE-2013-0333","published":"2013-01-30","fixed":"3.0.20","kev":false},{"cve":"CVE-2012-1098","published":"2012-03-13","fixed":"3.2.2","kev":false},{"cve":"CVE-2012-3464","published":"2012-08-10","fixed":"3.2.8","kev":false,"link":{"from":"CVE-2012-3464","to":"CVE-2013-0333","relation":"successor","confidence":"low","kind":"sequence","evidence":[{"kind":"version-step","provenance":"source","package":"RubyGems:activesupport","fromFixed":"3.0.17","toFixed":"3.0.20","daysApart":173}]}},{"cve":"CVE-2013-1856","published":"2013-03-19","fixed":"3.2.13","kev":false}],"package":"RubyGems:activesupport"}}