---
title: "CVE-2011-3187"
canonical_url: "https://pkgseek.com/security/CVE-2011-3187"
locale: "en"
source: "pkgseek"
entity_type: "cve"
severity: "medium"
---

# CVE-2011-3187

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.

CVE-2011-3187 is rated MEDIUM, with 14 indexed affected package builds across 1 distributions.

- **Severity / Score**: MEDIUM
- **Affected builds**: 14
- **Affected distros**: 1
- **Distros with fixed_in**: None recorded in sample

## Affected Packages

| Distribution | Release | Package | Version | Fixed In |
| --- | --- | --- | --- | --- |
| Debian | trixie | rails | 2:7.2.2.2+dfsg-2~deb13u2 | — |
| Debian | trixie | ruby-actioncable | 2:7.2.2.2+dfsg-2~deb13u2 | — |
| Debian | trixie | ruby-actionmailbox | 2:7.2.2.2+dfsg-2~deb13u2 | — |
| Debian | trixie | ruby-actionmailer | 2:7.2.2.2+dfsg-2~deb13u2 | — |
| Debian | trixie | ruby-actionpack | 2:7.2.2.2+dfsg-2~deb13u2 | — |
| Debian | trixie | ruby-actiontext | 2:7.2.2.2+dfsg-2~deb13u2 | — |
| Debian | trixie | ruby-actionview | 2:7.2.2.2+dfsg-2~deb13u2 | — |
| Debian | trixie | ruby-activejob | 2:7.2.2.2+dfsg-2~deb13u2 | — |
| Debian | trixie | ruby-activemodel | 2:7.2.2.2+dfsg-2~deb13u2 | — |
| Debian | trixie | ruby-activerecord | 2:7.2.2.2+dfsg-2~deb13u2 | — |
| Debian | trixie | ruby-activestorage | 2:7.2.2.2+dfsg-2~deb13u2 | — |
| Debian | trixie | ruby-activesupport | 2:7.2.2.2+dfsg-2~deb13u2 | — |
| Debian | trixie | ruby-rails | 2:7.2.2.2+dfsg-2~deb13u2 | — |
| Debian | trixie | ruby-railties | 2:7.2.2.2+dfsg-2~deb13u2 | — |
