Vulnerability Note VU#628463
Ruby on Rails 3.0 and 2.3 JSON Parser vulnerability
Overview
The Ruby on Rails 3.0 and 2.3 JSON parser contain a vulnerability that may result in arbitrary code execution.
Description
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. |
Impact
An unauthenticated attacker using a specifically crafted payload may be able to trick the Ruby on Rails backend into executing arbitrary code. |
Solution
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)
| Group | Score | Vector |
|---|---|---|
| Base | 8.8 | AV:N/AC:M/Au:N/C:C/I:C/A:N |
| Temporal | 7.7 | E:H/RL:OF/RC:C |
| Environmental | 6.1 | CDP:MH/TD:M/CR:H/IR:H/AR:L |
References
- http://weblog.rubyonrails.org/2013/1/28/Rails-3-0-20-and-2-3-16-have-been-released/
- https://groups.google.com/forum/?fromgroups=#!topic/rubyonrails-security/1h2DR63ViGo
Credit
Thanks to Lawrence Pit of Mirror42 for discovering the vulnerability.
This document was written by Jared Allar.
Other Information
- 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
Feedback
If you have feedback, comments, or additional information about this vulnerability, please send us email.