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

CVE-2011-2930: Improper Neutralization of Special Elements used in an SQL Command ('SQL Injection')

October 24, 2017 (updated September 14, 2021)

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

  • groups.google.com/group/rubyonrails-security/msg/b1a85d36b0f9dd30?dmode=source&output=gplain
  • lists.fedoraproject.org/pipermail/package-announce/2011-September/065212.html
  • weblog.rubyonrails.org/2011/8/16/ann-rails-3-1-0-rc6
  • www.debian.org/security/2011/dsa-2301
  • www.openwall.com/lists/oss-security/2011/08/17/1
  • www.openwall.com/lists/oss-security/2011/08/19/11
  • www.openwall.com/lists/oss-security/2011/08/20/1
  • www.openwall.com/lists/oss-security/2011/08/22/13
  • www.openwall.com/lists/oss-security/2011/08/22/14
  • www.openwall.com/lists/oss-security/2011/08/22/5
  • bugzilla.redhat.com/show_bug.cgi?id=731438
  • github.com/advisories/GHSA-h6w6-xmqv-7q78
  • github.com/rails/rails/commit/8a39f411dc3c806422785b1f4d5c7c9d58e4bf85
  • 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. Learn more about Dependency Scanning →

Affected versions

All versions starting from 2.0.0 before 2.3.13, all versions starting from 3.0.0 before 3.0.10

Fixed versions

  • 2.3.13
  • 3.0.10

Solution

Upgrade to versions 2.3.13, 3.0.10 or above.

Impact 7.5 HIGH

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

Learn more about CVSS

Weakness

  • CWE-78: Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection')
  • 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 Wed, 14 May 2025 12:14:41 +0000.