CVE-2010-0156: Puppet Puppet Arbitrary Files Overwrite Vulnerability

LOW
Advisory Identifier: GHSA-vrh7-99jh-3fmm
CWE-59
Published
Advisory Summary

CVE-2010-0156 is a LOW puppet arbitrary files overwrite vulnerability (CWE-59: Improper Link Resolution Before File Access ('Link Following')) affecting Puppet libraries in the RubyGems ecosystem. The issue involves puppet arbitrary files overwrite via a symlink attack. Remediation is available by upgrading affected packages to version 0.24.9, 0.25.2.

CVE-2010-0156 at a Glance

CVE Identifier CVE-2010-0156
GHSA Identifier GHSA-vrh7-99jh-3fmm
Severity LOW
CVSS v3.1 Base Score N/A
CWE Classification CWE-59: Improper Link Resolution Before File Access ('Link Following')
Affected Product Puppet
Package Ecosystem RubyGems
Published Date
Last Updated

How to Fix CVE-2010-0156

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: 0.24.9
Upgrade puppet to 0.24.9
puppet fixed: 0.25.2
Upgrade puppet to 0.25.2
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-2010-0156, 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 0.24.9), 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

Puppet 0.24.x before 0.24.9 and 0.25.x before 0.25.2 allows local users to overwrite arbitrary files via a symlink attack on the (1) /tmp/daemonout, (2) /tmp/puppetdoc.txt, (3) /tmp/puppetdoc.tex, or (4) /tmp/puppetdoc.aux temporary file.

CVE-2010-0156 Affected Puppet Versions

2 component(s)
Fixed Versions:
0.24.90.25.2
Product / Package Ecosystem Affected Versions Fixed Version
puppet
RubyGems
≥ 0.24.0
< 0.24.9
0.24.9
puppet
RubyGems
≥ 0.25.0
< 0.25.2
0.25.2

References

Frequently Asked Questions

What is CVE-2010-0156?
CVE-2010-0156 is a security vulnerability in Puppet involving Puppet arbitrary files overwrite via a symlink attack under CWE-59: Improper Link Resolution Before File Access ('Link Following').
Which Puppet versions are affected?
Affected versions include releases prior to 0.24.9, 0.25.2 across affected packages: puppet.
What version fixes CVE-2010-0156?
Upgrading to 0.24.9, 0.25.2 (or the latest patched release for your respective branch) resolves the vulnerability.
Is puppet affected?
Yes, puppet is affected in releases prior to 0.24.9, 0.25.2. Upgrade your dependency to 0.24.9, 0.25.2 or later.
What CWE is associated with CVE-2010-0156?
CVE-2010-0156 is classified under CWE-59: Improper Link Resolution Before File Access ('Link Following') (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.).
How can I check RubyGems dependencies for CVE-2010-0156?
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-vrh7-99jh-3fmm",
  "modified" : "2024-02-06T22:38:26Z",
  "published" : "2022-05-02T06:10:33Z",
  "aliases" : [ "CVE-2010-0156" ],
  "summary" : "Puppet arbitrary files overwrite via a symlink attack",
  "details" : "Puppet 0.24.x before 0.24.9 and 0.25.x before 0.25.2 allows local users to overwrite arbitrary files via a symlink attack on the (1) /tmp/daemonout, (2) /tmp/puppetdoc.txt, (3) /tmp/puppetdoc.tex, or (4) /tmp/puppetdoc.aux temporary file.",
  "severity" : [ ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "RubyGems",
      "name" : "puppet"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0.24.0"
      }, {
        "fixed" : "0.24.9"
      } ]
    } ]
  }, {
    "package" : {
      "ecosystem" : "RubyGems",
      "name" : "puppet"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0.25.0"
      }, {
        "fixed" : "0.25.2"
      } ]
    } ]
  } ],
  "references" : [ {
    "type" : "ADVISORY",
    "url" : "https://nvd.nist.gov/vuln/detail/CVE-2010-0156"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/puppetlabs/puppet/commit/0aae57f91dc69b22fb674f8de3a13c22edd07128"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/puppetlabs/puppet/commit/6111ba80f2c6f6d1541af971f565119e6e03d77d"
  }, {
    "type" : "WEB",
    "url" : "https://bugzilla.redhat.com/show_bug.cgi?id=502881"
  }, {
    "type" : "PACKAGE",
    "url" : "https://github.com/puppetlabs/puppet"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/rubysec/ruby-advisory-db/blob/master/gems/puppet/CVE-2010-0156.yml"
  }, {
    "type" : "WEB",
    "url" : "https://puppet.com/security/cve/cve-2010-0156"
  }, {
    "type" : "WEB",
    "url" : "https://web.archive.org/web/20100316113904/http://secunia.com/advisories/38766"
  }, {
    "type" : "WEB",
    "url" : "http://groups.google.com/group/puppet-announce/browse_thread/thread/4401823f6cbf6087"
  }, {
    "type" : "WEB",
    "url" : "http://groups.google.com/group/puppet-announce/browse_thread/thread/73cd1b2896d986c2"
  }, {
    "type" : "WEB",
    "url" : "http://lists.fedoraproject.org/pipermail/package-announce/2010-March/036083.html"
  }, {
    "type" : "WEB",
    "url" : "http://lists.fedoraproject.org/pipermail/package-announce/2010-March/036166.html"
  }, {
    "type" : "WEB",
    "url" : "http://lists.opensuse.org/opensuse-security-announce/2010-06/msg00001.html"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-59" ],
    "severity" : "LOW",
    "github_reviewed" : true,
    "github_reviewed_at" : "2024-02-06T22:38:26Z",
    "nvd_published_at" : "2010-03-03T19:30:00Z"
  }
}