Skip to content
OpenAdvisories
High CVE-2011-2930 EUVD-2017-0247GHSA-h6w6-xmqv-7q78

activerecord vulnerable to SQL Injection

Published Aug 29, 2011 · Updated Aug 6, 2024 · Assigned by redhat

Description

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.

Fixed in Linux distributions

Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.

ReleasePackageFixed inAdvisory
Debian 14 rails 2.3.14 —
Debian 13 rails 2.3.14 —
Debian 12 rails 2.3.14 —
Debian 6.0 rails 2.3.5-1.2+squeeze1 DSA-2301-1
Debian 5.0 rails 2.1.0-7+lenny1 DSA-2301-1

Affected packages

EcosystemPackageAffectedFixedRecord
RubyGems activerecord >= 2.0.0, < 2.3.13 2.3.13 GHSA-h6w6-xmqv-7q78
RubyGems activerecord >= 3.0.0.beta, < 3.0.10 3.0.10 GHSA-h6w6-xmqv-7q78
RubyGems activerecord >= 3.1.0.beta1, < 3.1.0.rc5 3.1.0.rc5 GHSA-h6w6-xmqv-7q78

Advisories 1

References