GHSA-m8h6-m9p5-p2f8: Activerecord Moderate Severity Vulnerability That Affects Vulnerability
MODERATEGHSA-m8h6-m9p5-p2f8 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.2.7.1.
GHSA-m8h6-m9p5-p2f8 at a Glance
How to Fix GHSA-m8h6-m9p5-p2f8
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.
Upgrade activerecord to 4.2.7.1
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-m8h6-m9p5-p2f8, 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.2.7.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
GHSA-m8h6-m9p5-p2f8 Affected Activerecord Versions
1 component(s)| Product / Package | Ecosystem | Affected Versions | Fixed Version |
|---|---|---|---|
|
activerecord
|
RubyGems |
≥ 4.2.0
< 4.2.7.1
|
4.2.7.1
|
References
Frequently Asked Questions
What is GHSA-m8h6-m9p5-p2f8?
Which Activerecord versions are affected?
What version fixes GHSA-m8h6-m9p5-p2f8?
Is activerecord affected?
What CWE is associated with GHSA-m8h6-m9p5-p2f8?
How can I check RubyGems dependencies for GHSA-m8h6-m9p5-p2f8?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"schema_version" : "1.4.0",
"id" : "GHSA-m8h6-m9p5-p2f8",
"modified" : "2021-12-02T23:15:03Z",
"published" : "2018-08-13T20:49:01Z",
"withdrawn" : "2020-06-16T21:45:29Z",
"aliases" : [ ],
"summary" : "Moderate severity vulnerability that affects activerecord",
"details" : "Withdrawn, accidental duplicate publish.\n\nActive Record in Ruby on Rails 4.2.x before 4.2.7.1 does not properly consider differences in parameter handling between the Active Record component and the JSON implementation, which allows remote attackers to bypass intended database-query restrictions and perform NULL checks or trigger missing WHERE clauses via a crafted request, as demonstrated by certain \"[nil]\" values, a related issue to CVE-2012-2660, CVE-2012-2694, and CVE-2013-0155.",
"severity" : [ ],
"affected" : [ {
"package" : {
"ecosystem" : "RubyGems",
"name" : "activerecord"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "4.2.0"
}, {
"fixed" : "4.2.7.1"
} ]
} ],
"database_specific" : {
"last_known_affected_version_range" : "<= 4.2.7.0"
}
} ],
"references" : [ {
"type" : "ADVISORY",
"url" : "https://nvd.nist.gov/vuln/detail/CVE-2016-6317"
}, {
"type" : "ADVISORY",
"url" : "https://github.com/advisories/GHSA-m8h6-m9p5-p2f8"
} ],
"database_specific" : {
"cwe_ids" : [ ],
"severity" : "MODERATE",
"github_reviewed" : true,
"github_reviewed_at" : "2020-06-16T21:45:29Z",
"nvd_published_at" : null
}
}