#VU116156 Input validation error in Ruby on Rails - CVE-2011-3187

 

#VU116156 Input validation error in Ruby on Rails - CVE-2011-3187

Published: September 29, 2025


Vulnerability identifier: #VU116156
Vulnerability risk: Medium
CVSSv4.0: CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:L/VI:N/VA:N/SC:N/SI:N/SA:N/E:P/U:Green
CVE-ID: CVE-2011-3187
CWE-ID: CWE-20
Exploitation vector: Remote access
Exploit availability: Public exploit is available
Vulnerable software:
Ruby on Rails
Software vendor:
Rails

Description

The vulnerability allows a remote attacker to gain access to potentially sensitive information.

The vulnerability exists due to to_s method in actionpack/lib/action_dispatch/middleware/remote_ip.rb in Ruby on Rails does not validate the X-Forwarded-For header in requests from IP addresses on a Class C network. A remote attacker can pass specially crafted input to the application and gain access to potentially sensitive information.


Remediation

Install updates from vendor's website.

External links