VDB
Sign up
MEDIUM5.5

GHSA-vw22-465p-8j5w

Tarball permission preservation in puppet

Quick fix

GHSA-vw22-465p-8j5w — puppet: upgrade to the fixed version with the command below.

bundle update puppet

Details

When installing a module using the system tar, the PMT will filter filesystem permissions to a sane value. This may just be based on the user's umask.

When using minitar, files are unpacked with whatever permissions are in the tarball. This is potentially unsafe, as tarballs can be easily created with weird permissions.

Are you affected?

Enter the version of the package you're using.

Affected packages

RubyGems/puppet
Introduced in: 0Fixed in: 4.10.10
Fixbundle update puppet
RubyGems/puppet
Introduced in: 5.0.0Fixed in: 5.3.4
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"]}'