SQL Injection Vulnerability in quote_table_name in rails/activerecord
Published: October 24, 2017
SECURITY IDENTIFIERS
- CVE: CVE-2011-2930 (NVD)
- GHSA: GHSA-h6w6-xmqv-7q78
- Vendor Advisory: http://weblog.rubyonrails.org/2011/8/16/ann-rails-3-1-0-rc6
GEM
FRAMEWORK
SEVERITY
CVSS v2.0: 7.5 (High)
PATCHED VERSIONS
~> 2.3.13
~> 3.0.10
~> 3.1.0.rc5
>= 3.1.0
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.
RELATED
- https://nvd.nist.gov/vuln/detail/CVE-2011-2930
- http://weblog.rubyonrails.org/2011/8/16/ann-rails-3-1-0-rc6
- https://groups.google.com/g/rubyonrails-security/c/ah5HN0S8OJs/m/MN35sDZdqLEJ
- https://github.com/rails/rails/commit/8a39f411dc3c806422785b1f4d5c7c9d58e4bf85
- https://github.com/advisories/GHSA-h6w6-xmqv-7q78
- https://bugzilla.redhat.com/show_bug.cgi?id=731438
- http://lists.fedoraproject.org/pipermail/package-announce/2011-September/065212.html
- http://www.debian.org/security/2011/dsa-2301
- http://www.openwall.com/lists/oss-security/2011/08/17/1
- http://www.openwall.com/lists/oss-security/2011/08/19/11
- http://www.openwall.com/lists/oss-security/2011/08/20/1
- http://www.openwall.com/lists/oss-security/2011/08/22/13
- http://www.openwall.com/lists/oss-security/2011/08/22/14
- http://www.openwall.com/lists/oss-security/2011/08/22/5
