VDB
Sign up
MEDIUM

GHSA-c4mc-49hq-q275

Puppet uses predictable filenames, allowing arbitrary file overwrite

Quick fix

GHSA-c4mc-49hq-q275 — puppet: upgrade to the fixed version with the command below.

bundle update puppet

Details

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 uses predictable file names when installing Mac OS X packages from a remote source, which allows local users to overwrite arbitrary files or install arbitrary packages via a symlink attack on a temporary file in /tmp.

Are you affected?

Enter the version of the package you're using.

Affected packages

RubyGems/puppet
Introduced in: 2.6Fixed in: 2.6.15
Fixbundle update puppet
RubyGems/puppet
Introduced in: 2.7Fixed in: 2.7.13
Fixbundle update puppet

References

Check it before you install it

One call answers whether to add this package: known advisories, CISA KEV, and whether the name is a hallucinated or freshly squatted one. No key needed to try it.

curl -s https://vdb.ai.kr/v1/ai/check-packages \
  -H 'Content-Type: application/json' \
  -d '{"packages":["pkg:gem/puppet"]}'