CVE-2011-3187 EXPLOIT
4.3
MEDIUM · CVSS 2.0 · EPSS 6.7% (pctl 94)
Patch early
A public exploit exists.
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.
Scoring
| CVSS | 4.3 (MEDIUM, v2.0) |
|---|---|
| Vector | AV:N/AC:M/Au:N/C:N/I:P/A:N |
| EPSS | 6.67% — more likely to be exploited than 94% of all CVEs |
| Weakness | CWE-20 |
| On CISA KEV | no |
| Public exploit | yes |
| Published | 2011-08-29 |
| Last modified | 2026-06-16 |
Affected (1)
| Vendor | Product |
|---|---|
| rubyonrails | rails |
Public exploits
| Source | Title | Date |
|---|---|---|
| exploit-db | Ruby on Rails 3.0.5 - 'WEBrick::HTTPRequest' Module HTTP Header Injection | 2011-02-16 |
References
- http://archives.neohapsis.com/archives/fulldisclosure/2011-02/0337.html
- http://webservsec.blogspot.com/2011/02/ruby-on-rails-vulnerability.html
- http://www.openwall.com/lists/oss-security/2011/08/17/1
- http://www.openwall.com/lists/oss-security/2011/08/19/11
- http://www.openwall.com/lists/oss-security/2011/08/20/1
- http://www.openwall.com/lists/oss-security/2011/08/22/13
- http://www.openwall.com/lists/oss-security/2011/08/22/14
- http://www.openwall.com/lists/oss-security/2011/08/22/5
- https://bugzilla.novell.com/show_bug.cgi?id=673010
- http://archives.neohapsis.com/archives/fulldisclosure/2011-02/0337.html
- http://webservsec.blogspot.com/2011/02/ruby-on-rails-vulnerability.html
- http://www.openwall.com/lists/oss-security/2011/08/17/1
- http://www.openwall.com/lists/oss-security/2011/08/19/11
- http://www.openwall.com/lists/oss-security/2011/08/20/1
- http://www.openwall.com/lists/oss-security/2011/08/22/13
- http://www.openwall.com/lists/oss-security/2011/08/22/14
- http://www.openwall.com/lists/oss-security/2011/08/22/5
- https://bugzilla.novell.com/show_bug.cgi?id=673010
→ the Explorer · watch your stack · NVD