CVE-2012-2694: Actionpack Actionpack Allows Remote Attackers To Vulnerability

MODERATE
Advisory Identifier: GHSA-q34c-48gc-m9g8
Published
Advisory Summary

CVE-2012-2694 is a MODERATE actionpack allows remote attackers to vulnerability (General Security Weakness) affecting Actionpack libraries in the RubyGems ecosystem. The issue involves actionpack allows remote attackers to bypass database-query restrictions, perform null checks via crafted request. Remediation is available by upgrading affected packages to version 3.0.14, 3.1.6, 3.2.6.

CVE-2012-2694 at a Glance

CVE Identifier CVE-2012-2694
GHSA Identifier GHSA-q34c-48gc-m9g8
Severity MODERATE
CVSS v3.1 Base Score N/A
CWE Classification General Security Weakness
Affected Product Actionpack
Package Ecosystem RubyGems
Published Date
Last Updated

How to Fix CVE-2012-2694

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.14
Upgrade actionpack to 3.0.14
actionpack fixed: 3.1.6
Upgrade actionpack to 3.1.6
actionpack fixed: 3.2.6
Upgrade actionpack to 3.2.6
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-2694, 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.14), 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 General Security Weakness. 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

`actionpack/lib/action_dispatch/http/request.rb` in Ruby on Rails before 3.0.14, 3.1.x before 3.1.6, and 3.2.x before 3.2.6 does not properly consider differences in parameter handling between the Active Record component and the Rack interface, which allows remote attackers to bypass intended database-query restrictions and perform NULL checks via a crafted request, as demonstrated by certain `['xyz', nil]` values, a related issue to CVE-2012-2660.

CVE-2012-2694 Affected Actionpack Versions

3 component(s)
Fixed Versions:
3.0.143.1.63.2.6
Product / Package Ecosystem Affected Versions Fixed Version
actionpack
RubyGems
≥ 3.0.13
< 3.0.14
3.0.14
actionpack
RubyGems
≥ 3.1.0
< 3.1.6
3.1.6
actionpack
RubyGems
≥ 3.2.0
< 3.2.6
3.2.6

References

Frequently Asked Questions

What is CVE-2012-2694?
CVE-2012-2694 is a security vulnerability in Actionpack involving actionpack allows remote attackers to bypass database-query restrictions, perform NULL checks via crafted request under General Security Weakness.
Which Actionpack versions are affected?
Affected versions include releases prior to 3.0.14, 3.1.6, 3.2.6 across affected packages: actionpack.
What version fixes CVE-2012-2694?
Upgrading to 3.0.14, 3.1.6, 3.2.6 (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.14, 3.1.6, 3.2.6. Upgrade your dependency to 3.0.14, 3.1.6, 3.2.6 or later.
What CWE is associated with CVE-2012-2694?
CVE-2012-2694 is classified under General Security Weakness.
How can I check RubyGems dependencies for CVE-2012-2694?
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-q34c-48gc-m9g8",
  "modified" : "2025-01-20T16:29:10Z",
  "published" : "2017-10-24T18:33:38Z",
  "aliases" : [ "CVE-2012-2694" ],
  "summary" : "actionpack allows remote attackers to bypass database-query restrictions, perform NULL checks via crafted request",
  "details" : "`actionpack/lib/action_dispatch/http/request.rb` in Ruby on Rails before 3.0.14, 3.1.x before 3.1.6, and 3.2.x before 3.2.6 does not properly consider differences in parameter handling between the Active Record component and the Rack interface, which allows remote attackers to bypass intended database-query restrictions and perform NULL checks via a crafted request, as demonstrated by certain `['xyz', nil]` values, a related issue to CVE-2012-2660.",
  "severity" : [ ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "RubyGems",
      "name" : "actionpack"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "3.0.13"
      }, {
        "fixed" : "3.0.14"
      } ]
    } ]
  }, {
    "package" : {
      "ecosystem" : "RubyGems",
      "name" : "actionpack"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "3.1.0"
      }, {
        "fixed" : "3.1.6"
      } ]
    } ]
  }, {
    "package" : {
      "ecosystem" : "RubyGems",
      "name" : "actionpack"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "3.2.0"
      }, {
        "fixed" : "3.2.6"
      } ]
    } ]
  } ],
  "references" : [ {
    "type" : "ADVISORY",
    "url" : "https://nvd.nist.gov/vuln/detail/CVE-2012-2694"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/rails/rails/commit/2f3bc0467311781ac1ceb2c8c2b09002c8fe143a"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/rails/rails/commit/c202638225519b5e1a03ebe523b109c948fb0e52"
  }, {
    "type" : "PACKAGE",
    "url" : "https://github.com/rails/rails"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/rubysec/ruby-advisory-db/blob/master/gems/actionpack/CVE-2012-2694.yml"
  }, {
    "type" : "WEB",
    "url" : "https://groups.google.com/g/rubyonrails-security/c/jILZ34tAHF4/m/7x0hLH-o0-IJ"
  }, {
    "type" : "WEB",
    "url" : "https://groups.google.com/group/rubyonrails-security/msg/e2d3a87f2c211def?dmode=source&output=gplain"
  }, {
    "type" : "WEB",
    "url" : "http://lists.opensuse.org/opensuse-security-announce/2012-08/msg00002.html"
  }, {
    "type" : "WEB",
    "url" : "http://lists.opensuse.org/opensuse-security-announce/2012-08/msg00014.html"
  }, {
    "type" : "WEB",
    "url" : "http://lists.opensuse.org/opensuse-security-announce/2012-08/msg00016.html"
  }, {
    "type" : "WEB",
    "url" : "http://lists.opensuse.org/opensuse-security-announce/2012-08/msg00017.html"
  }, {
    "type" : "WEB",
    "url" : "http://lists.opensuse.org/opensuse-updates/2012-08/msg00046.html"
  }, {
    "type" : "WEB",
    "url" : "http://rhn.redhat.com/errata/RHSA-2013-0154.html"
  } ],
  "database_specific" : {
    "cwe_ids" : [ ],
    "severity" : "MODERATE",
    "github_reviewed" : true,
    "github_reviewed_at" : "2020-06-16T21:50:37Z",
    "nvd_published_at" : "2012-06-22T14:55:01Z"
  }
}