Description
Cross-site scripting (XSS) vulnerability in Ruby on Rails 3.0.x before 3.0.12, 3.1.x before 3.1.4, and 3.2.x before 3.2.2 allows remote attackers to inject arbitrary web script or HTML via vectors involving a SafeBuffer object that is manipulated through certain methods.
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.14 | — |
| Debian 13 | rails | 2.3.14 | — |
| Debian 12 | rails | 2.3.14 | — |
Affected packages
| Ecosystem | Package | Affected | Fixed | Record |
|---|---|---|---|---|
| RubyGems | activesupport | >= 3.0.0, < 3.0.12 | 3.0.12 | GHSA-qv8p-v9qw-wc7g |
| RubyGems | activesupport | >= 3.1.0, < 3.1.4 | 3.1.4 | GHSA-qv8p-v9qw-wc7g |
| RubyGems | activesupport | >= 3.2.0, < 3.2.2 | 3.2.2 | GHSA-qv8p-v9qw-wc7g |
References
- FEDORA-2012-3321 vendor-advisory
- [oss-security] 20120302 Re: CVE Request -- Ruby on Rails (v3.0.12) / rubygem-actionpack: Two XSS flaws mailing-list
- https://bugzilla.redhat.com/show_bug.cgi?id=799275
- [oss-security] 20120302 CVE Request -- Ruby on Rails (v3.0.12) / rubygem-actionpack: Two XSS flaws mailing-list
- [rubyonrails-security] 20120301 Possible XSS Security Vulnerability in SafeBuffer#[] mailing-list
- http://weblog.rubyonrails.org/2012/3/1/ann-rails-3-0-12-has-been-released