{"schemaVersion":1,"url":"https://cve.openhack.com/cve/CVE-2008-4094","id":"CVE-2008-4094","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.","descriptionLong":"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.","published":"2008-09-30T17:00:00.000Z","updated":"2026-06-16T22:57:09.793Z","reserved":"2008-09-15T00:00:00.000Z","status":"Modified","rejected":false,"assigner":"mitre","metric":{"version":"2.0","score":7.5,"vector":"AV:N/AC:L/Au:N/C:P/I:P/A:P","rating":"high","source":"NVD"},"metrics":[{"version":"2.0","score":7.5,"vector":"AV:N/AC:L/Au:N/C:P/I:P/A:P","rating":"high","source":"NVD"}],"rating":"high","products":[],"affectedProducts":[{"vendor":"n/a","product":"n/a","defaultStatus":null,"versions":[{"status":"affected","version":"n/a"}],"platforms":[]}],"packages":[{"ecosystem":"RubyGems","name":"activerecord","purl":"pkg:gem/activerecord","ranges":["<2.1.1"],"fixed":["2.1.1"],"advisory":"GHSA-xf96-32q2-9rw2"}],"cwes":["CWE-89"],"aliases":["GHSA-xf96-32q2-9rw2"],"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/rails/rails/commit/ef0ea782b1f5cf7b08e74ea3002a16c708f66645","tags":["web"]},{"url":"https://github.com/rails/rails","tags":["package"]},{"url":"https://github.com/rubysec/ruby-advisory-db/blob/master/gems/activerecord/CVE-2008-4094.yml","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","tags":["web"]},{"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":"http://www.rorsecurity.info/2008/09/08/sql-injection-issue-in-limit-and-offset-parameter","tags":["web"]}],"patchReferenced":true,"fixAvailable":true,"exploitReferenced":true,"kev":false,"kevAdded":null,"kevDue":null,"kevEntry":null,"ssvc":null,"epss":0.0303,"epssPercentile":0.87746,"sources":[{"name":"CVE List","url":"https://www.cve.org/CVERecord?id=CVE-2008-4094","ok":true},{"name":"NVD","url":"https://nvd.nist.gov/vuln/detail/CVE-2008-4094","ok":true,"note":"Modified"},{"name":"OSV","url":"https://osv.dev/vulnerability/CVE-2008-4094","ok":true,"note":"1 package"},{"name":"GitHub Advisory","url":"https://github.com/advisories/GHSA-xf96-32q2-9rw2","ok":true,"note":"GHSA-xf96-32q2-9rw2"},{"name":"CISA KEV","url":"https://www.cisa.gov/known-exploited-vulnerabilities-catalog","ok":true,"note":"not listed"},{"name":"EPSS","url":"https://api.first.org/data/v1/epss?cve=CVE-2008-4094","ok":true,"note":"scored 2026-11-18"}],"aiTitle":false,"tech":[],"critical":[],"attention":null}