CVE-2011-3187
mediumpriority · track · 29EPSS 0.067 · 94 %ileexploit · functionalEUUSEPSS · scored 2026-10-28
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.
cvss
Technical severity, 0–10. One row per scoring source.
base score 0–10 · higher = more severe · hover a vector to decode⚠ sources disagree · low–medium · 3.9–4.3
weaknesses
The CWE weakness classes this flaw belongs to.
exploits (1)
Public proof-of-concept and weaponised exploit code.
- EDB-35352Ruby on Rails 3.0.5 - 'WEBrick::HTTPRequest' Module HTTP Header Injectionfunctional · exploit_db
affected products (3)
Products and version ranges known to be affected.
advisories (1)
Vendor and ecosystem advisories describing this.
- GHSA-3vfw-7rcp-3xgmactionpack Improper Input Validation vulnerability2017-10-24ghsa · osvUS
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.
also known as (3)
Other names and identifiers for this entity.
sources
Which sources assert this record, and when.
references (27)
External citations — patches, advisories, analysis.
- http://archives.neohapsis.com/archives/fulldisclosure/2011-02/0337.htmlcnnvd
- http://webservsec.blogspot.com/2011/02/ruby-on-rails-vulnerability.htmlcnnvd
- http://www.openwall.com/lists/oss-security/2011/08/17/1cnnvd
- http://www.openwall.com/lists/oss-security/2011/08/19/11cnnvd
- http://www.openwall.com/lists/oss-security/2011/08/20/1cnnvd
- http://www.openwall.com/lists/oss-security/2011/08/22/13cnnvd
- http://www.openwall.com/lists/oss-security/2011/08/22/14cnnvd
- http://www.openwall.com/lists/oss-security/2011/08/22/5cnnvd
Attackers weaponise vulnerabilities like this against internet-exposed services. See what is exposed on your perimeter with a free passive scan.
Free scan