SQL Injection Affecting activerecord package, versions < 3.2.10, >= 3.2< 3.1.9, >= 3.1< 3.0.18


Severity

Recommended
0.0
high
0
10

CVSS assessment made by Snyk's Security Team. Learn more

Threat Intelligence

EPSS
0.42% (74th percentile)

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications

Snyk Learn

Learn about SQL Injection vulnerabilities in an interactive lesson.

Start learning
  • Snyk IDSNYK-RUBY-ACTIVERECORD-20044
  • published21 Dec 2012
  • disclosed21 Dec 2012
  • creditUnknown

Introduced: 21 Dec 2012

CVE-2012-6496  (opens in a new tab)
CWE-89  (opens in a new tab)

How to fix?

Upgrade activerecord to versions 3.2.10, 3.1.9, 3.0.18 or higher.

Overview

ActiveRecord is the Object-Relational Mapping (ORM) that comes out-of-the-box with Rails. It plays the role of Model in the MVC architecture employed by Rails.

Affected versions of this package are vulnerable to SQL Injection. Due to the way dynamic finders in ActiveRecord extract options from method parameters, a method parameter can mistakenly be used as a scope. Carefully crafted requests can use the scope to inject arbitrary SQL.

CVSS Scores

version 3.1