Advisory Database
  • Advisories
  • Dependency Scanning
  1. gem
  2. ›
  3. actionpack
  4. ›
  5. CVE-2011-0447

CVE-2011-0447: Cross-Site Request Forgery (CSRF)

October 24, 2017 (updated May 26, 2023)

Ruby on Rails 2.1.x, 2.2.x, and 2.3.x before 2.3.11, and 3.x before 3.0.4, does not properly validate HTTP requests that contain an X-Requested-With header, which makes it easier for remote attackers to conduct cross-site request forgery (CSRF) attacks via forged (1) AJAX or (2) API requests that leverage “combinations of browser plugins and HTTP redirects,” a related issue to CVE-2011-0696.

References

  • groups.google.com/group/rubyonrails-security/msg/c22ea1668c0d181c?dmode=source&output=gplain
  • lists.fedoraproject.org/pipermail/package-announce/2011-April/057650.html
  • lists.fedoraproject.org/pipermail/package-announce/2011-March/055074.html
  • lists.fedoraproject.org/pipermail/package-announce/2011-March/055088.html
  • weblog.rubyonrails.org/2011/2/8/csrf-protection-bypass-in-ruby-on-rails
  • www.debian.org/security/2011/dsa-2247
  • github.com/advisories/GHSA-24fg-p96v-hxh8
  • github.com/rails/rails/commit/66ce3843d32e9f2ac3b1da20067af53019bbb034
  • github.com/rails/rails/commit/7e86f9b4d2b7dfa974c10ae7e6d8ef90f3d77f06
  • github.com/rubysec/ruby-advisory-db/blob/master/gems/actionpack/CVE-2011-0447.yml
  • nvd.nist.gov/vuln/detail/CVE-2011-0447
  • web.archive.org/web/20120527023027/http://www.securityfocus.com/bid/46291
  • web.archive.org/web/20170223045008/http://www.securitytracker.com/id?1025060

Code Behaviors & Features

Detect and mitigate CVE-2011-0447 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.3.11, all versions starting from 3.0.0 before 3.0.4

Fixed versions

  • 2.3.11
  • 3.0.4

Solution

Upgrade to versions 2.3.11, 3.0.4 or above.

Impact 6.8 MEDIUM

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

Learn more about CVSS

Weakness

  • CWE-352: Cross-Site Request Forgery (CSRF)
  • CWE-352: Cross-Site Request Forgery (CSRF)

Source file

gem/actionpack/CVE-2011-0447.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:28 +0000.