ADVISORIES

GitHub Advisory Database

GHSA-h6w6-xmqv-7q78

activerecord vulnerable to SQL Injection

Details

Multiple SQL injection vulnerabilities in the quote_table_name method in the ActiveRecord adapters in activerecord/lib/active_record/connection_adapters/ in Ruby on Rails before 2.3.13, 3.0.x before 3.0.10, and 3.1.x before 3.1.0.rc5 allow remote attackers to execute arbitrary SQL commands via a crafted column name.

Affected packages

EcosystemPackageAffected versions
RubyGemsactiverecord
From 2.0.0 before 2.3.13 (fixed in 2.3.13)
RubyGemsactiverecord
From 3.0.0.beta before 3.0.10 (fixed in 3.0.10)
RubyGemsactiverecord
From 3.1.0.beta1 before 3.1.0.rc5 (fixed in 3.1.0.rc5)

References