CVE-2011-0446: Actionpack Cross-Site Scripting Vulnerability

MODERATE
Advisory Identifier: GHSA-75w6-p6mg-vh8j
CWE-79
Published
Advisory Summary

CVE-2011-0446 is a MODERATE cross-site scripting vulnerability (CWE-79: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')) affecting Actionpack libraries in the RubyGems ecosystem. The issue involves rails actionpack gem vulnerable to cross-site scripting. Remediation is available by upgrading affected packages to version 2.3.11, 3.0.4.

CVE-2011-0446 at a Glance

CVE Identifier CVE-2011-0446
GHSA Identifier GHSA-75w6-p6mg-vh8j
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 Actionpack
Package Ecosystem RubyGems
Published Date
Last Updated

How to Fix CVE-2011-0446

To remediate this vulnerability, upgrade all affected Actionpack dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.

actionpack fixed: 2.3.11
Upgrade actionpack to 2.3.11
actionpack fixed: 3.0.4
Upgrade actionpack to 3.0.4
actionview fixed: 2.3.11
Upgrade actionview to 2.3.11
actionview fixed: 3.0.4
Upgrade actionview to 3.0.4
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 actionpack

How to Check if You Are Affected

To determine whether your application is affected by CVE-2011-0446, inspect your project dependencies for Actionpack:

inspect dependencies for actionpack

Analyze the terminal output to locate any version of Actionpack in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 2.3.11), 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 Actionpack, 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

Multiple cross-site scripting (XSS) vulnerabilities in the `mail_to` helper in Ruby on Rails before 2.3.11, and 3.x before 3.0.4, when javascript encoding is used, allow remote attackers to inject arbitrary web script or HTML via a crafted (1) name or (2) email value.

CVE-2011-0446 Affected Actionpack Versions

4 component(s)
Fixed Versions:
2.3.113.0.4
Product / Package Ecosystem Affected Versions Fixed Version
actionpack
RubyGems
< 2.3.11
2.3.11
actionpack
RubyGems
≥ 3.0.0
< 3.0.4
3.0.4
actionview
RubyGems
< 2.3.11
2.3.11
actionview
RubyGems
≥ 3.0.0
< 3.0.4
3.0.4

References

NVD — CVE-2011-0446 NVD
https://nvd.nist.gov/vuln/detail/CVE-2011-0446
Security Fix Commit FIX COMMIT
https://github.com/rails/rails/commit/abe97736b8316f1b714cac56c115c0779aa73217
Security Fix Commit FIX COMMIT
https://github.com/rails/rails/commit/e3dd2107c57a8efaaea5d61cf8da65f7444760b2
Actionpack Source Repository REPOSITORY
https://github.com/rails/rails
Actionpack Source Repository REPOSITORY
https://github.com/rubysec/ruby-advisory-db/blob/master/gems/actionpack/CVE-2011-0446.yml
Actionpack Source Repository REPOSITORY
https://github.com/rubysec/ruby-advisory-db/blob/master/gems/actionview/CVE-2011-0446.yml
Actionpack Security Information SECURITY
https://groups.google.com/g/rubyonrails-security/c/8CpI7egxX4E/m/SmtqtyOKWzYJ
web.archive.org/web/20111225083933/... WEB
https://web.archive.org/web/20111225083933/http://secunia.com/advisories/43274
web.archive.org/web/20111225083933/... WEB
https://web.archive.org/web/20111225083933/http://secunia.com/advisories/43666
Actionpack Security Information SECURITY
https://web.archive.org/web/20120527023027/http://www.securityfocus.com/bid/46291
Actionpack Security Information SECURITY
https://web.archive.org/web/20200812054342/http://www.securitytracker.com/id?1025064
Actionpack Security Information SECURITY
http://groups.google.com/group/rubyonrails-security/msg/365b8a23b76a6b4a?dmode=source&output=gplain
lists.fedoraproject.org/pipermail/package-a... WEB
http://lists.fedoraproject.org/pipermail/package-announce/2011-April/057650.html
lists.fedoraproject.org/pipermail/package-a... WEB
http://lists.fedoraproject.org/pipermail/package-announce/2011-March/055074.html
lists.fedoraproject.org/pipermail/package-a... WEB
http://lists.fedoraproject.org/pipermail/package-announce/2011-March/055088.html
Actionpack Security Information SECURITY
http://www.debian.org/security/2011/dsa-2247

Frequently Asked Questions

