GitHub Advisoryadvisory · RubyGems

GHSA-gh2w-j7cx-2664 Active Record contains SQL Injection

HIGH Published 2017-10-24 Modified 2025-01-21 Official page ↗
Aliases
CVE-2012-6496
Ecosystem
RubyGems
Packages
activerecord
Severity
High
Weaknesses
CWE-89
Reviewed
2020-06-16

Affected packages

• RubyGems activerecord: >= 3.0.0.beta, < 3.0.18 → fixed in 3.0.18 • RubyGems activerecord: >= 3.1.0, < 3.1.9 → fixed in 3.1.9 • RubyGems activerecord: >= 3.2.0, < 3.2.10 → fixed in 3.2.10 • RubyGems activerecord: < 2.3.15 → fixed in 2.3.15

Description

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.

Related

Alias · CVE (1)

  • CVE-2012-6496 SQL injection vulnerability in the Active Record component in Ruby on Rails before 3.0.18, 3.1.x before 3.1.9, and 3.2.x before 3.2.10… vulnerability

Weakness · CWE (1)

  • CWE-89 Improper Neutralization of Special Elements used in an SQL Command weakness

References