{"id":"CVE-2011-3871","aliases":["DEBIAN-CVE-2011-3871","DSA-2314-1","EUVD-2022-4604","GHSA-mpmx-gm5v-q789"],"status":"published","title":"Puppet uses predictable filenames, allowing arbitrary file overwrite","description":"Puppet 2.7.x before 2.7.5, 2.6.x before 2.6.11, and 0.25.x, when running in --edit mode, uses a predictable file name, which allows local users to run arbitrary Puppet code or trick a user into editing arbitrary files.","severity":{"version":"2.0","score":6.2,"vector":"AV:L/AC:H/Au:N/C:C/I:C/A:C","level":"medium","assessor":"primary","from":"nvd"},"epss":{"day":"2026-11-08","score":0.00338,"percentile":0.27427,"model":"v2026.06.15"},"facts":{"in_kev":false,"known_exploited":false,"public_exploit":false,"fix_available":true},"cwes":["CWE-264","CWE-340"],"published":"2011-09-29T00:00:00Z","modified":"2026-08-25T02:47:35Z","fixes":[{"ecosystem":"RubyGems","package":"puppet","fixed_in":["2.6.11","2.7.5"],"sources":["ghsa","osv"]},{"ecosystem":"Debian:11","package":"puppet","fixed_in":["2.7.3-3"],"sources":["osv"]}],"affected":[{"source":"ghsa","ecosystem":"RubyGems","package":"puppet","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"2.6.11"}]}]},{"source":"ghsa","ecosystem":"RubyGems","package":"puppet","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"2.7.0"},{"fixed":"2.7.5"}]}]},{"source":"osv","ecosystem":"Debian:11","package":"puppet","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"2.7.3-3"}]}]},{"source":"osv","ecosystem":"Debian:6.0","package":"puppet","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"2.6.2-5+squeeze1"}]}],"versions":["2.6.2-4","2.6.2-5"],"bundled":4},{"source":"osv","ecosystem":"RubyGems","package":"puppet","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"2.7.0"},{"fixed":"2.7.5"}]}],"versions":["2.7.1","2.7.3","2.7.4"]},{"source":"osv","ecosystem":"RubyGems","package":"puppet","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"2.6.11"}]}],"versions":["0.13.0","0.13.1","0.13.2","0.13.6","0.16.0","0.18.4","0.22.4","0.23.0","0.23.1","0.23.2","0.24.0","0.24.1","0.24.2","0.24.3","0.24.4","0.24.5","0.24.6","0.24.7","0.24.8","0.24.9","0.25.0","0.25.1","0.25.2","0.25.3","0.25.4","0.25.5","0.9.2","2.6.0","2.6.1","2.6.10","2.6.2","2.6.3","2.6.4","2.6.5","2.6.6","2.6.7","2.6.8","2.6.9"]}],"products":[{"vendor":"puppet","product":"puppet"},{"vendor":"puppetlabs","product":"puppet"}],"references":[{"url":"http://lists.fedoraproject.org/pipermail/package-announce/2011-October/068061.html","tags":["vendor-advisory","x_refsource_FEDORA","x_transferred","Patch","fix","web"]},{"url":"http://lists.fedoraproject.org/pipermail/package-announce/2011-October/068093.html","tags":["vendor-advisory","x_refsource_FEDORA","x_transferred","Patch","fix","web"]},{"url":"http://www.debian.org/security/2011/dsa-2314","tags":["vendor-advisory","x_refsource_DEBIAN","x_transferred","advisory","web"]},{"url":"http://secunia.com/advisories/46458","tags":["third-party-advisory","x_refsource_SECUNIA","x_transferred","Vendor Advisory","advisory"]},{"url":"https://puppet.com/security/cve/cve-2011-3871","tags":["x_refsource_CONFIRM","x_transferred","web"]},{"url":"http://lists.fedoraproject.org/pipermail/package-announce/2011-October/068053.html","tags":["vendor-advisory","x_refsource_FEDORA","x_transferred","Patch","fix","web"]},{"url":"http://groups.google.com/group/puppet-announce/browse_thread/thread/91e3b46d2328a1cb","tags":["x_refsource_CONFIRM","x_transferred","Patch","fix","web"]},{"url":"http://www.ubuntu.com/usn/USN-1223-1","tags":["vendor-advisory","x_refsource_UBUNTU","x_transferred","advisory","web"]},{"url":"http://www.ubuntu.com/usn/USN-1223-2","tags":["vendor-advisory","x_refsource_UBUNTU","x_transferred","advisory","web"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2011-3871","tags":["advisory"]},{"url":"https://github.com/puppetlabs/puppet/commit/343c7bd381b63e042d437111718918f951d9b30d","tags":["web"]},{"url":"https://github.com/puppetlabs/puppet/commit/d76c30935460ded953792dfe49f72b8c5158e899","tags":["web"]},{"url":"https://github.com/rubysec/ruby-advisory-db/blob/master/gems/puppet/CVE-2011-3871.yml","tags":["web"]},{"url":"https://github.com/advisories/GHSA-mpmx-gm5v-q789"},{"url":"https://security-tracker.debian.org/tracker/CVE-2011-3871","tags":["advisory"]},{"url":"https://github.com/puppetlabs/puppet","tags":["package"]}],"sources":{"cve":[{"id":"CVE-2011-3871","description":"Puppet 2.7.x before 2.7.5, 2.6.x before 2.6.11, and 0.25.x, when running in --edit mode, uses a predictable file name, which allows local users to run arbitrary Puppet code or trick a user into editing arbitrary files.","status":"published","published":"2011-10-27T20:00:00Z","modified":"2024-08-06T23:53:31.193Z","updated_at":"2026-11-02T14:35:36.968002Z"}],"euvd":[{"id":"EUVD-2022-4604","description":"Puppet 2.7.x before 2.7.5, 2.6.x before 2.6.11, and 0.25.x, when running in --edit mode, uses a predictable file name, which allows local users to run arbitrary Puppet code or trick a user into editing arbitrary files.","status":"published","published":"2011-10-27T20:00:00Z","modified":"2024-08-06T23:53:31Z","updated_at":"2026-11-03T01:39:50.327874Z"}],"ghsa":[{"id":"GHSA-mpmx-gm5v-q789","title":"Puppet uses predictable filenames, allowing arbitrary file overwrite","description":"Puppet 2.7.x before 2.7.5, 2.6.x before 2.6.11, and 0.25.x, when running in `--edit` mode, uses a predictable file name, which allows local users to run arbitrary Puppet code or trick a user into editing arbitrary files.","status":"published","published":"2022-05-14T00:56:55Z","modified":"2024-01-19T19:51:29Z","cwes":["CWE-340"],"updated_at":"2026-11-02T14:37:31.550603Z"}],"nvd":[{"id":"CVE-2011-3871","description":"Puppet 2.7.x before 2.7.5, 2.6.x before 2.6.11, and 0.25.x, when running in --edit mode, uses a predictable file name, which allows local users to run arbitrary Puppet code or trick a user into editing arbitrary files.","status":"published","published":"2011-10-27T20:55:01.62Z","modified":"2026-06-16T23:34:04.33Z","cvss":[{"version":"2.0","score":6.2,"vector":"AV:L/AC:H/Au:N/C:C/I:C/A:C","level":"medium","assessor":"primary"}],"cwes":["CWE-264"],"updated_at":"2026-11-02T14:02:10.769216Z"}],"osv":[{"id":"CVE-2011-3871","description":"Puppet 2.7.x before 2.7.5, 2.6.x before 2.6.11, and 0.25.x, when running in --edit mode, uses a predictable file name, which allows local users to run arbitrary Puppet code or trick a user into editing arbitrary files.","status":"published","published":"2011-10-27T20:55:01Z","modified":"2026-04-10T03:42:00.187053Z","updated_at":"2026-11-02T15:43:58.279353Z"},{"id":"DEBIAN-CVE-2011-3871","description":"Puppet 2.7.x before 2.7.5, 2.6.x before 2.6.11, and 0.25.x, when running in --edit mode, uses a predictable file name, which allows local users to run arbitrary Puppet code or trick a user into editing arbitrary files.","status":"published","published":"2011-10-27T20:55:01.62Z","modified":"2026-08-25T02:47:35.954019536Z","updated_at":"2026-11-02T15:45:24.612044Z"},{"id":"DSA-2314-1","title":"puppet - several","status":"published","published":"2011-09-29T00:00:00Z","modified":"2026-03-09T01:22:23.312974Z","updated_at":"2026-11-02T15:46:15.108335Z"},{"id":"GHSA-mpmx-gm5v-q789","title":"Puppet uses predictable filenames, allowing arbitrary file overwrite","description":"Puppet 2.7.x before 2.7.5, 2.6.x before 2.6.11, and 0.25.x, when running in `--edit` mode, uses a predictable file name, which allows local users to run arbitrary Puppet code or trick a user into editing arbitrary files.","status":"published","published":"2022-05-14T00:56:55Z","modified":"2024-12-02T05:44:03.597681Z","cwes":["CWE-340"],"updated_at":"2026-11-02T15:46:52.170928Z"}]}}
