CVE-2011-3187Rubyonrails Rails
Medium 4.3 No auth needed
Follow: this CVE · Rubyonrails · Rubyonrails Rails We alert you by email or Slack (account required).
- Priority
- 41
- CVSS 2.0
- 4.3
- EPSS
- 6.7% probability of exploitation in 30 days · percentile 95
- Auth required
- No
- Published
- Aug 29, 2011
- Updated
- Jun 16, 2026
- Category
- Application · Cross-platform
- Weakness (CWE)
- CWE-20
- Vector
AV:N/AC:M/Au:N/C:N/I:P/A:N
What happens
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.
What to do
- Apply the vendor's security update for Rails.
- It can be exploited without authentication: if you cannot patch now, restrict Internet access to the affected service.
Affected packages
| Ecosystem | Package | Affected versions | Fixed in | How to upgrade |
|---|---|---|---|---|
| RubyGems | actionpack |
≥ 2.3.0 < 2.3.13 |
2.3.13 |
gem "actionpack", ">= 2.3.13" |
Per OSV / GitHub Advisories (GHSA-3vfw-7rcp-3xgm). Check the version in your lockfile before upgrading.
Affected products (CPE)
| Vendor | Product | Versions |
|---|---|---|
| rubyonrails | rails | 3.0.5 |
Official sources
References
Links published by the sources. Open them with care.
- archives.neohapsis.com
- webservsec.blogspot.com Exploit
- www.openwall.com Patch
- www.openwall.com Patch
- www.openwall.com Patch
- www.openwall.com Patch
- www.openwall.com Exploit
- www.openwall.com Patch
- bugzilla.novell.com Exploit