Live threats

All CVEs / Rubyonrails

CVE-2011-3187Rubyonrails Rails

Medium 4.3 No auth needed

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.

Original NVD text.

What to do

  1. Apply the vendor's security update for Rails.
  2. It can be exploited without authentication: if you cannot patch now, restrict Internet access to the affected service.

Affected packages

EcosystemPackageAffected versionsFixed inHow 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)

VendorProductVersions
rubyonrailsrails3.0.5

Official sources

References

Links published by the sources. Open them with care.