CVE-2008-4094 json
Rails ActiveRecord gem vulnerable to SQL injection
published 2008-09-30 18 y ago modified 2026-06-16 4 mo ago also GHSA-xf96-32q2-9rw2 , EUVD-2017-0329
- cvss
- 7.5
- version 2.0, NVD
- cisa kev
- Not listed
- not in CISA's catalog
- epss
- 3.0%
- EPSS 3.0% chance of exploitation in 30 days, percentile 87%
- public exploits
- 0
- none known
Summary
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.
Patch / fix
- rubygems activerecord 2.1.1
- rails Debian 14, Debian 13, Debian 12 2.1.0-1
debian advisories DEBIAN-CVE-2008-4094
- github.com/rails/rails@ef0ea78 commit
- rails.lighthouseapp.com/projects/8994/tickets/964 patch
- rails.lighthouseapp.com/projects/8994/tickets/288 patch
- web.archive.org/web/20080620201733/http://blog.innerewut.de/files/rails/ac… patch
- web.archive.org/web/20080620201744/http://blog.innerewut.de/files/rails/ac… patch
Exploit prediction
3.03% chance of exploitation in the next 30 days, higher than 87% of all scored CVEs (FIRST EPSS, 2026-11-08).
Exploits and checks
- secunia.com http://secunia.com/advisories/31875 referenced PoC, tagged "exploit" by a source, unverified
- secunia.com http://secunia.com/advisories/31910 referenced PoC, tagged "exploit" by a source, unverified
- blog.innerewut.de http://blog.innerewut.de/2008/6/16/why-you-should-upgrade-to-rails-2-1 referenced PoC, tagged "exploit" by a source, unverified
- rorsecurity.info http://www.rorsecurity.info/2008/09/08/sql-injection-issue-in-limit-and-offset-parameter/ referenced PoC, tagged "exploit" by a source, unverified
- secunia.com http://secunia.com/advisories/31909 referenced PoC, tagged "exploit" by a source, unverified
CVSS scores
| assigned by | version | score | vector |
|---|---|---|---|
| NVD | 2.0 | 7.5 | AV:N/AC:L/Au:N/C:P/I:P/A:P |
Affected packages
| ecosystem | package | affected | fixed in |
|---|---|---|---|
| rubygems | activerecord | <2.1.1 |
2.1.1 |
Classification
- Weakness
-
- CWE-89 Improper Neutralization of Special Elements used in an SQL Command
- Technology feeds
References
-
rails.lighthouseapp.com
/projects/8994/tickets/964
web, patch
-
rails.lighthouseapp.com
/projects/8994/tickets/288
web, patch
-
github.com
/rails/rails/commit/ef0ea782b1f5cf7b08e74ea3002a16c708f66645
web
-
secunia.com
/advisories/31875
third-party-advisory, exploit, vendor-advisory
-
secunia.com
/advisories/31910
third-party-advisory, exploit, vendor-advisory
-
blog.innerewut.de
/2008/6/16/why-you-should-upgrade-to-rails-2-1
exploit
-
rorsecurity.info
/2008/09/08/sql-injection-issue-in-limit-and-offset-parameter/
exploit
-
secunia.com
/advisories/31909
third-party-advisory, exploit, vendor-advisory
-
lists.opensuse.org
/opensuse-security-announce/2008-12/msg00002.html
vendor-advisory, web
-
vupen.com
/english/advisories/2008/2562
vdb-entry, vendor-advisory
- gist.github.com /8946
-
exchange.xforce.ibmcloud.com
/vulnerabilities/45109
vdb-entry, web
-
openwall.com
/lists/oss-security/2008/09/13/2
mailing-list, web
-
securitytracker.com
/id?1020871
vdb-entry
-
openwall.com
/lists/oss-security/2008/09/16/1
mailing-list, web
-
securityfocus.com
/bid/31176
vdb-entry
-
nvd.nist.gov
/vuln/detail/CVE-2008-4094
advisory
-
github.com
/rails/rails
package
-
github.com
/rubysec/ruby-advisory-db/blob/master/gems/activerecord/CVE-2008-4094.yml
web
-
web.archive.org
/web/20080620000955/http://blog.innerewut.de/2008/6/16/why-you-should-upgrade-to-rails-2-1
web
-
web.archive.org
/web/20080620201733/http://blog.innerewut.de/files/rails/activerecord-1.15.3.patch
web
-
web.archive.org
/web/20080620201744/http://blog.innerewut.de/files/rails/activerecord-2.0.2.patch
web
-
web.archive.org
/web/20081104151751/http://gist.github.com/8946
web
-
web.archive.org
/web/20081113122736/http://secunia.com/advisories/31875
web
-
web.archive.org
/web/20081207211431/http://secunia.com/advisories/31909
web
-
web.archive.org
/web/20081207211436/http://secunia.com/advisories/31910
web
-
web.archive.org
/web/20091101000000*/http://www.vupen.com/english/advisories/2008/2562
web
-
web.archive.org
/web/20120120194518/http://www.securityfocus.com/bid/31176
web
-
web.archive.org
/web/20201207112829/http://www.securitytracker.com/id?1020871
web
-
rorsecurity.info
/2008/09/08/sql-injection-issue-in-limit-and-offset-parameter
web
Sources
- CVE List CVE-2008-4094
- GitHub Advisory GHSA-xf96-32q2-9rw2
- NVD CVE-2008-4094
Fencer Vulns keeps one entry per vulnerability: the CVE id wins, then GHSA, and records that alias each other are merged, except that two CVEs always keep separate entries. The same data is available as JSON.