CVE-2011-3870: Puppet Puppet Allows Local Users To Vulnerability
MODERATECVE-2011-3870 is a MODERATE puppet allows local users to vulnerability (CWE-59: Improper Link Resolution Before File Access ('Link Following')) affecting Puppet libraries in the RubyGems ecosystem. The issue involves puppet allows local users to modify the permissions of arbitrary files. Remediation is available by upgrading affected packages to version 2.7.5, 2.6.11.
CVE-2011-3870 at a Glance
How to Fix CVE-2011-3870
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 2.7.5
Upgrade puppet to 2.6.11
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-2011-3870, 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 2.7.5), 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-59: Improper Link Resolution Before File Access ('Link Following'), where the product attempts to access a file based on the filename, but it does not properly prevent that filename from identifying a link or shortcut that resolves to an unintended resource. 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-2011-3870 Affected Puppet Versions
2 component(s)| Product / Package | Ecosystem | Affected Versions | Fixed Version |
|---|---|---|---|
|
puppet
|
RubyGems |
≥ 2.7.0
< 2.7.5
|
2.7.5
|
|
puppet
|
RubyGems |
< 2.6.11
|
2.6.11
|
References
Frequently Asked Questions
What is CVE-2011-3870?
Which Puppet versions are affected?
What version fixes CVE-2011-3870?
Is puppet affected?
What CWE is associated with CVE-2011-3870?
How can I check RubyGems dependencies for CVE-2011-3870?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"schema_version" : "1.4.0",
"id" : "GHSA-qh3g-27jf-3j54",
"modified" : "2024-01-16T21:28:46Z",
"published" : "2022-05-14T00:56:54Z",
"aliases" : [ "CVE-2011-3870" ],
"summary" : "Puppet allows local users to modify the permissions of arbitrary files",
"details" : "Puppet 2.7.x before 2.7.5, 2.6.x before 2.6.11, and 0.25.x allows local users to modify the permissions of arbitrary files via a symlink attack on the SSH authorized_keys file.",
"severity" : [ ],
"affected" : [ {
"package" : {
"ecosystem" : "RubyGems",
"name" : "puppet"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "2.7.0"
}, {
"fixed" : "2.7.5"
} ]
} ]
}, {
"package" : {
"ecosystem" : "RubyGems",
"name" : "puppet"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "0"
}, {
"fixed" : "2.6.11"
} ]
} ]
} ],
"references" : [ {
"type" : "ADVISORY",
"url" : "https://nvd.nist.gov/vuln/detail/CVE-2011-3870"
}, {
"type" : "WEB",
"url" : "https://github.com/puppetlabs/puppet/commit/88512e880bd2a03694b5fef42540dc7b3da05d30"
}, {
"type" : "WEB",
"url" : "https://github.com/puppetlabs/puppet/commit/b29b1785d543a3cea961fffa9b3c15f14ab7cce0"
}, {
"type" : "PACKAGE",
"url" : "https://github.com/puppetlabs/puppet"
}, {
"type" : "WEB",
"url" : "https://github.com/rubysec/ruby-advisory-db/blob/master/gems/puppet/CVE-2011-3870.yml"
}, {
"type" : "WEB",
"url" : "https://puppet.com/security/cve/cve-2011-3870"
}, {
"type" : "WEB",
"url" : "http://groups.google.com/group/puppet-announce/browse_thread/thread/91e3b46d2328a1cb"
}, {
"type" : "WEB",
"url" : "http://lists.fedoraproject.org/pipermail/package-announce/2011-October/068053.html"
}, {
"type" : "WEB",
"url" : "http://lists.fedoraproject.org/pipermail/package-announce/2011-October/068061.html"
}, {
"type" : "WEB",
"url" : "http://lists.fedoraproject.org/pipermail/package-announce/2011-October/068093.html"
}, {
"type" : "WEB",
"url" : "http://www.debian.org/security/2011/dsa-2314"
}, {
"type" : "WEB",
"url" : "http://www.ubuntu.com/usn/USN-1223-1"
}, {
"type" : "WEB",
"url" : "http://www.ubuntu.com/usn/USN-1223-2"
} ],
"database_specific" : {
"cwe_ids" : [ "CWE-59" ],
"severity" : "MODERATE",
"github_reviewed" : true,
"github_reviewed_at" : "2024-01-16T21:28:46Z",
"nvd_published_at" : "2011-10-27T20:55:00Z"
}
}