CVE-2012-3463: Actionpack Cross-Site Scripting Vulnerability

MODERATE
Advisory Identifier: GHSA-98mf-8f57-64qf
CWE-79
Published
Advisory Summary

CVE-2012-3463 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 actionpack cross-site scripting vulnerability. Remediation is available by upgrading affected packages to version 3.0.17, 3.1.8, 3.2.8.

CVE-2012-3463 at a Glance

CVE Identifier CVE-2012-3463
GHSA Identifier GHSA-98mf-8f57-64qf
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-2012-3463

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: 3.0.17
Upgrade actionpack to 3.0.17
actionpack fixed: 3.1.8
Upgrade actionpack to 3.1.8
actionpack fixed: 3.2.8
Upgrade actionpack to 3.2.8
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-2012-3463, 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 3.0.17), 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

Cross-site scripting (XSS) vulnerability in `actionpack/lib/action_view/helpers/form_tag_helper.rb` in Ruby on Rails 3.x before 3.0.17, 3.1.x before 3.1.8, and 3.2.x before 3.2.8 allows remote attackers to inject arbitrary web script or HTML via the `prompt` field to the `select_tag` helper.

CVE-2012-3463 Affected Actionpack Versions

3 component(s)
Fixed Versions:
3.0.173.1.83.2.8
Product / Package Ecosystem Affected Versions Fixed Version
actionpack
RubyGems
≥ 3.0
< 3.0.17
3.0.17
actionpack
RubyGems
≥ 3.1.0
< 3.1.8
3.1.8
actionpack
RubyGems
≥ 3.2.0
< 3.2.8
3.2.8

References

Frequently Asked Questions

What is CVE-2012-3463?
CVE-2012-3463 is a security vulnerability in Actionpack involving actionpack Cross-site Scripting vulnerability 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 3.0.17, 3.1.8, 3.2.8 across affected packages: actionpack.
What version fixes CVE-2012-3463?
Upgrading to 3.0.17, 3.1.8, 3.2.8 (or the latest patched release for your respective branch) resolves the vulnerability.
Is actionpack affected?
Yes, actionpack is affected in releases prior to 3.0.17, 3.1.8, 3.2.8. Upgrade your dependency to 3.0.17, 3.1.8, 3.2.8 or later.
What CWE is associated with CVE-2012-3463?
CVE-2012-3463 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-2012-3463?
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-98mf-8f57-64qf",
  "modified" : "2023-01-23T16:34:24Z",
  "published" : "2017-10-24T18:33:37Z",
  "aliases" : [ "CVE-2012-3463" ],
  "summary" : "actionpack Cross-site Scripting vulnerability",
  "details" : "Cross-site scripting (XSS) vulnerability in `actionpack/lib/action_view/helpers/form_tag_helper.rb` in Ruby on Rails 3.x before 3.0.17, 3.1.x before 3.1.8, and 3.2.x before 3.2.8 allows remote attackers to inject arbitrary web script or HTML via the `prompt` field to the `select_tag` helper.",
  "severity" : [ ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "RubyGems",
      "name" : "actionpack"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "3.0"
      }, {
        "fixed" : "3.0.17"
      } ]
    } ]
  }, {
    "package" : {
      "ecosystem" : "RubyGems",
      "name" : "actionpack"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "3.1.0"
      }, {
        "fixed" : "3.1.8"
      } ]
    } ]
  }, {
    "package" : {
      "ecosystem" : "RubyGems",
      "name" : "actionpack"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "3.2.0"
      }, {
        "fixed" : "3.2.8"
      } ]
    } ]
  } ],
  "references" : [ {
    "type" : "ADVISORY",
    "url" : "https://nvd.nist.gov/vuln/detail/CVE-2012-3463"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/rails/rails/commit/6d0526db91afb0675c2ad3d871529d1536303c64"
  }, {
    "type" : "WEB",
    "url" : "https://groups.google.com/g/rubyonrails-security/c/fV3QUToSMSw/m/eHBSFOUYHpYJ?pli=1"
  }, {
    "type" : "WEB",
    "url" : "https://groups.google.com/group/rubyonrails-security/msg/961e18e514527078?dmode=source&output=gplain"
  }, {
    "type" : "WEB",
    "url" : "http://rhn.redhat.com/errata/RHSA-2013-0154.html"
  }, {
    "type" : "WEB",
    "url" : "http://weblog.rubyonrails.org/2012/8/9/ann-rails-3-2-8-has-been-released"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-79" ],
    "severity" : "MODERATE",
    "github_reviewed" : true,
    "github_reviewed_at" : "2020-06-16T21:27:55Z",
    "nvd_published_at" : "2012-08-10T10:34:47Z"
  }
}