{"id":"CVE-2011-3187","published":"2011-08-29T18:00:00Z","modified":"2024-08-06T23:22:27Z","title":"The to_s method in actionpack/lib/action_dispatch/middleware/remote_ip.rb in Ruby on Rails 3.0.5 does not validate the…","vendor":null,"product":null,"tier":"tail","description":{"text":"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.","provenance":"source","from":"CVE.org"},"cvss":null,"epss":{"score":0.06666,"percentile":0.94046,"provenance":"source"},"cwes":[],"references":[{"url":"http://archives.neohapsis.com/archives/fulldisclosure/2011-02/0337.html","tags":["mailing-list","x_refsource_FULLDISC"]},{"url":"http://www.openwall.com/lists/oss-security/2011/08/17/1","tags":["mailing-list","x_refsource_MLIST"]},{"url":"http://www.openwall.com/lists/oss-security/2011/08/22/13","tags":["mailing-list","x_refsource_MLIST"]},{"url":"http://webservsec.blogspot.com/2011/02/ruby-on-rails-vulnerability.html","tags":["x_refsource_MISC"]},{"url":"http://www.openwall.com/lists/oss-security/2011/08/19/11","tags":["mailing-list","x_refsource_MLIST"]},{"url":"http://www.openwall.com/lists/oss-security/2011/08/20/1","tags":["mailing-list","x_refsource_MLIST"]},{"url":"http://www.openwall.com/lists/oss-security/2011/08/22/14","tags":["mailing-list","x_refsource_MLIST"]},{"url":"https://bugzilla.novell.com/show_bug.cgi?id=673010","tags":["x_refsource_CONFIRM"]},{"url":"http://www.openwall.com/lists/oss-security/2011/08/22/5","tags":["mailing-list","x_refsource_MLIST"]}],"priority":{"score":23.8,"factors":[{"name":"EPSS percentile","points":18.81},{"name":"Public exploit code","points":5.0}]},"exploitSources":{"exploitdb":{"count":1,"earliest":"2011-02-16"},"first":{"date":"2011-02-16","source":"Exploit-DB","url":"https://www.exploit-db.com/exploits/35352"},"provenance":"source"},"affected":[{"ecosystem":"RubyGems","package":"actionpack","vulnerableRanges":[">=2.3.0, <2.3.13"],"patched":["2.3.13"],"from":["GHSA-3vfw-7rcp-3xgm"],"provenance":"source"}],"summary":{"text":"The flaw is in the to_s method of actionpack/lib/action_dispatch/middleware/remote_ip.rb in Ruby on Rails 3.0.5, which fails to validate the X-Forwarded-For header for requests from IP addresses on a Class C network. An attacker who can send requests from a Class C network can supply a crafted X-Forwarded-For header to inject arbitrary text into log files or bypass the intended address parsing.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T07:00:35Z"},"euvd":{"id":"EUVD-2017-0159","exploited":false,"provenance":"source"},"exploits":[{"id":35352,"url":"https://www.exploit-db.com/exploits/35352","title":"Ruby on Rails 3.0.5 - 'WEBrick::HTTPRequest' Module HTTP Header Injection","date":"2011-02-16","verified":true,"provenance":"source"}],"lineage":{"packageHistory":[{"cve":"CVE-2009-3009","published":"2009-09-08","fixed":"2.3.4","kev":false},{"cve":"CVE-2009-3086","published":"2009-09-08","fixed":"2.3.4","kev":false},{"cve":"CVE-2011-3186","published":"2011-08-29","fixed":"2.3.13","kev":false},{"cve":"CVE-2011-3187","published":"2011-08-29","fixed":"2.3.13","kev":false},{"cve":"CVE-2011-0446","published":"2011-02-14","fixed":"3.0.4","kev":false},{"cve":"CVE-2011-0447","published":"2011-02-14","fixed":"3.0.4","kev":false},{"cve":"CVE-2011-0449","published":"2011-02-21","fixed":"3.0.4","kev":false},{"cve":"CVE-2011-2197","published":"2011-06-30","fixed":"3.0.8","kev":false,"link":{"from":"CVE-2011-2197","to":"CVE-2011-3187","relation":"successor","confidence":"low","kind":"sequence","evidence":[{"kind":"version-step","provenance":"source","package":"RubyGems:actionpack","fromFixed":"2.3.12","toFixed":"2.3.13","daysApart":60}]}}],"package":"RubyGems:actionpack"}}