CVE-2011-2930 json
activerecord vulnerable to SQL Injection
published 2011-08-29 15 y ago modified 2026-06-16 4 mo ago also GHSA-h6w6-xmqv-7q78 , EUVD-2017-0247
- cvss
- 7.5
- version 2.0, NVD
- cisa kev
- Not listed
- not in CISA's catalog
- epss
- 2.3%
- EPSS 2.3% chance of exploitation in 30 days, percentile 83%
- public exploits
- 0
- none known
Summary
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.
Patch / fix
- rubygems activerecord 2.3.13, 3.0.10, 3.1.0.rc5
- rails Debian 14, Debian 13, Debian 12 2.3.14
debian advisories DEBIAN-CVE-2011-2930
- github.com/rails/rails@8a39f41 commit
- openwall.com/lists/oss-security/2011/08/17/1 patch
- openwall.com/lists/oss-security/2011/08/22/13 patch
- openwall.com/lists/oss-security/2011/08/19/11 patch
- openwall.com/lists/oss-security/2011/08/20/1 patch
- groups.google.com/group/rubyonrails-security/msg/b1a85d36b0f9dd30?dmode=sour… patch
- bugzilla.redhat.com/show_bug.cgi?id=731438 patch
- openwall.com/lists/oss-security/2011/08/22/5 patch
- weblog.rubyonrails.org/2011/8/16/ann-rails-3-1-0-rc6 patch
Vendor advisories
What the vendors themselves say about their products: affected, fixed or not affected, and what to do.
red hat product security vex CVE-2011-2930 updated cvss 5.8
rubygem-activerecord: SQL injection vulnerability in quote_table_name (Ruby on Rails)
-
Red Hat All currently supported Red Hat productsnot affected: vulnerable code not present
Red Hat CSAF VEX © Red Hat, Inc., from https://security.access.redhat.com/data/csaf/v2/vex/; changed: reduced to product statuses and remediations. CC BY 4.0 · csaf
Exploit prediction
2.32% chance of exploitation in the next 30 days, higher than 83% of all scored CVEs (FIRST EPSS, 2026-11-09).
CVSS scores
| assigned by | version | score | vector |
|---|---|---|---|
| NVD | 2.0 | 7.5 | AV:N/AC:L/Au:N/C:P/I:P/A:P |
Affected packages
| ecosystem | package | affected | fixed in |
|---|---|---|---|
| rubygems | activerecord | >=2.0.0, <2.3.13 >=3.0.0.beta, <3.0.10 >=3.1.0.beta1, <3.1.0.rc5 |
2.3.13 3.0.10 3.1.0.rc5 |
Classification
- Weakness
-
- CWE-89 Improper Neutralization of Special Elements used in an SQL Command
- Technology feeds
References
-
github.com
/rails/rails/commit/8a39f411dc3c806422785b1f4d5c7c9d58e4bf85
web, patch
-
openwall.com
/lists/oss-security/2011/08/17/1
mailing-list, web, patch
-
openwall.com
/lists/oss-security/2011/08/22/13
mailing-list, web, patch
-
openwall.com
/lists/oss-security/2011/08/19/11
mailing-list, web, patch
-
openwall.com
/lists/oss-security/2011/08/20/1
mailing-list, web, patch
-
groups.google.com
/group/rubyonrails-security/msg/b1a85d36b0f9dd30?dmode=source&output=gplain
mailing-list, web, patch
-
bugzilla.redhat.com
/show_bug.cgi?id=731438
web, patch
-
openwall.com
/lists/oss-security/2011/08/22/5
mailing-list, web, patch
-
weblog.rubyonrails.org
/2011/8/16/ann-rails-3-1-0-rc6
web, patch
-
lists.fedoraproject.org
/pipermail/package-announce/2011-September/065212.html
vendor-advisory, web
-
debian.org
/security/2011/dsa-2301
vendor-advisory, web
-
openwall.com
/lists/oss-security/2011/08/22/14
mailing-list, web
-
nvd.nist.gov
/vuln/detail/CVE-2011-2930
advisory
-
github.com
/rails/rails
package
-
github.com
/rubysec/ruby-advisory-db/blob/master/gems/activerecord/CVE-2011-2930.yml
web
Sources
- CVE List CVE-2011-2930
- GitHub Advisory GHSA-h6w6-xmqv-7q78
- NVD CVE-2011-2930
Fencer Intel keeps one entry per vulnerability: the CVE id wins, then GHSA, and records that alias each other are merged, except that two CVEs always keep separate entries. The same data is available as JSON.