CVE-2011-3187 json
actionpack Improper Input Validation vulnerability
published 2011-08-29 15 y ago modified 2026-06-16 4 mo ago also GHSA-3vfw-7rcp-3xgm , EUVD-2017-0159
- cvss
- 4.3
- version 2.0, NVD
- cisa kev
- Not listed
- not in CISA's catalog
- epss
- 6.7%
- EPSS 6.7% chance of exploitation in 30 days, percentile 93%
- public exploits
- 1
- Exploit-DB
Summary
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.
Patch / fix
- rubygems actionpack 2.3.13
Vendor advisories
What the vendors themselves say about their products: affected, fixed or not affected, and what to do.
red hat product security vex CVE-2011-3187 updated cvss 4.3
rubygem-actionpack: does not validate X-Forwarded-For header in requests from class C networks
-
Red Hat All currently supported Red Hat productsnot affected: vulnerable code not present
Red Hat CSAF VEX © Red Hat, Inc., from https://security.access.redhat.com/data/csaf/v2/vex/; changed: reduced to product statuses and remediations. CC BY 4.0 · csaf
Timeline
- First public exploit (EDB-35352)
- Published
Exploit prediction
6.67% chance of exploitation in the next 30 days, higher than 93% of all scored CVEs (FIRST EPSS, 2026-11-09).
Exploits and checks
- EDB-35352 Ruby on Rails 3.0.5 - 'WEBrick::HTTPRequest' Module HTTP Header Injection remote, 2011-02-16
- webservsec.blogspot.com http://webservsec.blogspot.com/2011/02/ruby-on-rails-vulnerability.html referenced PoC, tagged "exploit" by a source, unverified
- openwall.com http://www.openwall.com/lists/oss-security/2011/08/22/14 referenced PoC, tagged "exploit" by a source, unverified
- bugzilla.novell.com https://bugzilla.novell.com/show_bug.cgi?id=673010 referenced PoC, tagged "exploit" by a source, unverified
CVSS scores
| assigned by | version | score | vector |
|---|---|---|---|
| NVD | 2.0 | 4.3 | AV:N/AC:M/Au:N/C:N/I:P/A:N |
Affected packages
| ecosystem | package | affected | fixed in |
|---|---|---|---|
| rubygems | actionpack | >=2.3.0, <2.3.13 |
2.3.13 |
Classification
- Weakness
-
- CWE-20 Improper Input Validation
- Technology feeds
References
-
openwall.com
/lists/oss-security/2011/08/17/1
mailing-list, web, patch
-
openwall.com
/lists/oss-security/2011/08/22/13
mailing-list, web, patch
-
openwall.com
/lists/oss-security/2011/08/19/11
mailing-list, web, patch
-
openwall.com
/lists/oss-security/2011/08/20/1
mailing-list, web, patch
-
openwall.com
/lists/oss-security/2011/08/22/5
mailing-list, web, patch
-
webservsec.blogspot.com
/2011/02/ruby-on-rails-vulnerability.html
web, exploit
-
openwall.com
/lists/oss-security/2011/08/22/14
mailing-list, web, exploit
-
bugzilla.novell.com
/show_bug.cgi?id=673010
web, exploit
-
archives.neohapsis.com
/archives/fulldisclosure/2011-02/0337.html
mailing-list
-
nvd.nist.gov
/vuln/detail/CVE-2011-3187
advisory
-
github.com
/rails/rails
package
-
github.com
/rubysec/ruby-advisory-db/blob/master/gems/actionpack/CVE-2011-3187.yml
web
-
web.archive.org
/web/20111209181000/http://archives.neohapsis.com/archives/fulldisclosure/2011-02/0337.html
web
Sources
- CVE List CVE-2011-3187
- GitHub Advisory GHSA-3vfw-7rcp-3xgm
- NVD CVE-2011-3187
Fencer Intel keeps one entry per vulnerability: the CVE id wins, then GHSA, and records that alias each other are merged, except that two CVEs always keep separate entries. The same data is available as JSON.