CVE-2011-2932: Activesupport Cross-Site Scripting Vulnerability

MODERATE
Advisory Identifier: GHSA-9fh3-vh3h-q4g3
CWE-79
Published
Advisory Summary

CVE-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

CVE Identifier CVE-2011-2932
GHSA Identifier GHSA-9fh3-vh3h-q4g3
Severity MODERATE
CVSS v3.1 Base Score N/A
CWE Classification CWE-79: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')
Affected Product Activesupport
Package Ecosystem RubyGems
Published Date
Last Updated

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.

activesupport fixed: 2.3.13
Upgrade activesupport to 2.3.13
activesupport fixed: 3.0.10
Upgrade activesupport to 3.0.10
Verify Direct and Transitive Dependencies

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

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."

CVE-2011-2932 Affected Activesupport Versions

2 component(s)
Fixed Versions:
2.3.133.0.10
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

NVD — CVE-2011-2932 NVD
https://nvd.nist.gov/vuln/detail/CVE-2011-2932
Security Fix Commit FIX COMMIT
https://github.com/rails/rails/commit/bfc432574d0b141fd7fe759edfe9b6771dd306bd
bugzilla.redhat.com/show_bug.cgi WEB
https://bugzilla.redhat.com/show_bug.cgi?id=731435
Activesupport Source Repository REPOSITORY
https://github.com/rails/rails
Activesupport Source Repository REPOSITORY
https://github.com/rubysec/ruby-advisory-db/blob/master/gems/activesupport/CVE-2011-2932.yml
Activesupport Security Information SECURITY
http://groups.google.com/group/rubyonrails-security/msg/f1d2749773db9f21?dmode=source&output=gplain
lists.fedoraproject.org/pipermail/package-a... WEB
http://lists.fedoraproject.org/pipermail/package-announce/2011-September/065114.html
lists.fedoraproject.org/pipermail/package-a... WEB
http://lists.fedoraproject.org/pipermail/package-announce/2011-September/065189.html
lists.fedoraproject.org/pipermail/package-a... WEB
http://lists.fedoraproject.org/pipermail/package-announce/2011-September/065212.html
weblog.rubyonrails.org/2011/8/16/ann-rails... WEB
http://weblog.rubyonrails.org/2011/8/16/ann-rails-3-1-0-rc6
Activesupport Security Information SECURITY
http://www.openwall.com/lists/oss-security/2011/08/17/1
Activesupport Security Information SECURITY
http://www.openwall.com/lists/oss-security/2011/08/19/11
Activesupport Security Information SECURITY
http://www.openwall.com/lists/oss-security/2011/08/20/1
Activesupport Security Information SECURITY
http://www.openwall.com/lists/oss-security/2011/08/22/13
Activesupport Security Information SECURITY
http://www.openwall.com/lists/oss-security/2011/08/22/14
Activesupport Security Information SECURITY
http://www.openwall.com/lists/oss-security/2011/08/22/5

Frequently Asked Questions

What is CVE-2011-2932?
CVE-2011-2932 is a security vulnerability in Activesupport involving activesupport Cross-site Scripting vulnerability under CWE-79: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting').
Which Activesupport versions are affected?
Affected versions include releases prior to 2.3.13, 3.0.10 across affected packages: activesupport.
What version fixes CVE-2011-2932?
Upgrading to 2.3.13, 3.0.10 (or the latest patched release for your respective branch) resolves the vulnerability.
Is activesupport affected?
Yes, activesupport is affected in releases prior to 2.3.13, 3.0.10. Upgrade your dependency to 2.3.13, 3.0.10 or later.
What CWE is associated with CVE-2011-2932?
CVE-2011-2932 is classified under CWE-79: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') (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.).
How can I check RubyGems dependencies for CVE-2011-2932?
Run the dependency tree command: 'inspect dependencies for activesupport'. This command lists direct and transitive dependencies in your build configuration so you can verify if a vulnerable version is resolved.
Machine-readable OSV JSON OSV v1.5 Schema
Normalized schema output
{
  "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"
  }
}