Description
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.
Fixed in Linux distributions
Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.
Debian
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Debian 14 | rails | 2.3.11-0.1 | — |
| Debian 13 | rails | 2.3.11-0.1 | — |
| Debian 12 | rails | 2.3.11-0.1 | — |
| Debian 6.0 | rails | 2.3.5-1.2+squeeze0.1 | DSA-2247-1 |
| Debian 5.0 | rails | 2.1.0-7+lenny0.1 | DSA-2247-1 |
Affected packages
| Ecosystem | Package | Affected | Fixed | Record |
|---|---|---|---|---|
| RubyGems | actionpack | >= 2.1.0, < 2.3.11 | 2.3.11 | GHSA-24fg-p96v-hxh8 |
| RubyGems | actionpack | >= 3.0.0, < 3.0.4 | 3.0.4 | GHSA-24fg-p96v-hxh8 |
Advisories 1
- DSA-2247-1 rails - several vulnerabilities Debian Security (DSA / DLA) · Mar 9, 2026
References
- ADV-2011-0587 vdb-entry
- http://weblog.rubyonrails.org/2011/2/8/csrf-protection-bypass-in-ruby-on-rails
- 1025060 vdb-entry
- FEDORA-2011-2138 vendor-advisory
- 46291 vdb-entry
- DSA-2247 vendor-advisory
- [rubyonrails-security] 20110209 CSRF Protection Bypass in Ruby on Rails mailing-list
- FEDORA-2011-4358 vendor-advisory
- 43274 third-party-advisory
- ADV-2011-0877 vdb-entry
- FEDORA-2011-2133 vendor-advisory
- 43666 third-party-advisory