CVE-2012-1987: Puppet Denial of Service Vulnerability

LOW
Advisory Identifier: GHSA-v58w-6xc2-w799
CWE-400
Published
Advisory Summary

CVE-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

CVE Identifier CVE-2012-1987
GHSA Identifier GHSA-v58w-6xc2-w799
Severity LOW
CVSS v3.1 Base Score N/A
CWE Classification CWE-400: Uncontrolled Resource Consumption
Affected Product Puppet
Package Ecosystem RubyGems
Published Date
Last Updated

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.

puppet fixed: 2.6.15
Upgrade puppet to 2.6.15
puppet fixed: 2.7.13
Upgrade puppet to 2.7.13
Verify Direct and Transitive Dependencies

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

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.

CVE-2012-1987 Affected Puppet Versions

2 component(s)
Fixed Versions:
2.6.152.7.13
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

NVD — CVE-2012-1987 NVD
https://nvd.nist.gov/vuln/detail/CVE-2012-1987
Security Fix Commit FIX COMMIT
https://github.com/puppetlabs/puppet/commit/0d6d29933e613fe177e9235415919a5428db67bc
Security Fix Commit FIX COMMIT
https://github.com/puppetlabs/puppet/commit/568ded50ec6cc498ad32ff7f086d9f73b5d24c14
exchange.xforce.ibmcloud.com/vulnerabilities/747... WEB
https://exchange.xforce.ibmcloud.com/vulnerabilities/74794
GitHub Advisory / Wiki ADVISORY
https://github.com/advisories/GHSA-v58w-6xc2-w799
Puppet Source Repository REPOSITORY
https://github.com/puppetlabs/puppet
Puppet Source Repository REPOSITORY
https://github.com/rubysec/ruby-advisory-db/blob/master/gems/puppet/CVE-2012-1987.yml
hermes.opensuse.org/messages/14523305 WEB
https://hermes.opensuse.org/messages/14523305
hermes.opensuse.org/messages/15087408 WEB
https://hermes.opensuse.org/messages/15087408
Puppet Security Information SECURITY
https://web.archive.org/web/20120415105345/http://www.securityfocus.com/bid/52975
web.archive.org/web/20120513213318/... WEB
https://web.archive.org/web/20120513213318/http://projects.puppetlabs.com/issues/13553
web.archive.org/web/20120513224202/... WEB
https://web.archive.org/web/20120513224202/http://projects.puppetlabs.com/issues/13552
web.archive.org/web/20121005145241/... WEB
https://web.archive.org/web/20121005145241/http://projects.puppetlabs.com/projects/1/wiki/Release_Notes#2.6.15
Puppet Security Information SECURITY
https://web.archive.org/web/20160808163232/https://puppet.com/security/cve/cve-2012-1987
lists.fedoraproject.org/pipermail/package-a... WEB
http://lists.fedoraproject.org/pipermail/package-announce/2012-April/079227.html
lists.fedoraproject.org/pipermail/package-a... WEB
http://lists.fedoraproject.org/pipermail/package-announce/2012-April/079289.html
lists.fedoraproject.org/pipermail/package-a... WEB
http://lists.fedoraproject.org/pipermail/package-announce/2012-May/080003.html
ubuntu.com/usn/usn-1419-1 WEB
http://ubuntu.com/usn/usn-1419-1
Puppet Security Information SECURITY
http://www.debian.org/security/2012/dsa-2451

Frequently Asked Questions

What is CVE-2012-1987?
CVE-2012-1987 is a security vulnerability in Puppet involving Puppet Denial of Service and Arbitrary File Write under CWE-400: Uncontrolled Resource Consumption.
Which Puppet versions are affected?
Affected versions include releases prior to 2.6.15, 2.7.13 across affected packages: puppet.
What version fixes CVE-2012-1987?
Upgrading to 2.6.15, 2.7.13 (or the latest patched release for your respective branch) resolves the vulnerability.
Is puppet affected?
Yes, puppet is affected in releases prior to 2.6.15, 2.7.13. Upgrade your dependency to 2.6.15, 2.7.13 or later.
What CWE is associated with CVE-2012-1987?
CVE-2012-1987 is classified under CWE-400: Uncontrolled Resource Consumption (The product does not properly control the allocation and maintenance of a limited resource.).
How can I check RubyGems dependencies for CVE-2012-1987?
Run the dependency tree command: 'inspect dependencies for puppet'. This command lists direct and transitive dependencies in your build configuration so you can verify if a vulnerable version is resolved.
Machine-readable OSV JSON OSV v1.5 Schema
Normalized schema output
{
  "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"
  }
}