Vulnerabilities in pkg:gem/puppet

PACKAGE
Advisory Identifier: GHSA-vrh7-99jh-3fmm
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.

23 Known Advisory Record(s)
Package Vulnerability Intelligence

pkg:gem/puppet

23 Known Advisory Record(s)

Vulnerability advisories affecting package pkg:gem/puppet. Select an advisory below to view technical details or fixes.

Advisory ID CVE / NVD Severity Summary
GHSA-vrh7-99jh-3fmm CVE-2010-0156 LOW Puppet arbitrary files overwrite via a symlink attack
GHSA-8c56-v25w-f89c CVE-2011-3869 MODERATE Puppet arbitrary file overwrite
GHSA-qh3g-27jf-3j54 CVE-2011-3870 MODERATE Puppet allows local users to modify the permissions of arbitrary files
GHSA-mpmx-gm5v-q789 CVE-2011-3871 MODERATE Puppet uses predictable filenames, allowing arbitrary file overwrite
GHSA-9pvx-fwwh-w289 CVE-2011-0528 MODERATE Puppet does not properly restrict access to node resources
GHSA-v58w-6xc2-w799 CVE-2012-1987 LOW Puppet Denial of Service and Arbitrary File Write
GHSA-6xxq-j39w-g3f6 CVE-2012-1988 MODERATE Puppet Arbitrary Command Execution
GHSA-pqj5-7r86-64fv CVE-2016-2785 CRITICAL Puppet Improper Access Control
GHSA-77hg-g8cc-5r37 CVE-2012-1053 MODERATE Puppet Privilege Escallation
GHSA-c4mc-49hq-q275 CVE-2012-1906 MODERATE Puppet uses predictable filenames, allowing arbitrary file overwrite
GHSA-gqvf-892r-vjm5 CVE-2020-7942 MODERATE Improper Certificate Validation in Puppet
GHSA-92v7-pq4h-58j5 CVE-2014-3248 MODERATE facter, hiera, mcollective-client, and puppet affected by untrusted search path vulnerability
GHSA-f7p5-w2cr-7cp7 CVE-2013-3567 HIGH Puppet Improper Input Validation vulnerability
GHSA-574q-fxfj-wv6h CVE-2013-1655 HIGH Puppet Improper Input Validation vulnerability
GHSA-vxf6-w9mp-95hm CVE-2012-3408 LOW Puppet supports use of IP addresses in certnames without warning of potential risks
GHSA-q44r-f2hm-v76v CVE-2012-3867 MODERATE Pupper does not properly restrict characters in Common Name field of Certificate Signing Request
GHSA-g89m-3wjw-h857 CVE-2012-3865 LOW Puppet vulnerable to Path Traversal
GHSA-c5qq-g673-5p49 CVE-2012-1989 LOW Puppet allows local users to overwrite arbitrary files via a symlink attack
GHSA-8jxj-9r5f-w3m2 CVE-2012-3866 LOW Puppet allows local users to obtain sensitive configuration information
GHSA-cj43-9h3w-v976 CVE-2013-4761 MODERATE Puppet allows remote attackers to execute arbitrary Ruby programs from the master via the resource_type service
GHSA-vw22-465p-8j5w CVE-2017-10689 MODERATE Tarball permission preservation in puppet
GHSA-93j5-g845-9wqp CVE-2021-27023 MODERATE Unsafe HTTP Redirect in Puppet Agent and Puppet Server
GHSA-q4g7-jrxv-67r9 CVE-2021-27025 MODERATE Silent Configuration Failure in Puppet Agent

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"
  }
}