Bugzilla will be upgraded to version 5.0 on a still to be determined date in the near future. The original upgrade date has been delayed.
Bug 1114427 - (CVE-2014-3483) CVE-2014-3483 rubygem-activerecord: SQL injection vulnerability in 'range' quoting
CVE-2014-3483 rubygem-activerecord: SQL injection vulnerability in 'range' qu...
Status: NEW
Product: Security Response
Classification: Other
Component: vulnerability (Show other bugs)
unspecified
All Linux
medium Severity medium
: ---
: ---
Assigned To: Red Hat Product Security
impact=moderate,public=20140702,repor...
: Security
Depends On: 1115335 1115336 1115777
Blocks: 1114429
  Show dependency treegraph
 
Reported: 2014-06-30 00:57 EDT by Murray McAllister
Modified: 2015-01-05 11:59 EST (History)
5 users (show)

See Also:
Fixed In Version: rubygem-activerecord 4.0.7, rubygem-activerecord 4.1.3.
Doc Type: Bug Fix
Doc Text:
It was discovered that Active Record did not properly quote values of the range type attributes when using the PostgreSQL database adapter. A remote attacker could possibly use this flaw to conduct an SQL injection attack against applications using Active Record.
Story Points: ---
Clone Of:
Environment:
Last Closed:
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---


Attachments (Terms of Use)
4.0 patch from upstream (3.16 KB, patch)
2014-06-30 00:59 EDT, Murray McAllister
no flags Details | Diff
4.1 patch from upstream (3.29 KB, patch)
2014-06-30 01:00 EDT, Murray McAllister
no flags Details | Diff
ammended 4.0 patch from upstream (4.26 KB, patch)
2014-07-03 01:57 EDT, Murray McAllister
no flags Details | Diff
amended 4.1 patch from upstream (4.45 KB, patch)
2014-07-03 01:58 EDT, Murray McAllister
no flags Details | Diff


External Trackers
Tracker ID Priority Status Summary Last Updated
Red Hat Product Errata RHSA-2014:0877 normal SHIPPED_LIVE Moderate: ror40-rubygem-activerecord security update 2014-07-14 16:25:31 EDT

  None (edit)
Description Murray McAllister 2014-06-30 00:57:07 EDT
An SQL injection flaw was found in the PostgreSQL adapter for Active Record. An attacker could possibly perform SQL injection attacks if a Ruby on Rails application performed queries against the range type.

This issue affects versions 4.0.0 to 4.1.2. It is reported that versions earlier than 4.0 are not affected.

Acknowledgements:

Red Hat would like to thank the Ruby on Rails project for reporting this issue. Upstream acknowledges Sean Griffin of thoughtbot as the original reporter.
Comment 2 Murray McAllister 2014-06-30 00:59:38 EDT
Created attachment 913248 [details]
4.0 patch from upstream
Comment 3 Murray McAllister 2014-06-30 01:00:10 EDT
Created attachment 913249 [details]
4.1 patch from upstream
Comment 5 Kurt Seifried 2014-07-02 13:37:19 EDT
This is now public:
https://groups.google.com/forum/#!topic/rubyonrails-security/wDxePLJGZdI
Comment 6 Murray McAllister 2014-07-03 01:54:36 EDT
The original fixes for 4.x introduced a regression:

http://seclists.org/oss-sec/2014/q3/10
Comment 7 Murray McAllister 2014-07-03 01:57:41 EDT
Created attachment 914349 [details]
ammended 4.0 patch from upstream
Comment 8 Murray McAllister 2014-07-03 01:58:27 EDT
Created attachment 914350 [details]
amended 4.1 patch from upstream
Comment 9 Murray McAllister 2014-07-03 02:09:50 EDT
Created rubygem-activerecord tracking bugs for this issue:

Affects: fedora-20 [bug 1115777]
Comment 11 Martin Prpič 2014-07-14 05:26:17 EDT
IssueDescription:

It was discovered that Active Record did not properly quote values of the range type attributes when using the PostgreSQL database adapter. A remote attacker could possibly use this flaw to conduct an SQL injection attack against applications using Active Record.
Comment 12 errata-xmlrpc 2014-07-14 12:26:16 EDT
This issue has been addressed in following products:

  Red Hat Software Collections 1 for Red Hat Enterprise Linux 6
  Red Hat Software Collections 1 for Red Hat Enterprise Linux 6.4 EUS
  Red Hat Software Collections 1 for Red Hat Enterprise Linux 7

Via RHSA-2014:0877 https://rhn.redhat.com/errata/RHSA-2014-0877.html
Comment 13 Kurt Seifried 2014-09-17 23:32:10 EDT
CFME doesn't use any range fields in the database backend. But we should rebase activerecord at some point.

Note You need to log in before you can comment on or make changes to this bug.