ADVISORIES

GitHub Advisory Database

GHSA-gh2w-j7cx-2664

Active Record contains SQL Injection

Details

SQL injection vulnerability in the Active Record component in Ruby on Rails before 2.3.15, 3.0.x before 3.0.18, 3.1.x before 3.1.9, and 3.2.x before 3.2.10 allows remote attackers to execute arbitrary SQL commands via a crafted request that leverages incorrect behavior of dynamic finders in applications that can use unexpected data types in certain find_by_ method calls.

Affected packages

EcosystemPackageAffected versions
RubyGemsactiverecord
From 3.0.0.beta before 3.0.18 (fixed in 3.0.18)
RubyGemsactiverecord
From 3.1.0 before 3.1.9 (fixed in 3.1.9)
RubyGemsactiverecord
From 3.2.0 before 3.2.10 (fixed in 3.2.10)
RubyGemsactiverecord
All versions before 2.3.15 (fixed in 2.3.15)

References