CVE-2011-2197: rubyonrails rails Cross-site Scripting
Vulnerability summary
CVE-2011-2197 is a medium (CVSS 4.3) Cross-site Scripting vulnerability in rubyonrails rails. EPSS estimates a 1.96% chance of exploitation in the next 30 days, higher than 80% of scored vulnerabilities.
Timeline
- 30-06-2011PublishedVulnerability first disclosed.
- 06-08-2024Last modifiedVulnerability information updated.
Description
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.
CVSS metrics
1 score · 1 source · 1 versionEPSS trend
Probability
1.96%
Chance of exploitation in the next 30 days
Percentile
80%
Versus all other CVEs
30-day change
0.00 pp
From 1.96% on 20-09-2026
Known exploited
Compare KEV catalogsNot in any of the 3 tracked catalogs.
Public exploits
0 foundNo public exploits indexed.
Weaknesses
CWE · root causeAffected systems
RubyGems2 products
- actionpack≥ 2.0.0, < 2.3.12 | ≥ 3.0.0, < 3.0.8
- activesupport≥ 2.0.0, < 2.3.12 | ≥ 3.0.0, < 3.0.8
Rubyonrails2 products
- rails2.0.0 | 2.0.0:rc1 | 2.0.0:rc2 | 2.0.1 | 2.0.2 | 2.0.4 | 2.1.0 | 2.1.1 | 2.1.2 | 2.2.0 | 2.2.1 | 2.2.2 | 2.3.2 | 2.3.3 | 2.3.4 | 2.3.9 | 2.3.10 | 2.3.11 | 3.0.0 | 3.0.0:beta | 3.0.0:beta2 | 3.0.0:beta3 | 3.0.0:beta4 | 3.0.0:rc | 3.0.0:rc2 | 3.0.1 | 3.0.1:pre | 3.0.2 | 3.0.2:pre | 3.0.3 | 3.0.4:rc1 | 3.0.5 | 3.0.5:rc1 | 3.0.6 | 3.0.6:rc1 | 3.0.6:rc2 | 3.0.7 | 3.0.7:rc1 | 3.0.7:rc2 | 3.0.8:rc1 | 3.0.8:rc2 | 3.0.8:rc3 | 3.0.8:rc4 | 3.1.0 | 3.1.0:beta1 | 3.1.0:rc1
- ruby_on_rails3.0.4
2 vendors · 4 products
References
13 links- groups.google.com/group/rubyonrails-security/msg/663b600d4471e0d4?dmode=source&output=gplainMailing ListX Refsource MLISTPatchWEB
- lists.fedoraproject.org/pipermail/package-announce/2011-June/062090.htmlVendor AdvisoryX Refsource FEDORAWEB
- lists.fedoraproject.org/pipermail/package-announce/2011-July/062514.htmlVendor AdvisoryX Refsource FEDORAWEB
- weblog.rubyonrails.org/2011/6/8/potential-xss-vulnerability-in-ruby-on-rails-applicationsX Refsource CONFIRMPatchWEB