CVE-2016-2785: Puppet Puppet Improper Access Control Vulnerability
CRITICALCVE-2016-2785 is a CRITICAL (CVSS 9.8) puppet improper access control vulnerability (CWE-284: Improper Access Control) affecting Puppet libraries in the RubyGems ecosystem. The issue involves puppet improper access control. Remediation is available by upgrading affected packages to version 4.4.2.
CVE-2016-2785 at a Glance
Security Impact
CVSS: 9.8
The security impact metrics below are parsed directly from the CVSS v3.1 vector string (CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H).
How to Fix CVE-2016-2785
To remediate this vulnerability, upgrade all affected Puppet 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 puppet to 4.4.2
Run the following command in your project directory to verify that all resolved dependencies use the patched release:
inspect dependencies for puppet
How to Check if You Are Affected
To determine whether your application is affected by CVE-2016-2785, inspect your project dependencies for Puppet:
inspect dependencies for puppet
Analyze the terminal output to locate any version of Puppet in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 4.4.2), 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 Puppet, 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-2016-2785 Affected Puppet Versions
1 component(s)| Product / Package | Ecosystem | Affected Versions | Fixed Version |
|---|---|---|---|
|
puppet
|
RubyGems |
≥ 4.0.0
< 4.4.2
|
4.4.2
|
References
Frequently Asked Questions
What is CVE-2016-2785?
Which Puppet versions are affected?
What version fixes CVE-2016-2785?
Is puppet affected?
What is the CVSS score of CVE-2016-2785?
What CWE is associated with CVE-2016-2785?
How can I check RubyGems dependencies for CVE-2016-2785?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"schema_version" : "1.4.0",
"id" : "GHSA-pqj5-7r86-64fv",
"modified" : "2023-11-22T21:39:47Z",
"published" : "2022-05-13T01:06:16Z",
"aliases" : [ "CVE-2016-2785" ],
"summary" : "Puppet Improper Access Control",
"details" : "Puppet Server before 2.3.2 and Ruby puppetmaster in Puppet 4.x before 4.4.2 and in Puppet Agent before 1.4.2 might allow remote attackers to bypass intended auth.conf access restrictions by leveraging incorrect URL decoding.",
"severity" : [ {
"type" : "CVSS_V3",
"score" : "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H"
} ],
"affected" : [ {
"package" : {
"ecosystem" : "RubyGems",
"name" : "puppet"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "4.0.0"
}, {
"fixed" : "4.4.2"
} ]
} ]
} ],
"references" : [ {
"type" : "ADVISORY",
"url" : "https://nvd.nist.gov/vuln/detail/CVE-2016-2785"
}, {
"type" : "WEB",
"url" : "https://github.com/puppetlabs/puppet/commit/6592a8166572e5f1b7d058474059b8519ec81387"
}, {
"type" : "PACKAGE",
"url" : "https://github.com/puppetlabs/puppet"
}, {
"type" : "WEB",
"url" : "https://github.com/puppetlabs/puppet/commits/4.4.2"
}, {
"type" : "WEB",
"url" : "https://puppet.com/security/cve/cve-2016-2785"
}, {
"type" : "WEB",
"url" : "https://security.gentoo.org/glsa/201606-02"
} ],
"database_specific" : {
"cwe_ids" : [ "CWE-284" ],
"severity" : "CRITICAL",
"github_reviewed" : true,
"github_reviewed_at" : "2023-07-28T19:59:23Z",
"nvd_published_at" : "2016-06-10T15:59:00Z"
}
}