GHSA-7phj-gmgx-2r66: Activerecord Moderate Severity Vulnerability That Affects Vulnerability

MODERATE
Published
Advisory Summary

GHSA-7phj-gmgx-2r66 is a MODERATE moderate severity vulnerability that affects vulnerability (General Security Weakness) affecting Activerecord libraries in the RubyGems ecosystem. The issue involves moderate severity vulnerability that affects activerecord. Remediation is available by upgrading affected packages to version 4.1.14.1, 4.2.5.1, 3.2.22.1.

GHSA-7phj-gmgx-2r66 at a Glance

CVE Identifier N/A
GHSA Identifier GHSA-7phj-gmgx-2r66
Severity MODERATE
CVSS v3.1 Base Score N/A
CWE Classification General Security Weakness
Affected Product Activerecord
Package Ecosystem RubyGems
Published Date
Last Updated

How to Fix GHSA-7phj-gmgx-2r66

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: 4.1.14.1
Upgrade activerecord to 4.1.14.1
activerecord fixed: 4.2.5.1
Upgrade activerecord to 4.2.5.1
activerecord fixed: 3.2.22.1
Upgrade activerecord to 3.2.22.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 GHSA-7phj-gmgx-2r66, 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 4.1.14.1), 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 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

Withdrawn, accidental duplicate publish. activerecord/lib/active_record/nested_attributes.rb in Active Record in Ruby on Rails 3.1.x and 3.2.x before 3.2.22.1, 4.0.x and 4.1.x before 4.1.14.1, 4.2.x before 4.2.5.1, and 5.x before 5.0.0.beta1.1 does not properly implement a certain destroy option, which allows remote attackers to bypass intended change restrictions by leveraging use of the nested attributes feature.

GHSA-7phj-gmgx-2r66 Affected Activerecord Versions

3 component(s)
Fixed Versions:
4.1.14.14.2.5.13.2.22.1
Product / Package Ecosystem Affected Versions Fixed Version
activerecord
RubyGems
≥ 4.0.0
< 4.1.14.1
4.1.14.1
activerecord
RubyGems
≥ 4.2.0
< 4.2.5.1
4.2.5.1
activerecord
RubyGems
≥ 3.0.0
< 3.2.22.1
3.2.22.1

References

Frequently Asked Questions

What is GHSA-7phj-gmgx-2r66?
GHSA-7phj-gmgx-2r66 is a security vulnerability in Activerecord involving Moderate severity vulnerability that affects activerecord under General Security Weakness.
Which Activerecord versions are affected?
Affected versions include releases prior to 4.1.14.1, 4.2.5.1, 3.2.22.1 across affected packages: activerecord.
What version fixes GHSA-7phj-gmgx-2r66?
Upgrading to 4.1.14.1, 4.2.5.1, 3.2.22.1 (or the latest patched release for your respective branch) resolves the vulnerability.
Is activerecord affected?
Yes, activerecord is affected in releases prior to 4.1.14.1, 4.2.5.1, 3.2.22.1. Upgrade your dependency to 4.1.14.1, 4.2.5.1, 3.2.22.1 or later.
What CWE is associated with GHSA-7phj-gmgx-2r66?
GHSA-7phj-gmgx-2r66 is classified under General Security Weakness.
How can I check RubyGems dependencies for GHSA-7phj-gmgx-2r66?
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-7phj-gmgx-2r66",
  "modified" : "2021-12-03T14:24:43Z",
  "published" : "2018-09-17T21:58:09Z",
  "withdrawn" : "2020-06-16T21:23:09Z",
  "aliases" : [ ],
  "summary" : "Moderate severity vulnerability that affects activerecord",
  "details" : "Withdrawn, accidental duplicate publish.\n\nactiverecord/lib/active_record/nested_attributes.rb in Active Record in Ruby on Rails 3.1.x and 3.2.x before 3.2.22.1, 4.0.x and 4.1.x before 4.1.14.1, 4.2.x before 4.2.5.1, and 5.x before 5.0.0.beta1.1 does not properly implement a certain destroy option, which allows remote attackers to bypass intended change restrictions by leveraging use of the nested attributes feature.",
  "severity" : [ ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "RubyGems",
      "name" : "activerecord"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "4.0.0"
      }, {
        "fixed" : "4.1.14.1"
      } ]
    } ],
    "database_specific" : {
      "last_known_affected_version_range" : "<= 4.1.14.0"
    }
  }, {
    "package" : {
      "ecosystem" : "RubyGems",
      "name" : "activerecord"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "4.2.0"
      }, {
        "fixed" : "4.2.5.1"
      } ]
    } ],
    "database_specific" : {
      "last_known_affected_version_range" : "<= 4.2.5.0"
    }
  }, {
    "package" : {
      "ecosystem" : "RubyGems",
      "name" : "activerecord"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "3.0.0"
      }, {
        "fixed" : "3.2.22.1"
      } ]
    } ],
    "database_specific" : {
      "last_known_affected_version_range" : "<= 3.2.22.0"
    }
  } ],
  "references" : [ {
    "type" : "ADVISORY",
    "url" : "https://nvd.nist.gov/vuln/detail/CVE-2015-7577"
  }, {
    "type" : "ADVISORY",
    "url" : "https://github.com/advisories/GHSA-7phj-gmgx-2r66"
  } ],
  "database_specific" : {
    "cwe_ids" : [ ],
    "severity" : "MODERATE",
    "github_reviewed" : true,
    "github_reviewed_at" : "2020-06-16T21:23:09Z",
    "nvd_published_at" : null
  }
}