CVE-2012-1989: Puppet Puppet Allows Local Users To Vulnerability
LOWCVE-2012-1989 is a LOW puppet allows local users to vulnerability (General Security Weakness) affecting Puppet libraries in the RubyGems ecosystem. The issue involves puppet allows local users to overwrite arbitrary files via a symlink attack. Remediation is available by upgrading affected packages to version 2.7.13.
CVE-2012-1989 at a Glance
How to Fix CVE-2012-1989
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.13
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-2012-1989, 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.13), 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 General Security Weakness. 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-2012-1989 Affected Puppet Versions
1 component(s)| Product / Package | Ecosystem | Affected Versions | Fixed Version |
|---|---|---|---|
|
puppet
|
RubyGems |
≥ 2.7.1
< 2.7.13
|
2.7.13
|
References
Frequently Asked Questions
What is CVE-2012-1989?
Which Puppet versions are affected?
What version fixes CVE-2012-1989?
Is puppet affected?
What CWE is associated with CVE-2012-1989?
How can I check RubyGems dependencies for CVE-2012-1989?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"schema_version" : "1.4.0",
"id" : "GHSA-c5qq-g673-5p49",
"modified" : "2023-05-12T17:08:19Z",
"published" : "2017-10-24T18:33:38Z",
"aliases" : [ "CVE-2012-1989" ],
"summary" : "Puppet allows local users to overwrite arbitrary files via a symlink attack",
"details" : "`telnet.rb` in Puppet 2.7.x before 2.7.13 and Puppet Enterprise (PE) 1.2.x, 2.0.x, and 2.5.x before 2.5.1 allows local users to overwrite arbitrary files via a symlink attack on the NET::Telnet connection log (`/tmp/out.log`).",
"severity" : [ ],
"affected" : [ {
"package" : {
"ecosystem" : "RubyGems",
"name" : "puppet"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "2.7.1"
}, {
"fixed" : "2.7.13"
} ]
} ]
} ],
"references" : [ {
"type" : "ADVISORY",
"url" : "https://nvd.nist.gov/vuln/detail/CVE-2012-1989"
}, {
"type" : "WEB",
"url" : "https://exchange.xforce.ibmcloud.com/vulnerabilities/74797"
}, {
"type" : "PACKAGE",
"url" : "https://github.com/puppetlabs/puppet"
}, {
"type" : "WEB",
"url" : "https://github.com/rubysec/ruby-advisory-db/blob/master/gems/puppet/CVE-2012-1989.yml"
}, {
"type" : "WEB",
"url" : "https://hermes.opensuse.org/messages/15087408"
}, {
"type" : "WEB",
"url" : "https://web.archive.org/web/20120415105345/http://www.securityfocus.com/bid/52975"
}, {
"type" : "WEB",
"url" : "https://www.puppet.com/security/cve/cve-2012-1989-arbitrary-file-write-access"
}, {
"type" : "WEB",
"url" : "http://lists.opensuse.org/opensuse-updates/2012-05/msg00012.html"
}, {
"type" : "WEB",
"url" : "http://projects.puppetlabs.com/issues/13606"
}, {
"type" : "WEB",
"url" : "http://projects.puppetlabs.com/projects/1/wiki/Release_Notes#2.7.13"
}, {
"type" : "WEB",
"url" : "http://puppetlabs.com/security/cve/cve-2012-1989"
}, {
"type" : "WEB",
"url" : "http://ubuntu.com/usn/usn-1419-1"
} ],
"database_specific" : {
"cwe_ids" : [ ],
"severity" : "LOW",
"github_reviewed" : true,
"github_reviewed_at" : "2020-06-16T21:30:16Z",
"nvd_published_at" : "2012-06-27T18:55:01Z"
}
}