Advisory

GHSA-h6w6-xmqv-7q78

Also known as: CVE-2011-2930

Summary

activerecord vulnerable to SQL Injection

Details

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.

Severity

High Basis: The source's own band: HIGH

Dates

Published
2017-10-24 18:33 UTC
Modified
2025-11-03 14:13 UTC

Affected packages and fixes

activerecord

RubyGems · All systems

Affected

  • introduced 2.0.0, fixed 2.3.13 (ecosystem)

Fixed versions

2.3.13

Fix

The export has no generic command for this ecosystem.

activerecord

RubyGems · All systems

Affected

  • introduced 3.0.0.beta, fixed 3.0.10 (ecosystem)

Fixed versions

3.0.10

Fix

The export has no generic command for this ecosystem.

activerecord

RubyGems · All systems

Affected

  • introduced 3.1.0.beta1, fixed 3.1.0.rc5 (ecosystem)

Fixed versions

3.1.0.rc5

Fix

The export has no generic command for this ecosystem.

Fix commands are the export's own generic commands. Ojuju never runs them. Check them against your setup first.

Check your own computer: guard packages check

View this record on OSV.dev

Source

Source: GitHub Advisory Database (reviewed advisories) · CC BY 4.0

Sources & licences