CVE-2011-2932: Activesupport Cross-Site Scripting Vulnerability
MODERATECVE-2011-2932 is a MODERATE cross-site scripting vulnerability (CWE-79: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')) affecting Activesupport libraries in the RubyGems ecosystem. The issue involves activesupport cross-site scripting vulnerability. Remediation is available by upgrading affected packages to version 2.3.13, 3.0.10.
CVE-2011-2932 at a Glance
How to Fix CVE-2011-2932
To remediate this vulnerability, upgrade all affected Activesupport dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.
Upgrade activesupport to 2.3.13
Upgrade activesupport to 3.0.10
Run the following command in your project directory to verify that all resolved dependencies use the patched release:
inspect dependencies for activesupport
How to Check if You Are Affected
To determine whether your application is affected by CVE-2011-2932, inspect your project dependencies for Activesupport:
inspect dependencies for activesupport
Analyze the terminal output to locate any version of Activesupport in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 2.3.13), your application is affected.
Note: Verify declared build manifests and deployed runtime container environments.
Technical Details
Vulnerability Mechanism & Technical Analysis
This vulnerability is classified under CWE-79: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting'), where the product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users. In Activesupport, software state validation or input boundaries are circumvented during processing. Review the official source advisory statement below for specific affected components, classes, and reproduction details.
Source Advisory Statement
CVE-2011-2932 Affected Activesupport Versions
2 component(s)| Product / Package | Ecosystem | Affected Versions | Fixed Version |
|---|---|---|---|
|
activesupport
|
RubyGems |
≥ 2.0.0
< 2.3.13
|
2.3.13
|
|
activesupport
|
RubyGems |
≥ 3.0.0
< 3.0.10
|
3.0.10
|
References
Frequently Asked Questions
What is CVE-2011-2932?
Which Activesupport versions are affected?
What version fixes CVE-2011-2932?
Is activesupport affected?
What CWE is associated with CVE-2011-2932?
How can I check RubyGems dependencies for CVE-2011-2932?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"schema_version" : "1.4.0",
"id" : "GHSA-9fh3-vh3h-q4g3",
"modified" : "2023-05-12T17:06:32Z",
"published" : "2017-10-24T18:33:38Z",
"aliases" : [ "CVE-2011-2932" ],
"summary" : "activesupport Cross-site Scripting vulnerability",
"details" : "Cross-site scripting (XSS) vulnerability in `activesupport/lib/active_support/core_ext/string/output_safety.r`b in Ruby on Rails 2.x before 2.3.13, 3.0.x before 3.0.10, and 3.1.x before 3.1.0.rc5 allows remote attackers to inject arbitrary web script or HTML via a malformed Unicode string, related to a \"UTF-8 escaping vulnerability.\"",
"severity" : [ ],
"affected" : [ {
"package" : {
"ecosystem" : "RubyGems",
"name" : "activesupport"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "2.0.0"
}, {
"fixed" : "2.3.13"
} ]
} ]
}, {
"package" : {
"ecosystem" : "RubyGems",
"name" : "activesupport"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "3.0.0"
}, {
"fixed" : "3.0.10"
} ]
} ]
} ],
"references" : [ {
"type" : "ADVISORY",
"url" : "https://nvd.nist.gov/vuln/detail/CVE-2011-2932"
}, {
"type" : "WEB",
"url" : "https://github.com/rails/rails/commit/bfc432574d0b141fd7fe759edfe9b6771dd306bd"
}, {
"type" : "WEB",
"url" : "https://bugzilla.redhat.com/show_bug.cgi?id=731435"
}, {
"type" : "PACKAGE",
"url" : "https://github.com/rails/rails"
}, {
"type" : "WEB",
"url" : "https://github.com/rubysec/ruby-advisory-db/blob/master/gems/activesupport/CVE-2011-2932.yml"
}, {
"type" : "WEB",
"url" : "http://groups.google.com/group/rubyonrails-security/msg/f1d2749773db9f21?dmode=source&output=gplain"
}, {
"type" : "WEB",
"url" : "http://lists.fedoraproject.org/pipermail/package-announce/2011-September/065114.html"
}, {
"type" : "WEB",
"url" : "http://lists.fedoraproject.org/pipermail/package-announce/2011-September/065189.html"
}, {
"type" : "WEB",
"url" : "http://lists.fedoraproject.org/pipermail/package-announce/2011-September/065212.html"
}, {
"type" : "WEB",
"url" : "http://weblog.rubyonrails.org/2011/8/16/ann-rails-3-1-0-rc6"
}, {
"type" : "WEB",
"url" : "http://www.openwall.com/lists/oss-security/2011/08/17/1"
}, {
"type" : "WEB",
"url" : "http://www.openwall.com/lists/oss-security/2011/08/19/11"
}, {
"type" : "WEB",
"url" : "http://www.openwall.com/lists/oss-security/2011/08/20/1"
}, {
"type" : "WEB",
"url" : "http://www.openwall.com/lists/oss-security/2011/08/22/13"
}, {
"type" : "WEB",
"url" : "http://www.openwall.com/lists/oss-security/2011/08/22/14"
}, {
"type" : "WEB",
"url" : "http://www.openwall.com/lists/oss-security/2011/08/22/5"
} ],
"database_specific" : {
"cwe_ids" : [ "CWE-79" ],
"severity" : "MODERATE",
"github_reviewed" : true,
"github_reviewed_at" : "2020-06-16T21:28:22Z",
"nvd_published_at" : "2011-08-29T18:55:01Z"
}
}