Vulnerabilities in pkg:gem/chef
PACKAGECVE-2010-5142 is a MODERATE chef improper access control vulnerability vulnerability (CWE-284: Improper Access Control) affecting Chef libraries in the RubyGems ecosystem. The issue involves chef improper access control vulnerability. Remediation is available by upgrading affected packages to version 0.9.0.
pkg:gem/chef
Vulnerability advisories affecting package pkg:gem/chef. Select an advisory below to view technical details or fixes.
| Advisory ID | CVE / NVD | Severity | Summary |
|---|---|---|---|
| GHSA-f68m-q26r-64f6 | CVE-2010-5142 | MODERATE | Chef Improper Access Control vulnerability |
CVE-2010-5142 at a Glance
How to Fix CVE-2010-5142
To remediate this vulnerability, upgrade all affected Chef 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 chef to 0.9.0
Run the following command in your project directory to verify that all resolved dependencies use the patched release:
inspect dependencies for chef
How to Check if You Are Affected
To determine whether your application is affected by CVE-2010-5142, inspect your project dependencies for Chef:
inspect dependencies for chef
Analyze the terminal output to locate any version of Chef in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 0.9.0), 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 Chef, 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-2010-5142 Affected Chef Versions
1 component(s)| Product / Package | Ecosystem | Affected Versions | Fixed Version |
|---|---|---|---|
|
chef
|
RubyGems |
< 0.9.0
|
0.9.0
|
References
Frequently Asked Questions
What is CVE-2010-5142?
Which Chef versions are affected?
What version fixes CVE-2010-5142?
Is chef affected?
What CWE is associated with CVE-2010-5142?
How can I check RubyGems dependencies for CVE-2010-5142?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"schema_version" : "1.4.0",
"id" : "GHSA-f68m-q26r-64f6",
"modified" : "2024-02-09T21:53:21Z",
"published" : "2022-05-17T05:26:20Z",
"aliases" : [ "CVE-2010-5142" ],
"summary" : "Chef Improper Access Control vulnerability",
"details" : "`chef-server-api/app/controllers/users.rb` in the API in Chef before 0.9.0 does not require administrative privileges for the create, destroy, and update methods, which allows remote authenticated users to manage user accounts via requests to the /users URI.",
"severity" : [ ],
"affected" : [ {
"package" : {
"ecosystem" : "RubyGems",
"name" : "chef"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "0"
}, {
"fixed" : "0.9.0"
} ]
} ]
} ],
"references" : [ {
"type" : "ADVISORY",
"url" : "https://nvd.nist.gov/vuln/detail/CVE-2010-5142"
}, {
"type" : "WEB",
"url" : "https://github.com/opscode/chef/commit/c3bb41f727fbe00e5de719d687757b24c8dcdfc8"
}, {
"type" : "PACKAGE",
"url" : "https://github.com/chef/chef"
}, {
"type" : "WEB",
"url" : "https://github.com/rubysec/ruby-advisory-db/blob/master/gems/chef/CVE-2010-5142.yml"
}, {
"type" : "WEB",
"url" : "http://tickets.opscode.com/browse/CHEF-1289"
} ],
"database_specific" : {
"cwe_ids" : [ "CWE-284" ],
"severity" : "MODERATE",
"github_reviewed" : true,
"github_reviewed_at" : "2024-02-08T15:31:52Z",
"nvd_published_at" : "2012-08-08T10:26:00Z"
}
}