CVE-2013-0333 in the critical feed json
activesupport in Rails vulnerable to incorrect data conversion
published 13y ago modified 4mo ago also GHSA-xgr2-v94m-rc9g , EUVD-2017-0331
- cvss
- 7.5
- version 2.0, NVD
- cisa kev
- Not listed
- not in CISA's catalog
- epss
- 95.6%
- EPSS 95.6% chance of exploitation in 30 days, percentile 99.8%
- public exploits
- 3
- Metasploit and Exploit-DB
Summary
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.
Patch / fix
- rubygems activesupport 2.3.16, 3.0.20
- rails Debian 14, Debian 13, Debian 12 2.3.14.1
debian advisories DEBIAN-CVE-2013-0333
- rubygem-activesupport openshift 1 1:3.0.13-4.el6op
red hat advisories RHSA-2013:0202
Is CVE-2013-0333 in your dependencies? Fencer shows which of your repositories are affected as soon as an advisory lands, and opens the fix as a pull request.
Check with FencerVendor advisories
What the vendors themselves say about their products: affected, fixed or not affected, and what to do.
red hat product security vex CVE-2013-0333 updated cvss 7.5
rubygem-activesupport: json to yaml parsing
-
Red Hat CloudForms Cloud Engine for RHEL 6 Server rubygem-activesupport 3.0.10-9.el6cf Red Hat CloudForms System Engine for RHEL 6 Server katello 1.1.12.1-1.el6cf, katello-all 1.1.12.1-1.el6cf, katello-common 1.1.12.1-1.el6cf, katello-glue-pulp 1.1.12.1-1.el6cf, rubygem-activesupport 3.0.10-9.el6cf, katello-glue-candlepin 1.1.12.1-1.el6cffixed: vendor fix RHSA-2013:0203
-
Red Hat OpenShift Enterprise Infrastructure rubygem-activesupport 3.0.13-4.el6op Red Hat OpenShift Enterprise Node rubygem-activesupport 3.0.13-4.el6opfixed: vendor fix RHSA-2013:0202
-
Red Hat Subscription Asset Manager for RHEL 6 Server rubygem-activesupport 3.0.10-7.el6cffixed: vendor fix RHSA-2013:0201
-
Red Hat OpenShift Enterprise 1 ruby193-rubygem-activesupportnot affected: vulnerable code not present
Red Hat CSAF VEX © Red Hat, Inc., from https://security.access.redhat.com/data/csaf/v2/vex/; changed: reduced to product statuses and remediations. CC BY 4.0 · csaf
Timeline
- First public exploit (Metasploit exploit/multi/http/rails_json_yaml_code_exec)
- Published
Exploit prediction
95.57% chance of exploitation in the next 30 days, higher than 99.8% of all scored CVEs (FIRST EPSS, 2026-11-09).
Exploits and checks
- Metasploit exploit/multi/http/rails_json_yaml_code_exec Ruby on Rails JSON Processor YAML Deserialization Code Execution metasploit exploit, excellent rank, 2013-01-28
- Metasploit auxiliary/scanner/http/rails_json_yaml_scanner Ruby on Rails JSON Processor YAML Deserialization Scanner metasploit auxiliary, normal rank
- EDB-24434 Ruby on Rails - JSON Processor YAML Deserialization Code Execution (Metasploit) remote, 2013-01-29
CVSS scores
| assigned by | version | score | vector |
|---|---|---|---|
| NVD | 2.0 | 7.5 | AV:N/AC:L/Au:N/C:P/I:P/A:P |
Affected packages
| ecosystem | package | affected | fixed in |
|---|---|---|---|
| rubygems | activesupport | >=2.3.2, <2.3.16 >=3.0.0, <3.0.20 |
2.3.16 3.0.20 |
Classification
- Weakness
-
- CWE-74 Improper Neutralization of Special Elements in Output Used by a Downstream Component
- Technology feeds
References
-
debian.org
/security/2013/dsa-2613
vendor-advisory, web
-
lists.apple.com
/archives/security-announce/2013/Jun/msg00000.html
vendor-advisory, web
-
lists.apple.com
/archives/security-announce/2013/Mar/msg00002.html
vendor-advisory, web
-
rhn.redhat.com
/errata/RHSA-2013-0201.html
vendor-advisory, web
-
rhn.redhat.com
/errata/RHSA-2013-0202.html
vendor-advisory, web
-
rhn.redhat.com
/errata/RHSA-2013-0203.html
vendor-advisory, web
-
groups.google.com
/group/rubyonrails-security/msg/52179af76915e518?dmode=source&output=gplain
mailing-list, web, vendor-advisory
-
kb.cert.org
/vuls/id/628463
third-party-advisory, web, us-government-resource
-
support.apple.com
/kb/HT5784
web
-
puppet.com
/security/cve/cve-2013-0333
web
- weblog.rubyonrails.org /2013/1/28/Rails-3-0-20-and-2-3-16-have-been-released/
-
nvd.nist.gov
/vuln/detail/CVE-2013-0333
advisory
-
access.redhat.com
/errata/RHSA-2013:0201
web
-
access.redhat.com
/errata/RHSA-2013:0202
web
-
access.redhat.com
/errata/RHSA-2013:0203
web
-
access.redhat.com
/security/cve/CVE-2013-0333
web
-
bugzilla.redhat.com
/show_bug.cgi?id=903440
web
-
github.com
/advisories/GHSA-xgr2-v94m-rc9g
advisory
-
github.com
/rubysec/ruby-advisory-db/blob/master/gems/activesupport/CVE-2013-0333.yml
web
-
groups.google.com
/forum/?fromgroups=#!topic/rubyonrails-security/1h2DR63ViGo
web
-
weblog.rubyonrails.org
/2013/1/28/Rails-3-0-20-and-2-3-16-have-been-released
web
Sources
- CVE List CVE-2013-0333
- GitHub Advisory GHSA-xgr2-v94m-rc9g
- NVD CVE-2013-0333
Fencer Intel keeps one entry per vulnerability: the CVE id wins, then GHSA, and records that alias each other are merged, except that two CVEs always keep separate entries. The same data is available as JSON.