{"id":"GHSA-xf96-32q2-9rw2","summary":"Rails ActiveRecord gem vulnerable to SQL injection","details":"Multiple SQL injection vulnerabilities in Ruby on Rails before 2.1.1 allow remote attackers to execute arbitrary SQL commands via the (1) `:limit` and (2) `:offset` parameters, related to ActiveRecord, ActiveSupport, ActiveResource, ActionPack, and ActionMailer.","aliases":["CVE-2008-4094"],"modified":"2024-12-07T05:39:18.718037Z","published":"2017-10-24T18:33:38Z","database_specific":{"github_reviewed_at":"2020-06-16T22:03:04Z","nvd_published_at":"2008-09-30T17:22:09Z","cwe_ids":["CWE-89"],"severity":"HIGH","github_reviewed":true},"references":[{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2008-4094"},{"type":"WEB","url":"https://github.com/rails/rails/commit/ef0ea782b1f5cf7b08e74ea3002a16c708f66645"},{"type":"WEB","url":"https://exchange.xforce.ibmcloud.com/vulnerabilities/45109"},{"type":"PACKAGE","url":"https://github.com/rails/rails"},{"type":"WEB","url":"https://github.com/rubysec/ruby-advisory-db/blob/master/gems/activerecord/CVE-2008-4094.yml"},{"type":"WEB","url":"https://web.archive.org/web/20080620000955/http://blog.innerewut.de/2008/6/16/why-you-should-upgrade-to-rails-2-1"},{"type":"WEB","url":"https://web.archive.org/web/20080620201733/http://blog.innerewut.de/files/rails/activerecord-1.15.3.patch"},{"type":"WEB","url":"https://web.archive.org/web/20080620201744/http://blog.innerewut.de/files/rails/activerecord-2.0.2.patch"},{"type":"WEB","url":"https://web.archive.org/web/20081104151751/http://gist.github.com/8946"},{"type":"WEB","url":"https://web.archive.org/web/20081113122736/http://secunia.com/advisories/31875"},{"type":"WEB","url":"https://web.archive.org/web/20081207211431/http://secunia.com/advisories/31909"},{"type":"WEB","url":"https://web.archive.org/web/20081207211436/http://secunia.com/advisories/31910"},{"type":"WEB","url":"https://web.archive.org/web/20091101000000*/http://www.vupen.com/english/advisories/2008/2562"},{"type":"WEB","url":"https://web.archive.org/web/20120120194518/http://www.securityfocus.com/bid/31176"},{"type":"WEB","url":"https://web.archive.org/web/20201207112829/http://www.securitytracker.com/id?1020871"},{"type":"WEB","url":"http://lists.opensuse.org/opensuse-security-announce/2008-12/msg00002.html"},{"type":"WEB","url":"http://rails.lighthouseapp.com/projects/8994/tickets/288"},{"type":"WEB","url":"http://rails.lighthouseapp.com/projects/8994/tickets/964"},{"type":"WEB","url":"http://www.openwall.com/lists/oss-security/2008/09/13/2"},{"type":"WEB","url":"http://www.openwall.com/lists/oss-security/2008/09/16/1"},{"type":"WEB","url":"http://www.rorsecurity.info/2008/09/08/sql-injection-issue-in-limit-and-offset-parameter"}],"affected":[{"package":{"name":"activerecord","ecosystem":"RubyGems","purl":"pkg:gem/activerecord"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"2.1.1"}]}],"versions":["1.0.0","1.1.0","1.10.0","1.10.1","1.11.0","1.11.1","1.12.1","1.12.2","1.13.0","1.13.1","1.13.2","1.14.0","1.14.1","1.14.2","1.14.3","1.14.4","1.15.0","1.15.1","1.15.2","1.15.3","1.15.4","1.15.5","1.15.6","1.2.0","1.3.0","1.4.0","1.5.0","1.5.1","1.6.0","1.7.0","1.8.0","1.9.0","1.9.1","2.0.0","2.0.1","2.0.2","2.0.4","2.0.5","2.1.0"],"database_specific":{"source":"https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2017/10/GHSA-xf96-32q2-9rw2/GHSA-xf96-32q2-9rw2.json"}}],"schema_version":"1.9.0"}