---
title: "CVE-2011-3187"
canonical_url: "https://pkgseek.com/security/CVE-2011-3187"
locale: "zh-CN"
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 严重级别为 MEDIUM，共索引 14 条受影响软件包构建记录，涉及 1 个发行版。

- **级别 / 评分**: MEDIUM
- **受影响构建数**: 14
- **涉及发行版**: 1
- **已标明修复版本发行版**: 暂无已标明修复记录

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