Skip to content
OpenAdvisories
High CVE-2014-3483 EUVD-2017-0298GHSA-r8fh-hq2p-7qhq

Active Record contains SQL Injection via improper range quoting

Published Jul 7, 2014 · Updated Aug 6, 2024 · Assigned by redhat

Description

SQL injection vulnerability in activerecord/lib/active_record/connection_adapters/postgresql/quoting.rb in the PostgreSQL adapter for Active Record in Ruby on Rails 4.x before 4.0.7 and 4.1.x before 4.1.3 allows remote attackers to execute arbitrary SQL commands by leveraging improper range quoting.

Fixed in Linux distributions

Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.

ReleasePackageFixed inAdvisory
Debian 14 rails 2:4.1.4-1 —
Debian 13 rails 2:4.1.4-1 —
Debian 12 rails 2:4.1.4-1 —
Debian 7 ruby-activerecord-3.2 3.2.6-5+deb7u1 DSA-2982-1
ReleasePackageFixed inAdvisory
RHEL 1 ror40-rubygem-activerecord +1 1:4.0.2-2.2.el6 RHSA-2014:0877

Affected packages

EcosystemPackageAffectedFixedRecord
RubyGems activerecord >= 4.0.0, < 4.0.7 4.0.7 GHSA-r8fh-hq2p-7qhq
RubyGems activerecord >= 4.1.0, < 4.1.3 4.1.3 GHSA-r8fh-hq2p-7qhq

Advisories 2

References