CVE-2011-3187
MEDIUM 4.3CVSS 2.0actionpack Improper Input Validation vulnerability
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.
- Published
- 29 Aug 2011
- Last modified
- 16 Jun 2026
- Assigned by
- secalert@redhat.com
- NVD status
- Modified
- Weakness
- CWE-20
- Also known as
- GHSA-3vfw-7rcp-3xgm
- Sources
- NVDJSONOSV GHSA-3vfw-7rcp-3xgmJSON
Scores
| Source | Scored by | Version | Score | Vector / decision |
|---|---|---|---|---|
| NVD | nvd@nist.gov (Primary) | CVSS 2.0 | MEDIUM 4.3 | AV:N/AC:M/Au:N/C:N/I:P/A:N |
Affected
| Source | Vendor / ecosystem | Product / package | Affected versions | Fixed in |
|---|---|---|---|---|
| NVD | rubyonrails | railscpe:2.3:a:rubyonrails:rails:3.0.5:*:*:*:*:*:*:* |
= 3.0.5 | |
| OSV | RubyGems | actionpack | >= 2.3.0, < 2.3.13 | 2.3.13 |
References
- http://archives.neohapsis.com/archives/fulldisclosure/2011-02/0337.html
- http://webservsec.blogspot.com/2011/02/ruby-on-rails-vulnerability.html · Exploit, WEB
- http://www.openwall.com/lists/oss-security/2011/08/17/1 · Patch, WEB
- http://www.openwall.com/lists/oss-security/2011/08/19/11 · Patch, WEB
- http://www.openwall.com/lists/oss-security/2011/08/20/1 · Patch, WEB
- http://www.openwall.com/lists/oss-security/2011/08/22/13 · Patch, WEB
- http://www.openwall.com/lists/oss-security/2011/08/22/14 · Exploit, WEB
- http://www.openwall.com/lists/oss-security/2011/08/22/5 · Patch, WEB
- https://bugzilla.novell.com/show_bug.cgi?id=673010 · Exploit, WEB
- https://nvd.nist.gov/vuln/detail/CVE-2011-3187 · ADVISORY
- https://github.com/rails/rails · PACKAGE
- https://github.com/rubysec/ruby-advisory-db/blob/master/gems/actionpack/CVE-2011-3187.yml · WEB
- https://web.archive.org/web/20111209181000/http://archives.neohapsis.com/archives/fulldisclosure/2011-02/0337.html · WEB
History
- 25 Nov 2026 20:16 UTC · NVD: first stored (published 29 Aug 2011)
- 25 Nov 2026 20:14 UTC · OSV: first stored (published 24 Oct 2017)