---
title: "CVE-2011-3187\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-2011-3187?format=md
keywords: index, follow
---

# CVE-2011-3187

Publication date 29 August 2011

Last updated 24 July 2024

---

Ubuntu priority

**Low**

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

Toggle side navigation

## Description

The to\_s method in actionpack/lib/action\_dispatch/middleware/remote\_ip.rb
in Ruby on Rails 3.0.5 does not validate the X-Forwarded-For header in
requests from IP addresses on a Class C network, which might allow remote
attackers to inject arbitrary text into log files or bypass intended
address parsing via a crafted header.

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

## Status

Show unmaintained releases

| Package | Ubuntu Release | Status |
| --- | --- | --- |
| rails | 11.04 natty | Not affected |
| 10.10 maverick | Not affected |
| 10.04 LTS lucid | Not affected |
| 8.04 LTS hardy | Ignored end of life |

---

* [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

---

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

looks like it's 3.x only

## References

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

### Other references

* <http://www.openwall.com/lists/oss-security/2011/08/22/14>
* <http://webservsec.blogspot.com/2011/02/ruby-on-rails-vulnerability.html>
* <https://www.cve.org/CVERecord?id=CVE-2011-3187>
