Advisory Database
  • Advisories
  • Dependency Scanning
  1. gem
  2. ›
  3. activerecord
  4. ›
  5. CVE-2011-2930

CVE-2011-2930: activerecord vulnerable to SQL Injection

October 24, 2017 (updated November 3, 2025)

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.

References

  • bugzilla.redhat.com/show_bug.cgi?id=731438
  • github.com/advisories/GHSA-h6w6-xmqv-7q78
  • github.com/rails/rails
  • github.com/rails/rails/commit/8a39f411dc3c806422785b1f4d5c7c9d58e4bf85
  • github.com/rubysec/ruby-advisory-db/blob/master/gems/activerecord/CVE-2011-2930.yml
  • nvd.nist.gov/vuln/detail/CVE-2011-2930

Code Behaviors & Features

Detect and mitigate CVE-2011-2930 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Dependency Scanning using SBOM also detects vulnerabilities from proprietary advisories that this site does not include. Learn more about Dependency Scanning using SBOM →

Affected versions

All versions starting from 3.0.0.beta before 3.0.10, all versions starting from 3.1.0.beta1 before 3.1.0.rc5, all versions starting from 2.0.0 before 2.3.13

Fixed versions

  • 2.3.13
  • 3.0.10
  • 3.1.0.rc5

Solution

Upgrade to versions 2.3.13, 3.0.10, 3.1.0.rc5 or above.

Impact 7.5 HIGH

AV:N/AC:L/Au:N/C:P/I:P/A:P

Learn more about CVSS

Weakness

  • CWE-89: Improper Neutralization of Special Elements used in an SQL Command ('SQL Injection')

Source file

gem/activerecord/CVE-2011-2930.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Sun, 08 Nov 2026 00:15:41 +0000.