Skip to content
OpenAdvisories
Medium Public exploit CVE-2011-3187 EUVD-2017-0159GHSA-3vfw-7rcp-3xgm

actionpack Improper Input Validation vulnerability

Published Aug 29, 2011 · Updated Aug 6, 2024 · Assigned by redhat

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.

Fixed in Linux distributions

Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.

ReleasePackageFixed inAdvisory
Debian 14 rails No fix yet —
Debian 13 rails No fix yet —
Debian 12 rails No fix yet —

Public exploits

Exploit or proof-of-concept code for this vulnerability is publicly available, which lowers the bar for attackers. Treat it as a reason to patch sooner.

Third-party code, not reviewed by us. Public PoCs are sometimes fake or contain malware. Read the code first and run it only in an isolated lab, against systems you are authorised to test.

Exploit-DB 1

Sources: PoC-in-GitHub, Metasploit Framework, Exploit-DB — updated daily. Only links are listed; no exploit code is hosted here.

Affected packages

EcosystemPackageAffectedFixedRecord
RubyGems actionpack >= 2.3.0, < 2.3.13 2.3.13 GHSA-3vfw-7rcp-3xgm

References