Vulnerability Note VU#628463
Ruby on Rails 3.0 and 2.3 JSON Parser vulnerability
The Ruby on Rails 3.0 and 2.3 JSON parser contain a vulnerability that may result in arbitrary code execution.
The Ruby on Rails advisory states:
There is a vulnerability in the JSON code for Ruby on Rails which allows attackers to bypass authentication systems, inject arbitrary SQL, inject and execute arbitrary code, or perform a DoS attack on a Rails application. This vulnerability has been assigned the CVE identifier CVE-2013-0333.
Additional details may be found in the full Ruby on Rails advisory.
An unauthenticated attacker using a specifically crafted payload may be able to trick the Ruby on Rails backend into executing arbitrary code.
Apply an Update
The Ruby on Rails advisory states the following workarounds as well.
ActiveSupport::JSON.backend = "JSONGem"
If you are running Ruby 1.8 you will need to ensure that the `json` or `json_pure` gems are installed and in your application's Gemfile. Ruby 1.9 includes this code already.
Vendor Information (Learn More)
|Vendor||Status||Date Notified||Date Updated|
|Ruby on Rails||Affected||-||28 Jan 2013|
CVSS Metrics (Learn More)
Thanks to Lawrence Pit of Mirror42 for discovering the vulnerability.
This document was written by Jared Allar.
- CVE IDs: CVE-2013-0333
- Date Public: 28 Jan 2013
- Date First Published: 28 Jan 2013
- Date Last Updated: 11 Mar 2013
- Document Revision: 10
If you have feedback, comments, or additional information about this vulnerability, please send us email.