What is CVE-2011-0446?
CVE-2011-0446 is a security vulnerability in Actionpack involving Rails actionpack gem vulnerable to Cross-site Scripting under CWE-79: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting').
Which Actionpack versions are affected?
Affected versions include releases prior to 2.3.11, 3.0.4 across affected packages: actionpack, actionview.
What version fixes CVE-2011-0446?
Upgrading to 2.3.11, 3.0.4 (or the latest patched release for your respective branch) resolves the vulnerability.
Is actionpack affected?
Yes, actionpack is affected in releases prior to 2.3.11, 3.0.4. Upgrade your dependency to 2.3.11, 3.0.4 or later.
Is actionview affected?
Yes, actionview is affected in releases prior to 2.3.11, 3.0.4. Upgrade your dependency to 2.3.11, 3.0.4 or later.
What CWE is associated with CVE-2011-0446?
CVE-2011-0446 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-0446?
Run the dependency tree command: 'inspect dependencies for actionpack'. 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-75w6-p6mg-vh8j",
  "modified" : "2023-05-26T16:09:49Z",
  "published" : "2017-10-24T18:33:38Z",
  "aliases" : [ "CVE-2011-0446" ],
  "summary" : "Rails actionpack gem vulnerable to Cross-site Scripting",
  "details" : "Multiple cross-site scripting (XSS) vulnerabilities in the `mail_to` helper in Ruby on Rails before 2.3.11, and 3.x before 3.0.4, when javascript encoding is used, allow remote attackers to inject arbitrary web script or HTML via a crafted (1) name or (2) email value.",
  "severity" : [ ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "RubyGems",
      "name" : "actionpack"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0"
      }, {
        "fixed" : "2.3.11"
      } ]
    } ]
  }, {
    "package" : {
      "ecosystem" : "RubyGems",
      "name" : "actionpack"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "3.0.0"
      }, {
        "fixed" : "3.0.4"
      } ]
    } ]
  }, {
    "package" : {
      "ecosystem" : "RubyGems",
      "name" : "actionview"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0"
      }, {
        "fixed" : "2.3.11"
      } ]
    } ]
  }, {
    "package" : {
      "ecosystem" : "RubyGems",
      "name" : "actionview"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "3.0.0"
      }, {
        "fixed" : "3.0.4"
      } ]
    } ]
  } ],
  "references" : [ {
    "type" : "ADVISORY",
    "url" : "https://nvd.nist.gov/vuln/detail/CVE-2011-0446"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/rails/rails/commit/abe97736b8316f1b714cac56c115c0779aa73217"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/rails/rails/commit/e3dd2107c57a8efaaea5d61cf8da65f7444760b2"
  }, {
    "type" : "PACKAGE",
    "url" : "https://github.com/rails/rails"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/rubysec/ruby-advisory-db/blob/master/gems/actionpack/CVE-2011-0446.yml"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/rubysec/ruby-advisory-db/blob/master/gems/actionview/CVE-2011-0446.yml"
  }, {
    "type" : "WEB",
    "url" : "https://groups.google.com/g/rubyonrails-security/c/8CpI7egxX4E/m/SmtqtyOKWzYJ"
  }, {
    "type" : "WEB",
    "url" : "https://web.archive.org/web/20111225083933/http://secunia.com/advisories/43274"
  }, {
    "type" : "WEB",
    "url" : "https://web.archive.org/web/20111225083933/http://secunia.com/advisories/43666"
  }, {
    "type" : "WEB",
    "url" : "https://web.archive.org/web/20120527023027/http://www.securityfocus.com/bid/46291"
  }, {
    "type" : "WEB",
    "url" : "https://web.archive.org/web/20200812054342/http://www.securitytracker.com/id?1025064"
  }, {
    "type" : "WEB",
    "url" : "http://groups.google.com/group/rubyonrails-security/msg/365b8a23b76a6b4a?dmode=source&output=gplain"
  }, {
    "type" : "WEB",
    "url" : "http://lists.fedoraproject.org/pipermail/package-announce/2011-April/057650.html"
  }, {
    "type" : "WEB",
    "url" : "http://lists.fedoraproject.org/pipermail/package-announce/2011-March/055074.html"
  }, {
    "type" : "WEB",
    "url" : "http://lists.fedoraproject.org/pipermail/package-announce/2011-March/055088.html"
  }, {
    "type" : "WEB",
    "url" : "http://www.debian.org/security/2011/dsa-2247"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-79" ],
    "severity" : "MODERATE",
    "github_reviewed" : true,
    "github_reviewed_at" : "2020-06-16T21:21:29Z",
    "nvd_published_at" : "2011-02-14T21:00:03Z"
  }
}