SQL Injection Affecting activerecord package, versions >=2.0.0, <2.3.13>=3.0.0, <3.0.10>=3.1.0.beta1, <3.1.0.rc6


Severity

Recommended
0.0
high
0
10

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

Threat Intelligence

EPSS
0.36% (72nd 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-536100
  • published26 Nov 2019
  • disclosed29 Aug 2011
  • creditUnknown

Introduced: 29 Aug 2011

CVE-2011-2930  (opens in a new tab)
CWE-89  (opens in a new tab)

How to fix?

Upgrade activerecord to version 2.3.13, 3.0.10, 3.1.0.rc6 or higher.

Overview

activerecord is a library for databases on Rails.

Affected versions of this package are vulnerable to SQL Injection. The quote_table_name method in the ActiveRecord adapters in activerecord/lib/active_record/connection_adapters/ allows remote attackers to execute arbitrary SQL commands via a crafted column name.

CVSS Scores

version 3.1