Bug 1065517 (CVE-2014-0080) - CVE-2014-0080 rubygem-activerecord: PostgreSQL array data injection vulnerability
Summary: CVE-2014-0080 rubygem-activerecord: PostgreSQL array data injection vulnerabi...
Alias: CVE-2014-0080
Product: Security Response
Classification: Other
Component: vulnerability
Version: unspecified
Hardware: All
OS: Linux
Target Milestone: ---
Assignee: Red Hat Product Security
QA Contact:
Depends On: 1065585 1066671
Blocks: 1065543
TreeView+ depends on / blocked
Reported: 2014-02-14 20:36 UTC by Kurt Seifried
Modified: 2023-05-12 19:25 UTC (History)
8 users (show)

Fixed In Version: rubygem-activerecord 4.0.3, rubygem-activerecord 4.1.0.beta2
Doc Type: Bug Fix
Doc Text:
Clone Of:
Last Closed: 2014-02-18 20:56:55 UTC

Attachments (Terms of Use)
4-0-array_injection.patch (2.15 KB, patch)
2014-02-14 21:39 UTC, Kurt Seifried
no flags Details | Diff
4-1-beta-array_injection.patch (2.19 KB, patch)
2014-02-14 21:40 UTC, Kurt Seifried
no flags Details | Diff

Description Kurt Seifried 2014-02-14 20:36:27 UTC
Aaron Patterson of the Ruby on Rails project reports:

Data Injection Vulnerability in Active Record

There is a data injection vulnerability in Active Record. Specially
crafted strings can be used to save data in PostgreSQL array columns that may
not be intended. 

Versions Affected:  4.0.x, 4.1.0.beta1
Not affected:       3.2.x and older
Fixed Versions:     4.0.3, 4.1.0.beta2

Specially crafted strings may be used to save data to array columns in
PostgreSQL databases. This vulnerability cannot be used to delete data or
execute arbitrary SQL statements, but *can* be used to add data that could
have an impact on the application (such as setting an admin flag). Only array
type columns in PostgreSQL are impacted.

All users running an affected release should either upgrade or use one of the
work arounds immediately.

Comment 1 Kurt Seifried 2014-02-14 21:39:57 UTC
Created attachment 863434 [details]

Comment 2 Kurt Seifried 2014-02-14 21:40:21 UTC
Created attachment 863435 [details]

Comment 4 Kurt Seifried 2014-02-15 04:41:14 UTC

Red Hat would like to thank the Ruby on Rails Project for reporting this issue. Upstream acknowledges Godfrey Chan as the original reporter.

Comment 5 Kurt Seifried 2014-02-15 04:46:15 UTC

Not vulnerable. This issue did not affect the versions of rubygem-activerecord as shipped with CloudForms, OpenShift Enterprise 1 and 2, Red Hat Enterprise Linux OpenStack Platform 3 and 4, Red Hat Software Collections 1 and Subscription Asset Manager as they did not include the vulnerable code.

Comment 6 Vincent Danen 2014-02-18 20:56:29 UTC
Created rubygem-activerecord tracking bugs for this issue:

Affects: fedora-20 [bug 1066671]

Comment 8 Fedora Update System 2014-03-11 04:00:02 UTC
rubygem-activerecord-4.0.0-2.fc20, rubygem-actionpack-4.0.0-3.fc20 has been pushed to the Fedora 20 stable repository.  If problems still persist, please make note of it in this bug report.

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