{"answers":{"affected":"2 open source packages ship an affected version, including chef. It affects 1 product.","exploited":"There is no known exploitation of CVE-2010-5142 in the wild and no public exploit code.","fix":"Upgrade chef to 0.9.0 or later.","what":"CVE-2010-5142 is a medium-severity missing authorization vulnerability in n/a, published on 8 Aug 2012. Any signed-in user can exploit it over the network, with no action from the victim."},"fix_prompt":"Check this codebase for CVE-2010-5142 and fix it if it is affected.\n\nWhat it is: CVE-2010-5142 is a medium-severity missing authorization vulnerability in n/a, published on 8 Aug 2012. Any signed-in user can exploit it over the network, with no action from the victim.\nExploitation: There is no known exploitation of CVE-2010-5142 in the wild and no public exploit code.\n\nAffected packages and fixed versions:\n- chef (RubyGems): affected all versions; fixed in 0.9.0\n- chef (RubyGems): affected all versions; fixed in 0.9.0\n\nTask:\n1. Search the dependency manifests and lockfiles (for example package.json, package-lock.json, requirements.txt, poetry.lock, uv.lock, pom.xml, build.gradle, go.mod, Cargo.lock, Gemfile.lock) and any Dockerfiles for the affected packages, including transitive dependencies.\n2. If an affected version is in use, upgrade it to the fixed version for its release line with the project's package manager, so the lockfile is regenerated. Prefer the smallest upgrade that fixes it.\n3. If there is no fix, or the upgrade would break the build, do not guess: explain the risk and the safest workaround instead.\n4. Run the tests and summarise what changed and why.\n5. If nothing in the project is affected, say so and change nothing.\n\nReference: https://insights.sbomify.com/CVE-2010-5142/ (Markdown: https://insights.sbomify.com/CVE-2010-5142/index.md)","id":"CVE-2010-5142","markdown":"https://insights.sbomify.com/CVE-2010-5142/index.md","name":"CVE-2010-5142","record":{"aliases":["GHSA-f68m-q26r-64f6"],"analysis":{"component_type":"server_software","fix_type":"upgrade","impacts":["privilege_escalation","data_modify"],"network_reachable":"yes","non_default_config":false,"product_category":"Chef server API","requires_auth":"low_privilege","summary":"Remote authenticated users can manage user accounts without administrative privileges due to missing authorization checks in the Chef server API.","user_interaction":"not_required","vuln_class":"missing_authorization"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"mitre","cpe":[{"product":"chef","vendor":"opscode"}],"cvss":{"score":6.5,"severity":"medium","source":"nvd","vector":"AV:N/AC:L/Au:S/C:P/I:P/A:P","version":"2.0"},"cwes":[{"id":"CWE-264","name":null}],"description":"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.","ecosystems":["RubyGems"],"exploits":{"exploitdb":0,"first_seen":null,"github_poc":0,"max_poc_stars":null,"metasploit":0,"nuclei":0,"refs":[],"tier":"none_known"},"has_fix":true,"headline":"Chef Improper Access Control vulnerability","id":"CVE-2010-5142","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":"RubyGems","product":null,"products":[],"type":"missing_authorization","year":"2010"},"n_packages":2,"n_references":2,"next":{"headline":"Security feature bypass in n/a","id":"CVE-2010-5143"},"packages":[{"ecosystem":"RubyGems","fixed":["0.9.0"],"introduced":["0"],"last_affected":[],"package":"chef","purl":null,"source":"GHSA-f68m-q26r-64f6"},{"ecosystem":"RubyGems","fixed":["0.9.0"],"introduced":["0"],"last_affected":[],"package":"chef","purl":"pkg:gem/chef","source":"GHSA-f68m-q26r-64f6"}],"prev":{"headline":"Business logic in n/a","id":"CVE-2010-5141"},"products":["n/a"],"published":"2012-08-08","related":[{"cvss_score":6.5,"headline":"Privilege escalation in n/a","id":"CVE-2011-5098","kev_date_added":null,"published":"2012-08-08"},{"cvss_score":5.5,"headline":"Missing authorization in n/a","id":"CVE-2011-5097","kev_date_added":null,"published":"2012-08-08"}],"sources":[{"class":"attribution","licence":"CVE Terms of Use (MITRE)","name":"CVE List","prefix":"CVE"},{"class":"attribution","licence":"CC BY 4.0","name":"GitHub Advisory Database","prefix":"GHSA"},{"class":"attribution","licence":"US public information, NVD API terms","name":"NVD"},{"class":"attribution","licence":"CWE Terms of Use","name":"CWE (MITRE)"},{"class":"attribution","licence":"FIRST CVSS licence","name":"CVSS (FIRST)"}],"ssvc":{"automatable":null,"exploitation":null,"technical_impact":null},"state":"PUBLISHED","updated":"2024-09-16","vendors":["n/a"]},"summary":"Remote authenticated users can manage user accounts without administrative privileges due to missing authorization checks in the Chef server API.","url":"https://insights.sbomify.com/CVE-2010-5142/"}