{"id":"CVE-2008-4094","aliases":["DEBIAN-CVE-2008-4094","EUVD-2017-0329","GHSA-xf96-32q2-9rw2"],"status":"published","title":"Rails ActiveRecord gem vulnerable to SQL injection","description":"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.","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-09","score":0.0303,"percentile":0.87579,"model":"v2026.06.15"},"facts":{"in_kev":false,"known_exploited":false,"public_exploit":false,"fix_available":true},"cwes":["CWE-89"],"published":"2008-09-30T17:00:00Z","modified":"2026-10-23T17:47:21Z","fixes":[{"ecosystem":"RubyGems","package":"activerecord","fixed_in":["2.1.1"],"sources":["ghsa","osv"]},{"ecosystem":"Debian:12","package":"rails","fixed_in":["2.1.0-1"],"sources":["osv"]},{"ecosystem":"Debian:13","package":"rails","fixed_in":["2.1.0-1"],"sources":["osv"]},{"ecosystem":"Debian:14","package":"rails","fixed_in":["2.1.0-1"],"sources":["osv"]}],"affected":[{"source":"ghsa","ecosystem":"RubyGems","package":"activerecord","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"2.1.1"}]}]},{"source":"osv","ecosystem":"Debian:12","package":"rails","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"2.1.0-1"}]}]},{"source":"osv","ecosystem":"Debian:13","package":"rails","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"2.1.0-1"}]}]},{"source":"osv","ecosystem":"Debian:14","package":"rails","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"2.1.0-1"}]}]},{"source":"osv","ecosystem":"RubyGems","package":"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"]}],"products":[{"vendor":"rubyonrails","product":"rails"},{"vendor":"rubyonrails","product":"ruby_on_rails"}],"references":[{"url":"http://gist.github.com/8946","tags":["x_refsource_CONFIRM","x_transferred","web"]},{"url":"https://exchange.xforce.ibmcloud.com/vulnerabilities/45109","tags":["vdb-entry","x_refsource_XF","x_transferred","web"]},{"url":"http://www.openwall.com/lists/oss-security/2008/09/13/2","tags":["mailing-list","x_refsource_MLIST","x_transferred","web"]},{"url":"http://rails.lighthouseapp.com/projects/8994/tickets/964","tags":["x_refsource_CONFIRM","x_transferred","Patch","fix","web"]},{"url":"http://rails.lighthouseapp.com/projects/8994/tickets/288","tags":["x_refsource_CONFIRM","x_transferred","Patch","fix","web"]},{"url":"http://secunia.com/advisories/31875","tags":["third-party-advisory","x_refsource_SECUNIA","x_transferred","Exploit","Vendor Advisory","advisory","evidence"]},{"url":"http://lists.opensuse.org/opensuse-security-announce/2008-12/msg00002.html","tags":["vendor-advisory","x_refsource_SUSE","x_transferred","web"]},{"url":"http://secunia.com/advisories/31910","tags":["third-party-advisory","x_refsource_SECUNIA","x_transferred","Exploit","Vendor Advisory","advisory","evidence"]},{"url":"http://blog.innerewut.de/2008/6/16/why-you-should-upgrade-to-rails-2-1","tags":["x_refsource_MISC","x_transferred","Exploit","evidence"]},{"url":"http://www.securitytracker.com/id?1020871","tags":["vdb-entry","x_refsource_SECTRACK","x_transferred","web"]},{"url":"http://www.rorsecurity.info/2008/09/08/sql-injection-issue-in-limit-and-offset-parameter/","tags":["x_refsource_MISC","x_transferred","Exploit","evidence"]},{"url":"http://www.openwall.com/lists/oss-security/2008/09/16/1","tags":["mailing-list","x_refsource_MLIST","x_transferred","web"]},{"url":"http://www.securityfocus.com/bid/31176","tags":["vdb-entry","x_refsource_BID","x_transferred","web"]},{"url":"http://secunia.com/advisories/31909","tags":["third-party-advisory","x_refsource_SECUNIA","x_transferred","Exploit","Vendor Advisory","advisory","evidence"]},{"url":"http://www.vupen.com/english/advisories/2008/2562","tags":["vdb-entry","x_refsource_VUPEN","x_transferred","Vendor Advisory","advisory"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2008-4094","tags":["advisory"]},{"url":"https://github.com/rubysec/ruby-advisory-db/blob/master/gems/activerecord/CVE-2008-4094.yml","tags":["web"]},{"url":"http://www.rorsecurity.info/2008/09/08/sql-injection-issue-in-limit-and-offset-parameter","tags":["web"]},{"url":"https://github.com/rails/rails/commit/ef0ea782b1f5cf7b08e74ea3002a16c708f66645","tags":["web"]},{"url":"https://web.archive.org/web/20080620000955/http://blog.innerewut.de/2008/6/16/why-you-should-upgrade-to-rails-2-1","tags":["web"]},{"url":"https://web.archive.org/web/20080620201733/http://blog.innerewut.de/files/rails/activerecord-1.15.3.patch","tags":["web"]},{"url":"https://web.archive.org/web/20080620201744/http://blog.innerewut.de/files/rails/activerecord-2.0.2.patch","tags":["web"]},{"url":"https://web.archive.org/web/20081104151751/http://gist.github.com/8946","tags":["web"]},{"url":"https://web.archive.org/web/20081113122736/http://secunia.com/advisories/31875/"},{"url":"https://web.archive.org/web/20081207211431/http://secunia.com/advisories/31909","tags":["web"]},{"url":"https://web.archive.org/web/20081207211436/http://secunia.com/advisories/31910","tags":["web"]},{"url":"https://web.archive.org/web/20091101000000*/http://www.vupen.com/english/advisories/2008/2562","tags":["web"]},{"url":"https://web.archive.org/web/20120120194518/http://www.securityfocus.com/bid/31176","tags":["web"]},{"url":"https://web.archive.org/web/20201207112829/http://www.securitytracker.com/id?1020871","tags":["web"]},{"url":"https://github.com/advisories/GHSA-xf96-32q2-9rw2"},{"url":"https://security-tracker.debian.org/tracker/CVE-2008-4094","tags":["advisory"]},{"url":"https://github.com/rails/rails","tags":["package"]},{"url":"https://web.archive.org/web/20081113122736/http://secunia.com/advisories/31875","tags":["web"]}],"sources":{"cve":[{"id":"CVE-2008-4094","description":"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.","status":"published","published":"2008-09-30T17:00:00Z","modified":"2024-08-07T10:00:42.864Z","updated_at":"2026-11-02T14:34:47.310062Z"}],"euvd":[{"id":"EUVD-2017-0329","description":"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.","status":"published","published":"2008-09-30T17:00:00Z","modified":"2024-08-07T10:00:42Z","updated_at":"2026-11-03T01:38:49.434096Z"}],"ghsa":[{"id":"GHSA-xf96-32q2-9rw2","title":"Rails ActiveRecord gem vulnerable to SQL injection","description":"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.","status":"published","published":"2017-10-24T18:33:38Z","modified":"2023-11-08T05:00:55Z","cwes":["CWE-89"],"updated_at":"2026-11-02T14:37:16.721714Z"}],"nvd":[{"id":"CVE-2008-4094","description":"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.","status":"published","published":"2008-09-30T17:22:09.147Z","modified":"2026-06-16T22:57:09.793Z","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:01:28.625777Z"}],"osv":[{"id":"CVE-2008-4094","description":"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.","status":"published","published":"2008-09-30T17:22:09Z","modified":"2026-04-10T03:40:09.256661Z","updated_at":"2026-11-02T15:43:57.452479Z"},{"id":"DEBIAN-CVE-2008-4094","description":"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.","status":"published","published":"2008-09-30T17:22:09.147Z","modified":"2026-10-23T17:47:21.517764026Z","updated_at":"2026-11-02T15:45:23.742363Z"},{"id":"GHSA-xf96-32q2-9rw2","title":"Rails ActiveRecord gem vulnerable to SQL injection","description":"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.","status":"published","published":"2017-10-24T18:33:38Z","modified":"2024-12-07T05:39:18.718037Z","cwes":["CWE-89"],"updated_at":"2026-11-02T15:46:59.835583Z"}]}}
