GitHub Advisory Database
GHSA-c4mc-49hq-q275
Puppet uses predictable filenames, allowing arbitrary file overwrite
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.
Affected packages
| Ecosystem | Package | Affected versions |
|---|---|---|
| RubyGems | puppet | From 2.6 before 2.6.15 (fixed in 2.6.15) |
| RubyGems | puppet | From 2.7 before 2.7.13 (fixed in 2.7.13) |
References
- https://nvd.nist.gov/vuln/detail/CVE-2012-1906
- https://github.com/puppetlabs/puppet/commit/f7829ec1f1b2c3def8e0eda09c22c3c1fed3a27f
- https://exchange.xforce.ibmcloud.com/vulnerabilities/74793
- https://github.com/rubysec/ruby-advisory-db/blob/master/gems/puppet/CVE-2012-1906.yml
- https://ubuntu.com/usn/usn-1419-1
- https://web.archive.org/web/20120415105345/http://www.securityfocus.com/bid/52975
- https://www.debian.org/security/2012/dsa-2451
- http://projects.puppetlabs.com/issues/13260
- http://puppetlabs.com/security/cve/cve-2012-1906