VDB
Sign up
HIGH

GHSA-r8fh-hq2p-7qhq

Active Record contains SQL Injection via improper range quoting

Quick fix

GHSA-r8fh-hq2p-7qhq — activerecord: upgrade to the fixed version with the command below.

bundle update activerecord

Details

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.

Are you affected?

Enter the version of the package you're using.

Affected packages

RubyGems/activerecord
Introduced in: 4.0.0Fixed in: 4.0.7
Fixbundle update activerecord
RubyGems/activerecord
Introduced in: 4.1.0Fixed in: 4.1.3
Fixbundle update activerecord

References