Vulnerabilities in pkg:gem/chef

PACKAGE
Advisory Identifier: GHSA-f68m-q26r-64f6
Advisory Summary

CVE-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.

1 Known Advisory Record(s)
Package Vulnerability Intelligence

pkg:gem/chef

1 Known Advisory Record(s)

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

CVE Identifier CVE-2010-5142
GHSA Identifier GHSA-f68m-q26r-64f6
Severity MODERATE
CVSS v3.1 Base Score N/A
CWE Classification CWE-284: Improper Access Control
Affected Product Chef
Package Ecosystem RubyGems
Published Date
Last Updated

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.

chef fixed: 0.9.0
Upgrade chef to 0.9.0
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 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

`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.

CVE-2010-5142 Affected Chef Versions

1 component(s)
Fixed Versions:
0.9.0
Product / Package Ecosystem Affected Versions Fixed Version
chef
RubyGems
< 0.9.0
0.9.0

References

Frequently Asked Questions

What is CVE-2010-5142?
CVE-2010-5142 is a security vulnerability in Chef involving Chef Improper Access Control vulnerability under CWE-284: Improper Access Control.
Which Chef versions are affected?
Affected versions include releases prior to 0.9.0 across affected packages: chef.
What version fixes CVE-2010-5142?
Upgrading to 0.9.0 (or the latest patched release for your respective branch) resolves the vulnerability.
Is chef affected?
Yes, chef is affected in releases prior to 0.9.0. Upgrade your dependency to 0.9.0 or later.
What CWE is associated with CVE-2010-5142?
CVE-2010-5142 is classified under CWE-284: Improper Access Control (The product does not restrict or incorrectly restricts access to a resource from an unauthorized actor.).
How can I check RubyGems dependencies for CVE-2010-5142?
Run the dependency tree command: 'inspect dependencies for chef'. 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-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"
  }
}