Bugzilla will be upgraded to version 5.0. The upgrade date is tentatively scheduled for 2 December 2018, pending final testing and feedback.
Bug 1114425 - (CVE-2014-3482) CVE-2014-3482 rubygem-activerecord: SQL injection vulnerability in 'bitstring' quoting
CVE-2014-3482 rubygem-activerecord: SQL injection vulnerability in 'bitstring...
Status: CLOSED ERRATA
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: 1115332 1115334 1115628 1115629 1115775 1115776 1143801
Blocks: 1114429
  Show dependency treegraph
 
Reported: 2014-06-30 00:44 EDT by Murray McAllister
Modified: 2016-04-26 10:09 EDT (History)
54 users (show)

See Also:
Fixed In Version: rubygem-activerecord 3.2.19, rubygem-activerecord 4.0.0
Doc Type: Bug Fix
Doc Text:
It was discovered that Active Record did not properly quote values of the bitstring 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: 2014-11-06 04:45:46 EST
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---


Attachments (Terms of Use)
patch from upstream (2.24 KB, patch)
2014-06-30 00:49 EDT, Murray McAllister
no flags Details | Diff


External Trackers
Tracker ID Priority Status Summary Last Updated
Red Hat Product Errata RHSA-2014:0876 normal SHIPPED_LIVE Moderate: ruby193-rubygem-activerecord security update 2014-07-14 16:15:08 EDT

  None (edit)
Description Murray McAllister 2014-06-30 00:44:27 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 bitstring type.

This issue affects versions 2.0.0-3.2.18 and newer. It is reported that versions 4.0 and newer 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:49:24 EDT
Created attachment 913247 [details]
patch from upstream
Comment 4 Kurt Seifried 2014-07-02 13:37:07 EDT
This is now public:
https://groups.google.com/forum/#!topic/rubyonrails-security/wDxePLJGZdI
Comment 6 Kurt Seifried 2014-07-02 15:49:27 EDT
Statement:

This issue does not affect CloudForms 5 as it does not use the "bitstring" data type anywhere in the product.
Comment 7 Murray McAllister 2014-07-03 02:08:36 EDT
Created rubygem-activerecord tracking bugs for this issue:

Affects: fedora-19 [bug 1115775]
Affects: epel-5 [bug 1115776]
Comment 8 Tomas Hoger 2014-07-03 02:52:18 EDT
Upstream release announcement:
http://weblog.rubyonrails.org/2014/7/2/Rails_3_2_19_4_0_7_and_4_1_3_have_been_released/

Upstream 3.2.x commit:
https://github.com/rails/rails/commit/1f2192e46d78ee0ba2b06373f2c24caf8440ff5b

Fixed in ActiveRecord 3.2.19.  4.x versions were not affected according to upstream.
Comment 10 Martin Prpič 2014-07-14 05:26:39 EDT
IssueDescription:

It was discovered that Active Record did not properly quote values of the bitstring 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 11 errata-xmlrpc 2014-07-14 12:16:19 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:0876 https://rhn.redhat.com/errata/RHSA-2014-0876.html
Comment 12 Kurt Seifried 2014-09-17 23:31:53 EDT
CFME doesn't use any bitstring fields in the database backend. But we should rebase activerecord at some point.
Comment 13 Kurt Seifried 2014-09-17 23:46:08 EDT
SAM-1 doesn't use any bitstring 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.