CVE-2008-5189 rails is vulnerable to CRLF injection
Remote attackers can inject HTTP headers and split responses via crafted URLs in Ruby on Rails redirect functions.
- Exploited in the wild
- Not known
- Login needed
- Not needed
- Attackable
- Over the internet
- Victim action needed
- Not needed
- Fix
- Available
What is CVE-2008-5189?
CVE-2008-5189 is a medium-severity vulnerability in Rubyonrails Rails, published on 21 Nov 2008. An attacker can exploit it over the internet without logging in, with no action from the victim.
Official description
CRLF injection vulnerability in Ruby on Rails before 2.0.5 allows remote attackers to inject arbitrary HTTP headers and conduct HTTP response splitting attacks via a crafted URL to the redirect_to function.
Weakness: CWE-352
Which versions are affected by CVE-2008-5189?
2 open source packages ship an affected version, including rails. It affects 2 products.
| Package | Affected | Fixed in |
|---|---|---|
rails RubyGems | All versions | 2.0.5 |
rails RubyGems | All versions | 2.0.5 |
Products include Rubyonrails Rails, Rubyonrails Ruby on Rails.
How do I fix CVE-2008-5189?
Upgrade rails to 2.0.5 or later.
Is CVE-2008-5189 being exploited?
There is no known exploitation of CVE-2008-5189 in the wild and no public exploit code.
Other vulnerabilities in Rubyonrails Rails
- CVE-2013-0277 Active Record contains deserialization of arbitrary YAML
- CVE-2017-17916 SQL injection in n/a
- CVE-2017-17917 SQL injection in n/a
- CVE-2026-33195 Rails Active Storage has possible Path Traversal in DiskService
- CVE-2024-26142 Rails possible ReDoS vulnerability in Accept header parsing in Action Dispatch
Sources
Also known as DEBIAN-CVE-2008-5189, GHSA-jmgf-p46x-982h.