CVE-2013-0333 in Rubyonrails Rails and 1 more product
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 tha...
Affects 2 products from 1 vendor. Facts below cite their sources.
Remotely exploitable over the network, low complexity.
Affected products and versions
| Vendor | Product | Affected versions |
|---|---|---|
| Rubyonrails | Rails | 2.3.0 2.3.1 2.3.2 2.3.3 2.3.4 2.3.9+25 more2.3.10 2.3.11 2.3.12 2.3.13 2.3.14 2.3.15 3.0.0 3.0.1 3.0.2 3.0.3 3.0.4 3.0.5 3.0.6 3.0.7 3.0.8 3.0.9 3.0.10 3.0.11 3.0.12 3.0.13 3.0.14 3.0.16 3.0.17 3.0.18 3.0.19 |
| Rubyonrails | Ruby On Rails | 3.0.4 |
A product listed here is affected only at the versions shown. Use the free check to test the exact version you run.
Fix and vendor advisory
No official vendor advisory link on record. See the CVE record.
Vendor PSIRT: [email protected]
Exploitation
| CISA known-exploited | Not in the CISA KEV catalog |
|---|---|
| Public exploit | Reported · reference |
Official 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.
Source: NIST NVD / MITRE CVE.
Record details
| CVE ID | CVE-2013-0333 |
|---|---|
| BreachSpider ID | BS-2013-GLOBAL-183000-H |
| CVSS vector | AV:N/AC:L/Au:N/C:P/I:P/A:P |
| Published | 2013-01-30 |
| Last modified | 2026-06-16 |
| Source | NVD |
Analysis AI-written, not human-reviewed
A vulnerability in the lib/active_support/json/backends/yaml.rb file of Ruby on Rails versions 2.3.x before 2.3.16 and 3.0.x before 3.0.20 allows remote attackers to execute arbitrary code, conduct SQL injection attacks, or bypass authentication due to improper conversion of JSON data to YAML data.
The vulnerability arises from the improper conversion of JSON data to YAML data, which can be exploited by sending crafted data to the application. This data can trigger unsafe decoding, leading to arbitrary code execution, SQL injection, or authentication bypass.
Questions
What is CVE-2013-0333?
A vulnerability in the lib/active_support/json/backends/yaml.rb file of Ruby on Rails versions 2.3.x before 2.3.16 and 3.0.x before 3.0.20 allows remote attackers to execute arbitrary code, conduct SQL injection attacks, or bypass authentication due to improper conversion of JSON data to YAML data.
What is the CVSS score for CVE-2013-0333?
CVE-2013-0333 has CVSS 7.5 (High). Vector: AV:N/AC:L/Au:N/C:P/I:P/A:P. EPSS: 95.6%.
Is CVE-2013-0333 actively exploited?
Public exploit available for CVE-2013-0333. Exploitation risk elevated.
How do I remediate CVE-2013-0333?
Priority: IMMEDIATE. PSIRT: [email protected]
What systems are affected by CVE-2013-0333?
CVE-2013-0333 affects Rubyonrails Rails, Ruby On Rails.
For developers and AI agents
Run this check from your own code or agent
REST API
curl -s https://breachspider.com/api/v1/assets/correlate-cves \
-H "Authorization: Bearer $BREACHSPIDER_API_KEY" \
-H "Content-Type: application/json" \
-d '{"assets":[{"asset_id":"dev-1","vendor":"Rubyonrails","product":"Rails","version":"1.0"}]}'
MCP for AI agents
# hosted: add as a connector
https://mcp.breachspider.com/mcp
# local
pipx install breachspider-mcp
Free trial: 14 days, 750 device checks, no card.
Page facts from NVD, MITRE, CISA and vendor advisories, record last modified 2026-06-16.