CVE-2008-5189: Rails Rails Is Vulnerable To CRLF Vulnerability
MODERATECVE-2008-5189 is a MODERATE rails is vulnerable to crlf vulnerability (CWE-352: Cross-Site Request Forgery (CSRF)) affecting Rails libraries in the RubyGems ecosystem. The issue involves rails is vulnerable to crlf injection. Remediation is available by upgrading affected packages to version 2.0.5.
CVE-2008-5189 at a Glance
How to Fix CVE-2008-5189
To remediate this vulnerability, upgrade all affected Rails dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.
Upgrade rails to 2.0.5
Run the following command in your project directory to verify that all resolved dependencies use the patched release:
inspect dependencies for rails
How to Check if You Are Affected
To determine whether your application is affected by CVE-2008-5189, inspect your project dependencies for Rails:
inspect dependencies for rails
Analyze the terminal output to locate any version of Rails in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 2.0.5), your application is affected.
Note: Verify declared build manifests and deployed runtime container environments.
Technical Details
Vulnerability Mechanism & Technical Analysis
This vulnerability is classified under CWE-352: Cross-Site Request Forgery (CSRF), where the web application does not, or cannot, sufficiently verify whether a request was intentionally provided by the user who sent the request, which could have originated from an unauthorized actor. In Rails, software state validation or input boundaries are circumvented during processing. Review the official source advisory statement below for specific affected components, classes, and reproduction details.
Source Advisory Statement
CVE-2008-5189 Affected Rails Versions
1 component(s)| Product / Package | Ecosystem | Affected Versions | Fixed Version |
|---|---|---|---|
|
rails
|
RubyGems |
< 2.0.5
|
2.0.5
|
References
Frequently Asked Questions
What is CVE-2008-5189?
Which Rails versions are affected?
What version fixes CVE-2008-5189?
Is rails affected?
What CWE is associated with CVE-2008-5189?
How can I check RubyGems dependencies for CVE-2008-5189?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"schema_version" : "1.4.0",
"id" : "GHSA-jmgf-p46x-982h",
"modified" : "2025-04-09T16:49:45Z",
"published" : "2017-10-24T18:33:38Z",
"aliases" : [ "CVE-2008-5189" ],
"summary" : "rails is vulnerable to CRLF injection",
"details" : "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.",
"severity" : [ ],
"affected" : [ {
"package" : {
"ecosystem" : "RubyGems",
"name" : "rails"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "0"
}, {
"fixed" : "2.0.5"
} ]
} ]
} ],
"references" : [ {
"type" : "ADVISORY",
"url" : "https://nvd.nist.gov/vuln/detail/CVE-2008-5189"
}, {
"type" : "WEB",
"url" : "https://github.com/rubysec/ruby-advisory-db/blob/master/gems/rails/CVE-2008-5189.yml"
}, {
"type" : "PACKAGE",
"url" : "http://github.com/rails/rails"
}, {
"type" : "WEB",
"url" : "http://github.com/rails/rails/commit/7282ed863ca7e6f928bae9162c9a63a98775a19d"
}, {
"type" : "WEB",
"url" : "http://lists.opensuse.org/opensuse-security-announce/2008-12/msg00002.html"
}, {
"type" : "WEB",
"url" : "http://weblog.rubyonrails.org/2008/10/19/rails-2-0-5-redirect_to-and-offset-limit-sanitizing"
}, {
"type" : "WEB",
"url" : "http://weblog.rubyonrails.org/2008/10/19/response-splitting-risk"
} ],
"database_specific" : {
"cwe_ids" : [ "CWE-352" ],
"severity" : "MODERATE",
"github_reviewed" : true,
"github_reviewed_at" : "2020-06-16T21:43:46Z",
"nvd_published_at" : "2008-11-21T12:00:00Z"
}
}