Advisory Database
  • Advisories
  • Dependency Scanning
  1. gem
  2. ›
  3. rails
  4. ›
  5. CVE-2008-7248

CVE-2008-7248: Improper Input Validation

October 24, 2017 (updated September 7, 2021)

Ruby on Rails 2.1 before 2.1.3 and 2.2.x before 2.2.2 does not verify tokens for requests with certain content types, which allows remote attackers to bypass cross-site request forgery (CSRF) protection for requests to applications that rely on this protection, as demonstrated using text/plain.

References

  • groups.google.com/group/rubyonrails-security/browse_thread/thread/d741ee286e36e301?hl=en
  • lists.opensuse.org/opensuse-security-announce/2010-03/msg00004.html
  • pseudo-flaw.net/content/web-browsers/form-data-encoding-roundup/
  • secunia.com/advisories/36600
  • secunia.com/advisories/38915
  • weblog.rubyonrails.org/2008/11/18/potential-circumvention-of-csrf-protection-in-rails-2-1
  • www.openwall.com/lists/oss-security/2009/11/28/1
  • www.openwall.com/lists/oss-security/2009/12/02/2
  • www.rorsecurity.info/journal/2008/11/19/circumvent-rails-csrf-protection.html
  • www.vupen.com/english/advisories/2009/2544
  • github.com/advisories/GHSA-8fqx-7pv4-3jwm
  • nvd.nist.gov/vuln/detail/CVE-2008-7248

Code Behaviors & Features

Detect and mitigate CVE-2008-7248 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Learn more about Dependency Scanning →

Affected versions

All versions starting from 2.1.0 before 2.1.3, all versions starting from 2.2.0 before 2.2.2

Fixed versions

  • 2.1.3
  • 2.2.2

Solution

Upgrade to versions 2.1.3, 2.2.2 or above.

Impact 6.8 MEDIUM

AV:N/AC:M/Au:N/C:P/I:P/A:P

Learn more about CVSS

Weakness

  • CWE-20: Improper Input Validation
  • CWE-352: Cross-Site Request Forgery (CSRF)

Source file

gem/rails/CVE-2008-7248.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Wed, 14 May 2025 12:15:13 +0000.