Moderate severityNVD Advisory· Published Aug 29, 2011· Updated Apr 29, 2026
CVE-2011-3187
CVE-2011-3187
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 packages
Versions sourced from the GitHub Security Advisory.
| Package | Affected versions | Patched versions |
|---|---|---|
actionpackRubyGems | >= 2.3.0, < 2.3.13 | 2.3.13 |
Affected products
1- cpe:2.3:a:rubyonrails:rails:3.0.5:*:*:*:*:*:*:*
Patches
0No patches discovered yet.
Vulnerability mechanics
AI mechanics synthesis has not run for this CVE yet.
References
13- www.openwall.com/lists/oss-security/2011/08/17/1nvdPatchWEB
- www.openwall.com/lists/oss-security/2011/08/19/11nvdPatchWEB
- www.openwall.com/lists/oss-security/2011/08/20/1nvdPatchWEB
- www.openwall.com/lists/oss-security/2011/08/22/13nvdPatchWEB
- www.openwall.com/lists/oss-security/2011/08/22/5nvdPatchWEB
- webservsec.blogspot.com/2011/02/ruby-on-rails-vulnerability.htmlnvdExploitWEB
- www.openwall.com/lists/oss-security/2011/08/22/14nvdExploitWEB
- bugzilla.novell.com/show_bug.cginvdExploitWEB
- github.com/advisories/GHSA-3vfw-7rcp-3xgmghsaADVISORY
- nvd.nist.gov/vuln/detail/CVE-2011-3187ghsaADVISORY
- github.com/rubysec/ruby-advisory-db/blob/master/gems/actionpack/CVE-2011-3187.ymlghsaWEB
- web.archive.org/web/20111209181000/http://archives.neohapsis.com/archives/fulldisclosure/2011-02/0337.htmlghsaWEB
- archives.neohapsis.com/archives/fulldisclosure/2011-02/0337.htmlnvd
News mentions
0No linked articles in our index yet.