CVE-2018-16476: Activejob Improper Access Control Vulnerability
HIGHCVE-2018-16476 is a HIGH (CVSS 7.5) improper access control vulnerability (CWE-284: Improper Access Control) affecting Activejob libraries in the RubyGems ecosystem. The issue involves improper access control in activejob. Remediation is available by upgrading affected packages to version 4.2.11, 5.0.7.1, 5.1.6.1, 5.2.1.1.
CVE-2018-16476 at a Glance
Security Impact
CVSS: 7.5
The security impact metrics below are parsed directly from the CVSS v3.1 vector string (CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N).
How to Fix CVE-2018-16476
To remediate this vulnerability, upgrade all affected Activejob 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 activejob to 4.2.11
Upgrade activejob to 5.0.7.1
Upgrade activejob to 5.1.6.1
Upgrade activejob to 5.2.1.1
Run the following command in your project directory to verify that all resolved dependencies use the patched release:
inspect dependencies for activejob
How to Check if You Are Affected
To determine whether your application is affected by CVE-2018-16476, inspect your project dependencies for Activejob:
inspect dependencies for activejob
Analyze the terminal output to locate any version of Activejob in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 4.2.11), 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-284: Improper Access Control, where the product does not restrict or incorrectly restricts access to a resource from an unauthorized actor. In Activejob, 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
CVE-2018-16476 Affected Activejob Versions
4 component(s)| Product / Package | Ecosystem | Affected Versions | Fixed Version |
|---|---|---|---|
|
activejob
|
RubyGems |
≥ 4.2.0
< 4.2.11
|
4.2.11
|
|
activejob
|
RubyGems |
≥ 5.0.0
< 5.0.7.1
|
5.0.7.1
|
|
activejob
|
RubyGems |
≥ 5.1.0
< 5.1.6.1
|
5.1.6.1
|
|
activejob
|
RubyGems |
≥ 5.2.0
< 5.2.1.1
|
5.2.1.1
|
References
Frequently Asked Questions
What is CVE-2018-16476?
Which Activejob versions are affected?
What version fixes CVE-2018-16476?
Is activejob affected?
What is the CVSS score of CVE-2018-16476?
What CWE is associated with CVE-2018-16476?
How can I check RubyGems dependencies for CVE-2018-16476?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"schema_version" : "1.4.0",
"id" : "GHSA-q2qw-rmrh-vv42",
"modified" : "2023-06-30T19:52:40Z",
"published" : "2018-12-05T17:24:27Z",
"aliases" : [ "CVE-2018-16476" ],
"summary" : "Improper Access Control in activejob",
"details" : "A Broken Access Control vulnerability in Active Job versions >= 4.2.0 allows an attacker to craft user input which can cause Active Job to deserialize it using GlobalId and give them access to information that they should not have.",
"severity" : [ {
"type" : "CVSS_V3",
"score" : "CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N"
} ],
"affected" : [ {
"package" : {
"ecosystem" : "RubyGems",
"name" : "activejob"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "4.2.0"
}, {
"fixed" : "4.2.11"
} ]
} ]
}, {
"package" : {
"ecosystem" : "RubyGems",
"name" : "activejob"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "5.0.0"
}, {
"fixed" : "5.0.7.1"
} ]
} ],
"database_specific" : {
"last_known_affected_version_range" : "<= 5.0.7.0"
}
}, {
"package" : {
"ecosystem" : "RubyGems",
"name" : "activejob"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "5.1.0"
}, {
"fixed" : "5.1.6.1"
} ]
} ],
"database_specific" : {
"last_known_affected_version_range" : "<= 5.1.6.0"
}
}, {
"package" : {
"ecosystem" : "RubyGems",
"name" : "activejob"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "5.2.0"
}, {
"fixed" : "5.2.1.1"
} ]
} ],
"database_specific" : {
"last_known_affected_version_range" : "<= 5.2.1.0"
}
} ],
"references" : [ {
"type" : "ADVISORY",
"url" : "https://nvd.nist.gov/vuln/detail/CVE-2018-16476"
}, {
"type" : "WEB",
"url" : "https://github.com/rails/rails/commit/970b0d754be7c71a760d9b807eea32297fd838e3"
}, {
"type" : "WEB",
"url" : "https://access.redhat.com/errata/RHSA-2019:0600"
}, {
"type" : "PACKAGE",
"url" : "https://github.com/rails/rails"
}, {
"type" : "WEB",
"url" : "https://github.com/rubysec/ruby-advisory-db/blob/master/gems/activejob/CVE-2018-16476.yml"
}, {
"type" : "WEB",
"url" : "https://groups.google.com/d/msg/rubyonrails-security/FL4dSdzr2zw/zjKVhF4qBAAJ"
}, {
"type" : "WEB",
"url" : "https://groups.google.com/forum/#!topic/rubyonrails-security/FL4dSdzr2zw"
}, {
"type" : "WEB",
"url" : "https://weblog.rubyonrails.org/2018/11/27/Rails-4-2-5-0-5-1-5-2-have-been-released"
} ],
"database_specific" : {
"cwe_ids" : [ "CWE-284", "CWE-502" ],
"severity" : "HIGH",
"github_reviewed" : true,
"github_reviewed_at" : "2020-06-16T21:50:29Z",
"nvd_published_at" : "2018-11-30T19:29:00Z"
}
}