CVE-2008-5189 rails is vulnerable to CRLF injection

Medium 5.0 Published Updated

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.

PackageAffectedFixed in
rails RubyGemsAll versions2.0.5
rails RubyGemsAll versions2.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.

All Rubyonrails Rails vulnerabilities

Sources

Also known as DEBIAN-CVE-2008-5189, GHSA-jmgf-p46x-982h.

Is CVE-2008-5189 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free