CVE-2012-1987: Puppet Denial of Service Vulnerability
LOWCVE-2012-1987 is a LOW denial of service vulnerability (CWE-400: Uncontrolled Resource Consumption) affecting Puppet libraries in the RubyGems ecosystem. The issue involves puppet denial of service and arbitrary file write. Remediation is available by upgrading affected packages to version 2.6.15, 2.7.13.
CVE-2012-1987 at a Glance
How to Fix CVE-2012-1987
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.6.15
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-1987, 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.6.15), 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-400: Uncontrolled Resource Consumption, where the product does not properly control the allocation and maintenance of a limited 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-2012-1987 Affected Puppet Versions
2 component(s)| Product / Package | Ecosystem | Affected Versions | Fixed Version |
|---|---|---|---|
|
puppet
|
RubyGems |
≥ 2.6.0
< 2.6.15
|
2.6.15
|
|
puppet
|
RubyGems |
≥ 2.7.0
< 2.7.13
|
2.7.13
|
References
Frequently Asked Questions
What is CVE-2012-1987?
Which Puppet versions are affected?
What version fixes CVE-2012-1987?
Is puppet affected?
What CWE is associated with CVE-2012-1987?
How can I check RubyGems dependencies for CVE-2012-1987?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"schema_version" : "1.4.0",
"id" : "GHSA-v58w-6xc2-w799",
"modified" : "2024-01-12T16:39:38Z",
"published" : "2022-05-14T00:56:45Z",
"aliases" : [ "CVE-2012-1987" ],
"summary" : "Puppet Denial of Service and Arbitrary File Write",
"details" : "A vulnerability in Puppet 2.6.x before 2.6.15 and 2.7.x before 2.7.13, and Puppet Enterprise (PE) Users 1.0, 1.1, 1.2.x, 2.0.x, and 2.5.x before 2.5.1 allows remote authenticated users with agent SSL keys to **(1)** cause a denial of service (memory consumption) via a REST request to a stream that triggers a thread block, as demonstrated using CVE-2012-1986 and `/dev/random`; or **(2)** cause a denial of service (filesystem consumption) via crafted REST requests that use \"a marshaled form of a `Puppet::FileBucket::File object`\" to write to arbitrary file locations.",
"severity" : [ ],
"affected" : [ {
"package" : {
"ecosystem" : "RubyGems",
"name" : "puppet"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "2.6.0"
}, {
"fixed" : "2.6.15"
} ]
} ]
}, {
"package" : {
"ecosystem" : "RubyGems",
"name" : "puppet"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "2.7.0"
}, {
"fixed" : "2.7.13"
} ]
} ]
} ],
"references" : [ {
"type" : "ADVISORY",
"url" : "https://nvd.nist.gov/vuln/detail/CVE-2012-1987"
}, {
"type" : "WEB",
"url" : "https://github.com/puppetlabs/puppet/commit/0d6d29933e613fe177e9235415919a5428db67bc"
}, {
"type" : "WEB",
"url" : "https://github.com/puppetlabs/puppet/commit/568ded50ec6cc498ad32ff7f086d9f73b5d24c14"
}, {
"type" : "WEB",
"url" : "https://exchange.xforce.ibmcloud.com/vulnerabilities/74794"
}, {
"type" : "ADVISORY",
"url" : "https://github.com/advisories/GHSA-v58w-6xc2-w799"
}, {
"type" : "PACKAGE",
"url" : "https://github.com/puppetlabs/puppet"
}, {
"type" : "WEB",
"url" : "https://github.com/rubysec/ruby-advisory-db/blob/master/gems/puppet/CVE-2012-1987.yml"
}, {
"type" : "WEB",
"url" : "https://hermes.opensuse.org/messages/14523305"
}, {
"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://web.archive.org/web/20120513213318/http://projects.puppetlabs.com/issues/13553"
}, {
"type" : "WEB",
"url" : "https://web.archive.org/web/20120513224202/http://projects.puppetlabs.com/issues/13552"
}, {
"type" : "WEB",
"url" : "https://web.archive.org/web/20121005145241/http://projects.puppetlabs.com/projects/1/wiki/Release_Notes#2.6.15"
}, {
"type" : "WEB",
"url" : "https://web.archive.org/web/20160808163232/https://puppet.com/security/cve/cve-2012-1987"
}, {
"type" : "WEB",
"url" : "http://lists.fedoraproject.org/pipermail/package-announce/2012-April/079227.html"
}, {
"type" : "WEB",
"url" : "http://lists.fedoraproject.org/pipermail/package-announce/2012-April/079289.html"
}, {
"type" : "WEB",
"url" : "http://lists.fedoraproject.org/pipermail/package-announce/2012-May/080003.html"
}, {
"type" : "WEB",
"url" : "http://ubuntu.com/usn/usn-1419-1"
}, {
"type" : "WEB",
"url" : "http://www.debian.org/security/2012/dsa-2451"
} ],
"database_specific" : {
"cwe_ids" : [ "CWE-400" ],
"severity" : "LOW",
"github_reviewed" : true,
"github_reviewed_at" : "2024-01-12T16:39:38Z",
"nvd_published_at" : "2012-05-29T20:55:00Z"
}
}