CVE-2011-2197 json
rails Cross-site Scripting vulnerability
published 2011-06-30 15 y ago modified 2026-06-16 4 mo ago also GHSA-v9v4-7jp6-8c73 , EUVD-2017-0312
- cvss
- 4.3
- version 2.0, NVD
- cisa kev
- Not listed
- not in CISA's catalog
- epss
- 2.0%
- EPSS 2.0% chance of exploitation in 30 days, percentile 80%
- public exploits
- 0
- none known
Summary
The cross-site scripting (XSS) prevention feature in Ruby on Rails 2.x before 2.3.12, 3.0.x before 3.0.8, and 3.1.x before 3.1.0.rc2 does not properly handle mutation of safe buffers, which makes it easier for remote attackers to conduct XSS attacks via crafted strings to an application that uses a problematic string method, as demonstrated by the sub method.
Patch / fix
- rubygems actionpack 2.3.12, 3.0.8
- rubygems activesupport 2.3.12, 3.0.8
- github.com/rails/rails@53a2c0b commit
- github.com/rails/rails@ed37964 commit
- groups.google.com/group/rubyonrails-security/msg/663b600d4471e0d4?dmode=sour… patch
- weblog.rubyonrails.org/2011/6/8/potential-xss-vulnerability-in-ruby-on-rails-appl… patch
- openwall.com/lists/oss-security/2011/06/09/2 patch
- openwall.com/lists/oss-security/2011/06/13/9 patch
Vendor advisories
What the vendors themselves say about their products: affected, fixed or not affected, and what to do.
red hat product security vex CVE-2011-2197 updated cvss 4.3
rubygem-activesupport: XSS due improper management of safe buffers
-
Red Hat All currently supported Red Hat productsnot affected: vulnerable code not present
Red Hat CSAF VEX © Red Hat, Inc., from https://security.access.redhat.com/data/csaf/v2/vex/; changed: reduced to product statuses and remediations. CC BY 4.0 · csaf
Exploit prediction
1.96% chance of exploitation in the next 30 days, higher than 80% of all scored CVEs (FIRST EPSS, 2026-11-09).
CVSS scores
| assigned by | version | score | vector |
|---|---|---|---|
| NVD | 2.0 | 4.3 | AV:N/AC:M/Au:N/C:N/I:P/A:N |
Affected packages
| ecosystem | package | affected | fixed in |
|---|---|---|---|
| rubygems | actionpack | >=2.0.0, <2.3.12 >=3.0.0, <3.0.8 |
2.3.12 3.0.8 |
| rubygems | activesupport | >=2.0.0, <2.3.12 >=3.0.0, <3.0.8 |
2.3.12 3.0.8 |
Classification
- Weakness
-
- CWE-79 Improper Neutralization of Input During Web Page Generation
- Technology feeds
References
-
groups.google.com
/group/rubyonrails-security/msg/663b600d4471e0d4?dmode=source&output=gplain
mailing-list, web, patch
-
weblog.rubyonrails.org
/2011/6/8/potential-xss-vulnerability-in-ruby-on-rails-applications
web, patch
-
openwall.com
/lists/oss-security/2011/06/09/2
mailing-list, web, patch
-
openwall.com
/lists/oss-security/2011/06/13/9
mailing-list, web, patch
-
github.com
/rails/rails/commit/53a2c0baf2b128dd4808eca313256f6f4bb8c4cd
web
-
github.com
/rails/rails/commit/ed3796434af6069ced6a641293cf88eef3b284da
web
-
lists.fedoraproject.org
/pipermail/package-announce/2011-June/062090.html
vendor-advisory, web
-
lists.fedoraproject.org
/pipermail/package-announce/2011-July/062514.html
vendor-advisory, web
-
secunia.com
/advisories/44789
third-party-advisory, vendor-advisory
-
nvd.nist.gov
/vuln/detail/CVE-2011-2197
advisory
-
gist.github.com
/NZKoz/b2ceb626fc2bcdfe497f
web
-
github.com
/rails/rails
package
-
github.com
/rubysec/ruby-advisory-db/blob/master/gems/activesupport/CVE-2011-2197.yml
web
Sources
- CVE List CVE-2011-2197
- GitHub Advisory GHSA-v9v4-7jp6-8c73
- NVD CVE-2011-2197
Fencer Intel keeps one entry per vulnerability: the CVE id wins, then GHSA, and records that alias each other are merged, except that two CVEs always keep separate entries. The same data is available as JSON.