{"id":"CVE-2011-2930","aliases":["DEBIAN-CVE-2011-2930","DSA-2301-1","EUVD-2017-0247","GHSA-h6w6-xmqv-7q78"],"status":"published","title":"activerecord vulnerable to SQL Injection","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.","severity":{"version":"2.0","score":7.5,"vector":"AV:N/AC:L/Au:N/C:P/I:P/A:P","level":"high","assessor":"primary","from":"nvd"},"epss":{"day":"2026-11-08","score":0.02319,"percentile":0.83561,"model":"v2026.06.15"},"facts":{"in_kev":false,"known_exploited":false,"public_exploit":false,"fix_available":true},"cwes":["CWE-89"],"published":"2011-08-29T18:00:00Z","modified":"2026-10-23T17:47:44Z","fixes":[{"ecosystem":"RubyGems","package":"activerecord","fixed_in":["2.3.13","3.0.10","3.1.0.rc5"],"sources":["ghsa","osv"]},{"ecosystem":"Debian:12","package":"rails","fixed_in":["2.3.14"],"sources":["osv"]},{"ecosystem":"Debian:13","package":"rails","fixed_in":["2.3.14"],"sources":["osv"]},{"ecosystem":"Debian:14","package":"rails","fixed_in":["2.3.14"],"sources":["osv"]}],"affected":[{"source":"ghsa","ecosystem":"RubyGems","package":"activerecord","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"2.0.0"},{"fixed":"2.3.13"}]}]},{"source":"ghsa","ecosystem":"RubyGems","package":"activerecord","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"3.0.0.beta"},{"fixed":"3.0.10"}]}]},{"source":"ghsa","ecosystem":"RubyGems","package":"activerecord","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"3.1.0.beta1"},{"fixed":"3.1.0.rc5"}]}]},{"source":"osv","ecosystem":"Debian:12","package":"rails","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"2.3.14"}]}]},{"source":"osv","ecosystem":"Debian:13","package":"rails","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"2.3.14"}]}]},{"source":"osv","ecosystem":"Debian:14","package":"rails","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"2.3.14"}]}]},{"source":"osv","ecosystem":"Debian:6.0","package":"rails","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"2.3.5-1.2+squeeze1"}]}],"versions":["2.3.5-1.2","2.3.5-1.2+squeeze0.1"],"bundled":4},{"source":"osv","ecosystem":"Debian:5.0","package":"rails","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"2.1.0-7+lenny1"}]}],"versions":["2.1.0-6","2.1.0-7","2.1.0-7+lenny0.1","2.1.0-7+lenny0.2"],"bundled":4},{"source":"osv","ecosystem":"RubyGems","package":"activerecord","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"2.0.0"},{"fixed":"2.3.13"}]}],"versions":["2.0.0","2.0.1","2.0.2","2.0.4","2.0.5","2.1.0","2.1.1","2.1.2","2.2.2","2.2.3","2.3.10","2.3.11","2.3.12","2.3.2","2.3.3","2.3.4","2.3.5","2.3.6","2.3.7","2.3.8","2.3.8.pre1","2.3.9","2.3.9.pre"]},{"source":"osv","ecosystem":"RubyGems","package":"activerecord","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"3.0.0.beta"},{"fixed":"3.0.10"}]}],"versions":["3.0.0","3.0.0.beta","3.0.0.beta2","3.0.0.beta3","3.0.0.beta4","3.0.0.rc","3.0.0.rc2","3.0.1","3.0.10.rc1","3.0.2","3.0.3","3.0.4","3.0.4.rc1","3.0.5","3.0.5.rc1","3.0.6","3.0.6.rc1","3.0.6.rc2","3.0.7","3.0.7.rc1","3.0.7.rc2","3.0.8","3.0.8.rc1","3.0.8.rc2","3.0.8.rc4","3.0.9","3.0.9.rc1","3.0.9.rc3","3.0.9.rc4","3.0.9.rc5"]},{"source":"osv","ecosystem":"RubyGems","package":"activerecord","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"3.1.0.beta1"},{"fixed":"3.1.0.rc5"}]}],"versions":["3.1.0.beta1","3.1.0.rc1","3.1.0.rc2","3.1.0.rc3","3.1.0.rc4"]}],"products":[{"vendor":"rubyonrails","product":"rails"},{"vendor":"rubyonrails","product":"ruby_on_rails"}],"references":[{"url":"http://www.openwall.com/lists/oss-security/2011/08/17/1","tags":["mailing-list","x_refsource_MLIST","x_transferred","Patch","fix","web"]},{"url":"https://github.com/rails/rails/commit/8a39f411dc3c806422785b1f4d5c7c9d58e4bf85","tags":["x_refsource_CONFIRM","x_transferred","Patch","fix","web"]},{"url":"http://www.openwall.com/lists/oss-security/2011/08/22/13","tags":["mailing-list","x_refsource_MLIST","x_transferred","Patch","fix","web"]},{"url":"http://lists.fedoraproject.org/pipermail/package-announce/2011-September/065212.html","tags":["vendor-advisory","x_refsource_FEDORA","x_transferred","web"]},{"url":"http://www.openwall.com/lists/oss-security/2011/08/19/11","tags":["mailing-list","x_refsource_MLIST","x_transferred","Patch","fix","web"]},{"url":"http://www.debian.org/security/2011/dsa-2301","tags":["vendor-advisory","x_refsource_DEBIAN","x_transferred","advisory","web"]},{"url":"http://www.openwall.com/lists/oss-security/2011/08/20/1","tags":["mailing-list","x_refsource_MLIST","x_transferred","Patch","fix","web"]},{"url":"http://groups.google.com/group/rubyonrails-security/msg/b1a85d36b0f9dd30?dmode=source\u0026output=gplain","tags":["mailing-list","x_refsource_MLIST","x_transferred","Patch","fix","web"]},{"url":"http://www.openwall.com/lists/oss-security/2011/08/22/14","tags":["mailing-list","x_refsource_MLIST","x_transferred","web"]},{"url":"https://bugzilla.redhat.com/show_bug.cgi?id=731438","tags":["x_refsource_CONFIRM","x_transferred","Patch","fix","web"]},{"url":"http://www.openwall.com/lists/oss-security/2011/08/22/5","tags":["mailing-list","x_refsource_MLIST","x_transferred","Patch","fix","web"]},{"url":"http://weblog.rubyonrails.org/2011/8/16/ann-rails-3-1-0-rc6","tags":["x_refsource_CONFIRM","x_transferred","Patch","fix","web"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2011-2930","tags":["advisory"]},{"url":"https://github.com/rubysec/ruby-advisory-db/blob/master/gems/activerecord/CVE-2011-2930.yml","tags":["web"]},{"url":"https://github.com/advisories/GHSA-h6w6-xmqv-7q78"},{"url":"https://security-tracker.debian.org/tracker/CVE-2011-2930","tags":["advisory"]},{"url":"https://github.com/rails/rails","tags":["package"]}],"sources":{"cve":[{"id":"CVE-2011-2930","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.","status":"published","published":"2011-08-29T18:00:00Z","modified":"2024-08-06T23:15:31.901Z","updated_at":"2026-11-02T14:35:36.252742Z"}],"euvd":[{"id":"EUVD-2017-0247","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.","status":"published","published":"2011-08-29T18:00:00Z","modified":"2024-08-06T23:15:31Z","updated_at":"2026-11-03T01:39:53.544801Z"}],"ghsa":[{"id":"GHSA-h6w6-xmqv-7q78","title":"activerecord vulnerable to SQL Injection","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.","status":"published","published":"2017-10-24T18:33:38Z","modified":"2025-11-03T13:56:06Z","cwes":["CWE-89"],"updated_at":"2026-11-02T14:39:04.350802Z"}],"nvd":[{"id":"CVE-2011-2930","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.","status":"published","published":"2011-08-29T18:55:01.457Z","modified":"2026-06-16T23:32:16.417Z","cvss":[{"version":"2.0","score":7.5,"vector":"AV:N/AC:L/Au:N/C:P/I:P/A:P","level":"high","assessor":"primary"}],"cwes":["CWE-89"],"updated_at":"2026-11-02T14:02:09.988332Z"}],"osv":[{"id":"CVE-2011-2930","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.","status":"published","published":"2011-08-29T18:55:01Z","modified":"2026-04-10T03:41:54.72649Z","updated_at":"2026-11-02T15:43:58.279353Z"},{"id":"DEBIAN-CVE-2011-2930","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.","status":"published","published":"2011-08-29T18:55:01.457Z","modified":"2026-10-23T17:47:44.788533205Z","updated_at":"2026-11-02T15:45:24.612044Z"},{"id":"DSA-2301-1","title":"rails - several","status":"published","published":"2011-09-05T00:00:00Z","modified":"2026-03-09T01:21:41.318889Z","updated_at":"2026-11-02T15:46:15.108335Z"},{"id":"GHSA-h6w6-xmqv-7q78","title":"activerecord vulnerable to SQL Injection","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.","status":"published","published":"2017-10-24T18:33:38Z","modified":"2025-11-03T14:13:18.010693Z","cwes":["CWE-89"],"updated_at":"2026-11-02T15:46:48.920784Z"}]}}
