---
title: "CVE-2012-2661\n    | Ubuntu"
description: Ubuntu is an open source software operating system that runs from the
  desktop, to the cloud, to all your internet connected things.
url: https://ubuntu.com/security/CVE-2012-2661?format=md
keywords: index, follow
---

# CVE-2012-2661

Publication date 22 June 2012

Last updated 24 July 2024

---

Ubuntu priority

**Medium**

[Why this priority?](https://ubuntu.com/security/cves/about#priority )

Toggle side navigation

## Description

The Active Record component in Ruby on Rails 3.0.x before 3.0.13, 3.1.x
before 3.1.5, and 3.2.x before 3.2.4 does not properly implement the
passing of request data to a where method in an ActiveRecord class, which
allows remote attackers to conduct certain SQL injection attacks via nested
query parameters that leverage unintended recursion, a related issue to
CVE-2012-2695.

[Read the notes from the security team](https://ubuntu.com/security/CVE-2012-2661?format=md#notes)

## Status

Show unmaintained releases

| Package | Ubuntu Release | Status |
| --- | --- | --- |
| rails | 12.04 LTS precise | Not affected |
| 11.10 oneiric | Not affected |
| 11.04 natty | Not affected |
| 10.04 LTS lucid | Not affected |
| 8.04 LTS hardy | Not affected |
| ruby-rails-2.3 | 12.04 LTS precise | Not affected |
| 11.10 oneiric | Not affected |
| 11.04 natty | Not in release |
| 10.04 LTS lucid | Not in release |
| 8.04 LTS hardy | Not in release |

---

* [How can I get the fixes?](https://ubuntu.com/security/cves/about#security)
* [What do statuses mean?](https://ubuntu.com/security/cves/about#statuses)

## Notes

---

### [tyhicks](https://launchpad.net/~tyhicks)

Fixed in upstream version 3.2.4, 3.1.5, 3.0.13
2.3.x is not affected

## References

* [MITRE](https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2012-2661)
* [NVD](https://nvd.nist.gov/vuln/detail/CVE-2012-2661)
* [Launchpad](https://launchpad.net/bugs/cve/CVE-2012-2661)
* [Debian](https://security-tracker.debian.org/tracker/CVE-2012-2661)

### Other references

* <https://www.cve.org/CVERecord?id=CVE-2012-2661>
