CVE-2011-3624
Description
Various methods in WEBrick::HTTPRequest in Ruby 1.9.2 and 1.8.7 and earlier do not validate the X-Forwarded-For, X-Forwarded-Host and X-Forwarded-Server headers in requests, which might allow remote attackers to inject arbitrary text into log files or bypass intended address parsing via a crafted header.
AI Insight
LLM-synthesized narrative grounded in this CVE's description and references.
Ruby WEBrick::HTTPRequest in 1.9.2 and 1.8.7 does not validate X-Forwarded-* headers, allowing log injection or address bypass.
Vulnerability
The vulnerability resides in various methods of WEBrick::HTTPRequest in Ruby versions 1.9.2-p290, 1.8.7-p352, and earlier. The server does not validate the X-Forwarded-For, X-Forwarded-Host, and X-Forwarded-Server headers in incoming HTTP requests. This allows an attacker to inject arbitrary text into log files or bypass intended address parsing by supplying crafted values in these headers. [1][2][3]
Exploitation
An attacker can send a crafted HTTP request containing arbitrary data in the X-Forwarded-For, X-Forwarded-Host, or X-Forwarded-Server headers. No special network position is required beyond the ability to send a request to the server. The attacker does not need authentication; the exploitation occurs simply by submitting the malicious header. Successful injection into logs occurs when the server logs the header values. [2][3]
Impact
A successful exploit allows an attacker to inject arbitrary text into log files, potentially misleading administrators or obscuring other malicious activities. Additionally, the attacker can bypass intended address parsing, which could affect security controls or auditing that rely on the parsed address values. The impact is considered low, as it does not directly lead to remote code execution or data compromise, but it can be used to corrupt log data or evade address-based restrictions. [2][3]
Mitigation
Red Hat and other distributors have rated the issue as low severity. The fix was not straightforward at the time due to the complexity of handling multiple headers. Upgrading to a patched Ruby version was recommended; for example, Red Hat issued updates for ruby packages as part of their normal maintenance. Users should apply the latest updates from their vendor. No specific fixed version number was provided, but the issue was addressed in later releases. [1][3]
AI Insight generated on May 26, 2026. Synthesized from this CVE's description and the cited reference URLs; citations are validated against the source bundle.
Affected products
2Patches
0No patches discovered yet.
Vulnerability mechanics
AI mechanics synthesis has not run for this CVE yet.
References
4- access.redhat.com/security/cve/cve-2011-3624mitrex_refsource_MISC
- bugzilla.redhat.com/show_bug.cgimitrex_refsource_MISC
- redmine.ruby-lang.org/issues/5418mitrex_refsource_MISC
- security-tracker.debian.org/tracker/CVE-2011-3624mitrex_refsource_MISC
News mentions
0No linked articles in our index yet.