CVE-2011-3186: Code Injection
A response splitting flaw in Ruby on Rails 2.3.x was reported [1] that could allow a remote attacker to inject arbitrary HTTP headers into a response due to insufficient sanitization of the values provided for response content types.
This is corrected in upstream 2.3.13 (3.0.0 and later are not vulnerable). Patches are available in the advisory [1] and git [2].
[1] http://groups.google.com/group/rubyonrails-security/browsethread/thread/6ffc93bde0298768 [2] https://github.com/rails/rails/commit/11dafeaa7533be26441a63618be93a03869c83a9
Other sources
CRLF injection vulnerability in actionpack/lib/actioncontroller/response.rb in Ruby on Rails 2.3.x before 2.3.13 allows remote attackers to inject arbitrary HTTP headers and conduct HTTP response splitting attacks via the Content-Type header.
CRLF injection vulnerability in actionpack/lib/actioncontroller/response.rb in Ruby on Rails 2.3.x before 2.3.13 allows remote attackers to inject arbitrary HTTP headers and conduct HTTP response splitting attacks via the Content-Type header.
— MITRE
Affected Software
Remediation
Patch Available
Patch Available
Patch Available
Patch Available
Patch Available
Patch Available
Event History
Frequently Asked Questions
What is the severity of CVE-2011-3186?
CVE-2011-3186 is classified as a medium severity vulnerability due to its potential for remote exploitation.
How do I fix CVE-2011-3186?
To fix CVE-2011-3186, upgrade Ruby on Rails to version 2.3.13 or later.
What versions are affected by CVE-2011-3186?
CVE-2011-3186 affects Ruby on Rails versions 2.3.0 through 2.3.12.
Can CVE-2011-3186 be exploited remotely?
Yes, CVE-2011-3186 can be exploited remotely due to the response splitting flaw.
What types of applications are vulnerable to CVE-2011-3186?
Applications using Ruby on Rails versions 2.3.x prior to 2.3.13 are vulnerable to CVE-2011-3186.