{"id":"CVE-2011-3187","aliases":["DEBIAN-CVE-2011-3187","EUVD-2017-0159","GHSA-3vfw-7rcp-3xgm"],"status":"published","title":"actionpack Improper Input Validation vulnerability","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.","severity":{"version":"2.0","score":4.3,"vector":"AV:N/AC:M/Au:N/C:N/I:P/A:N","level":"medium","assessor":"primary","from":"nvd"},"epss":{"day":"2026-11-08","score":0.06666,"percentile":0.93935,"model":"v2026.06.15"},"facts":{"in_kev":false,"known_exploited":false,"public_exploit":true,"fix_available":true},"cwes":["CWE-20"],"published":"2011-08-29T18:00:00Z","modified":"2026-10-23T17:47:39Z","exploits":[{"source":"exploitdb","id":"EDB-35352","title":"Ruby on Rails 3.0.5 - 'WEBrick::HTTPRequest' Module HTTP Header Injection","type":"remote","platform":"multiple","date":"2011-02-16","verified":true,"url":"https://www.exploit-db.com/exploits/35352"}],"fixes":[{"ecosystem":"RubyGems","package":"actionpack","fixed_in":["2.3.13"],"sources":["ghsa","osv"]}],"affected":[{"source":"ghsa","ecosystem":"RubyGems","package":"actionpack","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"2.3.0"},{"fixed":"2.3.13"}]}]},{"source":"osv","ecosystem":"Debian:12","package":"rails","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["2:6.1.7.10+dfsg-1~deb12u1","2:6.1.7.10+dfsg-1~deb12u2","2:6.1.7.10+dfsg-1~deb12u3","2:6.1.7.3+dfsg-1","2:6.1.7.3+dfsg-10","2:6.1.7.3+dfsg-11","2:6.1.7.3+dfsg-12","2:6.1.7.3+dfsg-13","2:6.1.7.3+dfsg-2","2:6.1.7.3+dfsg-2~deb12u1","2:6.1.7.3+dfsg-3","2:6.1.7.3+dfsg-4","2:6.1.7.3+dfsg-5","2:6.1.7.3+dfsg-6","2:6.1.7.3+dfsg-7","2:6.1.7.3+dfsg-7~exp1","2:6.1.7.3+dfsg-8","2:6.1.7.3+dfsg-9","2:7.2.2.1+dfsg-1","2:7.2.2.1+dfsg-1~exp1","2:7.2.2.1+dfsg-1~exp2","2:7.2.2.1+dfsg-1~exp3","2:7.2.2.1+dfsg-1~exp4","2:7.2.2.1+dfsg-1~exp6","2:7.2.2.1+dfsg-2","2:7.2.2.1+dfsg-3","2:7.2.2.1+dfsg-4","2:7.2.2.1+dfsg-5","2:7.2.2.1+dfsg-6","2:7.2.2.1+dfsg-7","2:7.2.2.2+dfsg-1","2:7.2.2.2+dfsg-2","2:7.2.2.2+dfsg-2~deb13u1","2:7.2.2.2+dfsg-2~deb13u2","2:7.2.3+dfsg-1","2:7.2.3+dfsg-2","2:7.2.3+dfsg-3","2:7.2.3.1+dfsg-1","2:7.2.3.2+dfsg-1","2:7.2.3.2+dfsg-2","2:7.2.3.2+dfsg-3","2:7.2.4+dfsg-1","2:7.2.4+dfsg-2"]},{"source":"osv","ecosystem":"Debian:13","package":"rails","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["2:7.2.2.1+dfsg-7","2:7.2.2.2+dfsg-1","2:7.2.2.2+dfsg-2","2:7.2.2.2+dfsg-2~deb13u1","2:7.2.2.2+dfsg-2~deb13u2","2:7.2.3+dfsg-1","2:7.2.3+dfsg-2","2:7.2.3+dfsg-3","2:7.2.3.1+dfsg-1","2:7.2.3.2+dfsg-1","2:7.2.3.2+dfsg-2","2:7.2.3.2+dfsg-3","2:7.2.4+dfsg-1","2:7.2.4+dfsg-2"]},{"source":"osv","ecosystem":"Debian:14","package":"rails","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["2:7.2.2.1+dfsg-7","2:7.2.2.2+dfsg-1","2:7.2.2.2+dfsg-2","2:7.2.2.2+dfsg-2~deb13u1","2:7.2.2.2+dfsg-2~deb13u2","2:7.2.3+dfsg-1","2:7.2.3+dfsg-2","2:7.2.3+dfsg-3","2:7.2.3.1+dfsg-1","2:7.2.3.2+dfsg-1","2:7.2.3.2+dfsg-2","2:7.2.3.2+dfsg-3","2:7.2.4+dfsg-1","2:7.2.4+dfsg-2"]},{"source":"osv","ecosystem":"RubyGems","package":"actionpack","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"2.3.0"},{"fixed":"2.3.13"}]}],"versions":["2.3.10","2.3.11","2.3.12","2.3.2","2.3.3","2.3.4","2.3.5","2.3.6","2.3.7","2.3.8","2.3.8.pre1","2.3.9","2.3.9.pre"]}],"products":[{"vendor":"rubyonrails","product":"rails"}],"references":[{"url":"http://archives.neohapsis.com/archives/fulldisclosure/2011-02/0337.html","tags":["mailing-list","x_refsource_FULLDISC","x_transferred","web"]},{"url":"http://www.openwall.com/lists/oss-security/2011/08/17/1","tags":["mailing-list","x_refsource_MLIST","x_transferred","Patch","fix","web"]},{"url":"http://www.openwall.com/lists/oss-security/2011/08/22/13","tags":["mailing-list","x_refsource_MLIST","x_transferred","Patch","fix","web"]},{"url":"http://webservsec.blogspot.com/2011/02/ruby-on-rails-vulnerability.html","tags":["x_refsource_MISC","x_transferred","Exploit","evidence","web"]},{"url":"http://www.openwall.com/lists/oss-security/2011/08/19/11","tags":["mailing-list","x_refsource_MLIST","x_transferred","Patch","fix","web"]},{"url":"http://www.openwall.com/lists/oss-security/2011/08/20/1","tags":["mailing-list","x_refsource_MLIST","x_transferred","Patch","fix","web"]},{"url":"http://www.openwall.com/lists/oss-security/2011/08/22/14","tags":["mailing-list","x_refsource_MLIST","x_transferred","Exploit","evidence","web"]},{"url":"https://bugzilla.novell.com/show_bug.cgi?id=673010","tags":["x_refsource_CONFIRM","x_transferred","Exploit","evidence","web"]},{"url":"http://www.openwall.com/lists/oss-security/2011/08/22/5","tags":["mailing-list","x_refsource_MLIST","x_transferred","Patch","fix","web"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2011-3187","tags":["advisory"]},{"url":"https://github.com/rubysec/ruby-advisory-db/blob/master/gems/actionpack/CVE-2011-3187.yml","tags":["web"]},{"url":"https://web.archive.org/web/20111209181000/http://archives.neohapsis.com/archives/fulldisclosure/2011-02/0337.html","tags":["web"]},{"url":"https://github.com/advisories/GHSA-3vfw-7rcp-3xgm"},{"url":"https://security-tracker.debian.org/tracker/CVE-2011-3187","tags":["advisory"]},{"url":"https://github.com/rails/rails","tags":["package"]}],"sources":{"cve":[{"id":"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.","status":"published","published":"2011-08-29T18:00:00Z","modified":"2024-08-06T23:22:27.754Z","updated_at":"2026-11-02T14:35:37.671707Z"}],"euvd":[{"id":"EUVD-2017-0159","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.","status":"published","published":"2011-08-29T18:00:00Z","modified":"2024-08-06T23:22:27Z","updated_at":"2026-11-03T01:39:52.582864Z"}],"ghsa":[{"id":"GHSA-3vfw-7rcp-3xgm","title":"actionpack Improper Input Validation vulnerability","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.","status":"published","published":"2017-10-24T18:33:38Z","modified":"2023-11-10T05:03:18Z","cwes":["CWE-20"],"updated_at":"2026-11-02T14:37:19.438667Z"}],"nvd":[{"id":"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.","status":"published","published":"2011-08-29T18:55:01.707Z","modified":"2026-06-16T23:32:49.797Z","cvss":[{"version":"2.0","score":4.3,"vector":"AV:N/AC:M/Au:N/C:N/I:P/A:N","level":"medium","assessor":"primary"}],"cwes":["CWE-20"],"updated_at":"2026-11-02T14:02:09.988332Z"}],"osv":[{"id":"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.","status":"published","published":"2011-08-29T18:55:01Z","modified":"2026-04-10T03:41:57.158239Z","updated_at":"2026-11-02T15:43:58.279353Z"},{"id":"DEBIAN-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.","status":"published","published":"2011-08-29T18:55:01.707Z","modified":"2026-10-23T17:47:39.892405362Z","updated_at":"2026-11-02T15:45:24.612044Z"},{"id":"GHSA-3vfw-7rcp-3xgm","title":"actionpack Improper Input Validation vulnerability","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.","status":"published","published":"2017-10-24T18:33:38Z","modified":"2024-11-29T05:35:28.609253Z","cwes":["CWE-20"],"updated_at":"2026-11-02T15:46:36.092962Z"}]}}
