CVE-2013-0333
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…
- 7.5HighCVSS base score
- 95.6%Exploitation in 30 daysEPSS · top 0.1% of all CVEs
- NoKnown exploitednot in CISA's KEV catalog
- 3Public exploitsMetasploit, Nuclei and Exploit-DB
Description
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.
Public exploit
An exploit or proof of concept is public: anyone can try it against an unpatched system. The public collections list 2 Metasploit modules and an Exploit-DB entry for it.
Show the exploits3
Metasploit modules2 modules
- Ruby on Rails JSON Processor YAML Deserialization Code Execution (Metasploit module) (opens in a new tab)
exploit/multi/http/rails_json_yaml_code_execRank excellentdisclosed 28 Jan 2013
- Ruby on Rails JSON Processor YAML Deserialization Scanner (Metasploit module) (opens in a new tab)
auxiliary/scanner/http/rails_json_yaml_scannerRank normal
Exploit-DB1 entry
- Ruby on Rails - JSON Processor YAML Deserialization Code Execution (Metasploit) (Exploit-DB entry) (opens in a new tab)
EDB-ID 24434remote, multiplepublished 29 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
- 55 days later
· 55 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)
- 95.6% · 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.
- RubyGemsactivesupportGHSA-xgr2-v94m-rc9g (opens in a new tab)
References
11
- VU#628463 (opens in a new tab)third-party-advisoryx_refsource_CERT-VNx_transferred
- DSA-2613 (opens in a new tab)vendor-advisoryx_refsource_DEBIANx_transferred
- http://support.apple.com/kb/HT5784 (opens in a new tab)x_refsource_CONFIRMx_transferred
- APPLE-SA-2013-06-04-1 (opens in a new tab)vendor-advisoryx_refsource_APPLEx_transferred
- APPLE-SA-2013-03-14-1 (opens in a new tab)vendor-advisoryx_refsource_APPLEx_transferred
- [rubyonrails-security] 20130129 Vulnerability in JSON Parser in Ruby on Rails 3.0 and 2.3 (opens in a new tab)mailing-listx_refsource_MLISTx_transferred
- RHSA-2013:0201 (opens in a new tab)vendor-advisoryx_refsource_REDHATx_transferred
- RHSA-2013:0202 (opens in a new tab)vendor-advisoryx_refsource_REDHATx_transferred
- https://puppet.com/security/cve/cve-2013-0333 (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:0203 (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-0331 (opens in a new tab)
- OSV.dev (opens in a new tab)
- GitHub Advisory GHSA-xgr2-v94m-rc9g (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-0333)Record last updated .