CVE-2011-2929: Actionpack Actionpack Improper Input Validation Vulnerability Vulnerability

MODERATE
Advisory Identifier: GHSA-r7q2-5gqg-6c7q
CWE-20
Published
Advisory Summary

CVE-2011-2929 is a MODERATE actionpack improper input validation vulnerability vulnerability (CWE-20: Improper Input Validation) affecting Actionpack libraries in the RubyGems ecosystem. The issue involves actionpack improper input validation vulnerability. Remediation is available by upgrading affected packages to version 3.0.10.

CVE-2011-2929 at a Glance

CVE Identifier CVE-2011-2929
GHSA Identifier GHSA-r7q2-5gqg-6c7q
Severity MODERATE
CVSS v3.1 Base Score N/A
CWE Classification CWE-20: Improper Input Validation
Affected Product Actionpack
Package Ecosystem RubyGems
Published Date
Last Updated

How to Fix CVE-2011-2929

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.10
Upgrade actionpack 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 actionpack

How to Check if You Are Affected

To determine whether your application is affected by CVE-2011-2929, 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.10), 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-20: Improper Input Validation, where the product receives input or data, but it does not validate or incorrectly validates that the input has the properties that are required to process the data safely and correctly. 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

The template selection functionality in `actionpack/lib/action_view/template/resolver.rb` in Ruby on Rails 3.0.x before 3.0.10 and 3.1.x before 3.1.0.rc6 does not properly handle glob characters, which allows remote attackers to render arbitrary views via a crafted URL, related to a "filter skipping vulnerability."

CVE-2011-2929 Affected Actionpack Versions

1 component(s)
Fixed Versions:
3.0.10
Product / Package Ecosystem Affected Versions Fixed Version
actionpack
RubyGems
≥ 3.0.0
< 3.0.10
3.0.10

References

NVD — CVE-2011-2929 NVD
https://nvd.nist.gov/vuln/detail/CVE-2011-2929
Security Fix Commit FIX COMMIT
https://github.com/rails/rails/commit/5f94b93279f6d0682fafb237c301302c107a9552
bugzilla.redhat.com/show_bug.cgi WEB
https://bugzilla.redhat.com/show_bug.cgi?id=731432
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-2929.yml
rubyonrails.org/2011/8/16/ann-rails... WEB
https://rubyonrails.org/2011/8/16/ann-rails-3-1-0-rc6
Actionpack Security Information SECURITY
http://groups.google.com/group/rubyonrails-security/msg/cbbbba6e4f7eaf61?dmode=source&output=gplain
lists.fedoraproject.org/pipermail/package-a... WEB
http://lists.fedoraproject.org/pipermail/package-announce/2011-September/065109.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
Actionpack Security Information SECURITY
http://www.openwall.com/lists/oss-security/2011/08/17/1
Actionpack Security Information SECURITY
http://www.openwall.com/lists/oss-security/2011/08/19/11
Actionpack Security Information SECURITY
http://www.openwall.com/lists/oss-security/2011/08/20/1
Actionpack Security Information SECURITY
http://www.openwall.com/lists/oss-security/2011/08/22/13
Actionpack Security Information SECURITY
http://www.openwall.com/lists/oss-security/2011/08/22/14
Actionpack Security Information SECURITY
http://www.openwall.com/lists/oss-security/2011/08/22/5

Frequently Asked Questions

What is CVE-2011-2929?
CVE-2011-2929 is a security vulnerability in Actionpack involving actionpack Improper Input Validation vulnerability under CWE-20: Improper Input Validation.
Which Actionpack versions are affected?
Affected versions include releases prior to 3.0.10 across affected packages: actionpack.
What version fixes CVE-2011-2929?
Upgrading to 3.0.10 (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.10. Upgrade your dependency to 3.0.10 or later.
What CWE is associated with CVE-2011-2929?
CVE-2011-2929 is classified under CWE-20: Improper Input Validation (The product receives input or data, but it does not validate or incorrectly validates that the input has the properties that are required to process the data safely and correctly.).
How can I check RubyGems dependencies for CVE-2011-2929?
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-r7q2-5gqg-6c7q",
  "modified" : "2023-05-12T17:22:22Z",
  "published" : "2017-10-24T18:33:38Z",
  "aliases" : [ "CVE-2011-2929" ],
  "summary" : "actionpack Improper Input Validation vulnerability",
  "details" : "The template selection functionality in `actionpack/lib/action_view/template/resolver.rb` in Ruby on Rails 3.0.x before 3.0.10 and 3.1.x before 3.1.0.rc6 does not properly handle glob characters, which allows remote attackers to render arbitrary views via a crafted URL, related to a \"filter skipping vulnerability.\"",
  "severity" : [ ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "RubyGems",
      "name" : "actionpack"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "3.0.0"
      }, {
        "fixed" : "3.0.10"
      } ]
    } ]
  } ],
  "references" : [ {
    "type" : "ADVISORY",
    "url" : "https://nvd.nist.gov/vuln/detail/CVE-2011-2929"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/rails/rails/commit/5f94b93279f6d0682fafb237c301302c107a9552"
  }, {
    "type" : "WEB",
    "url" : "https://bugzilla.redhat.com/show_bug.cgi?id=731432"
  }, {
    "type" : "PACKAGE",
    "url" : "https://github.com/rails/rails"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/rubysec/ruby-advisory-db/blob/master/gems/actionpack/CVE-2011-2929.yml"
  }, {
    "type" : "WEB",
    "url" : "https://rubyonrails.org/2011/8/16/ann-rails-3-1-0-rc6"
  }, {
    "type" : "WEB",
    "url" : "http://groups.google.com/group/rubyonrails-security/msg/cbbbba6e4f7eaf61?dmode=source&output=gplain"
  }, {
    "type" : "WEB",
    "url" : "http://lists.fedoraproject.org/pipermail/package-announce/2011-September/065109.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-20" ],
    "severity" : "MODERATE",
    "github_reviewed" : true,
    "github_reviewed_at" : "2020-06-16T21:53:54Z",
    "nvd_published_at" : null
  }
}