CVEvulnerability

CVE-2011-3187

4.3 MEDIUM Published 2011-08-29 Modified 2026-06-16 Official page ↗
Status
Modified
Published
2011-08-29
Last modified
2026-06-16
Assigner
[email protected]
CVSS 2.0 ([email protected])
4.3 MEDIUM — AV:N/AC:M/Au:N/C:N/I:P/A:N
Weaknesses
CWE-20

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.

Affected configurations

• rubyonrails rails 3.0.5

Related

Weakness · CWE (1)

  • CWE-20 Improper Input Validation weakness

References