CVE-2010-3933: Activerecord Rails Activerecord Gem Has Improper Vulnerability

MODERATE
Advisory Identifier: GHSA-gjxw-5w2q-7grf
CWE-20
Published
Advisory Summary

CVE-2010-3933 is a MODERATE rails activerecord gem has improper vulnerability (CWE-20: Improper Input Validation) affecting Activerecord libraries in the RubyGems ecosystem. The issue involves rails activerecord gem has improper input validation vulnerability. Remediation is available by upgrading affected packages to version 2.3.10, 3.0.1.

CVE-2010-3933 at a Glance

CVE Identifier CVE-2010-3933
GHSA Identifier GHSA-gjxw-5w2q-7grf
Severity MODERATE
CVSS v3.1 Base Score N/A
CWE Classification CWE-20: Improper Input Validation
Affected Product Activerecord
Package Ecosystem RubyGems
Published Date
Last Updated

How to Fix CVE-2010-3933

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

activerecord fixed: 2.3.10
Upgrade activerecord to 2.3.10
activerecord fixed: 3.0.1
Upgrade activerecord to 3.0.1
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 activerecord

How to Check if You Are Affected

To determine whether your application is affected by CVE-2010-3933, inspect your project dependencies for Activerecord:

inspect dependencies for activerecord

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

Ruby on Rails 2.3.9 and 3.0.0 does not properly handle nested attributes, which allows remote attackers to modify arbitrary records by changing the names of parameters for form inputs.

CVE-2010-3933 Affected Activerecord Versions

2 component(s)
Fixed Versions:
2.3.103.0.1
Product / Package Ecosystem Affected Versions Fixed Version
activerecord
RubyGems
≥ 2.3.9
< 2.3.10
2.3.10
activerecord
RubyGems
≥ 3.0.0
< 3.0.1
3.0.1

References

Frequently Asked Questions

What is CVE-2010-3933?
CVE-2010-3933 is a security vulnerability in Activerecord involving Rails activerecord gem has Improper Input Validation vulnerability under CWE-20: Improper Input Validation.
Which Activerecord versions are affected?
Affected versions include releases prior to 2.3.10, 3.0.1 across affected packages: activerecord.
What version fixes CVE-2010-3933?
Upgrading to 2.3.10, 3.0.1 (or the latest patched release for your respective branch) resolves the vulnerability.
Is activerecord affected?
Yes, activerecord is affected in releases prior to 2.3.10, 3.0.1. Upgrade your dependency to 2.3.10, 3.0.1 or later.
What CWE is associated with CVE-2010-3933?
CVE-2010-3933 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-2010-3933?
Run the dependency tree command: 'inspect dependencies for activerecord'. 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-gjxw-5w2q-7grf",
  "modified" : "2023-05-26T16:50:51Z",
  "published" : "2017-10-24T18:33:38Z",
  "aliases" : [ "CVE-2010-3933" ],
  "summary" : "Rails activerecord gem has Improper Input Validation vulnerability",
  "details" : "Ruby on Rails 2.3.9 and 3.0.0 does not properly handle nested attributes, which allows remote attackers to modify arbitrary records by changing the names of parameters for form inputs.",
  "severity" : [ ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "RubyGems",
      "name" : "activerecord"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "2.3.9"
      }, {
        "fixed" : "2.3.10"
      } ]
    } ]
  }, {
    "package" : {
      "ecosystem" : "RubyGems",
      "name" : "activerecord"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "3.0.0"
      }, {
        "fixed" : "3.0.1"
      } ]
    } ]
  } ],
  "references" : [ {
    "type" : "ADVISORY",
    "url" : "https://nvd.nist.gov/vuln/detail/CVE-2010-3933"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/rails/rails/commit/2d96bccb1e8b62e3e11ca0c5d38aaa8cece889ae"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/rails/rails/commit/96183e0f284bab27667e5a38fa6a1578eb029585"
  }, {
    "type" : "PACKAGE",
    "url" : "https://github.com/rails/rails"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/rubysec/ruby-advisory-db/blob/master/gems/activerecord/CVE-2010-3933.yml"
  }, {
    "type" : "WEB",
    "url" : "https://web.archive.org/web/20101129225633/http://securitytracker.com/alerts/2010/Oct/1024624.html"
  }, {
    "type" : "WEB",
    "url" : "https://web.archive.org/web/20111225083933/http://secunia.com/advisories/41930"
  }, {
    "type" : "WEB",
    "url" : "https://web.archive.org/web/20201208053819/http://securitytracker.com/id?1024624"
  }, {
    "type" : "WEB",
    "url" : "http://weblog.rubyonrails.org/2010/10/15/security-vulnerability-in-nested-attributes-code-in-ruby-on-rails-2-3-9-and-3-0-0"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-20" ],
    "severity" : "MODERATE",
    "github_reviewed" : true,
    "github_reviewed_at" : "2020-06-16T21:37:34Z",
    "nvd_published_at" : null
  }
}