{"id":"CVE-2011-3871","aliases":["GHSA-mpmx-gm5v-q789"],"kind":"cve","tier":"cold","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.","ai_summary":null,"severity":"medium","cvss":{"score":6.2,"version":"2.0","vector":"AV:L/AC:H/Au:N/C:C/I:C/A:C","source":"NVD"},"scores":[{"score":6.2,"version":"2.0","vector":"AV:L/AC:H/Au:N/C:C/I:C/A:C","source":"nvd"}],"cwe":["CWE-264"],"remote":false,"remote_unauth":false,"epss":{"score":0.00338,"percentile":0.19753,"date":"2026-11-29"},"kev":{"listed":false,"added":null,"due":null,"ransomware":null},"exploit":{"public":false,"exploitdb_ids":[]},"affected":[{"ecosystem":"RubyGems","name":"puppet","affected":">= 2.7.0, < 2.7.5","fixed":["2.7.5","2.6.11"],"source":"osv"}],"affected_products":[{"vendor":"n/a","product":"n/a","versions":"","source":"nvd"}],"ai_versions":null,"mitigation":"Upgrade puppet to one of 2.7.5, 2.6.11 (or later in the same release line).","technologies":[],"references":[{"url":"http://lists.fedoraproject.org/pipermail/package-announce/2011-October/068061.html","kind":"vendor"},{"url":"http://lists.fedoraproject.org/pipermail/package-announce/2011-October/068093.html","kind":"vendor"},{"url":"http://www.debian.org/security/2011/dsa-2314","kind":"vendor"},{"url":"http://secunia.com/advisories/46458","kind":"vendor"},{"url":"http://lists.fedoraproject.org/pipermail/package-announce/2011-October/068053.html","kind":"vendor"},{"url":"http://www.ubuntu.com/usn/USN-1223-1","kind":"vendor"},{"url":"http://www.ubuntu.com/usn/USN-1223-2","kind":"vendor"},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2011-3871","kind":"vendor"},{"url":"http://groups.google.com/group/puppet-announce/browse_thread/thread/91e3b46d2328a1cb","kind":"patch"},{"url":"https://github.com/puppetlabs/puppet/commit/343c7bd381b63e042d437111718918f951d9b30d","kind":"patch"},{"url":"https://github.com/puppetlabs/puppet/commit/d76c30935460ded953792dfe49f72b8c5158e899","kind":"patch"},{"url":"https://puppet.com/security/cve/cve-2011-3871","kind":"other"},{"url":"https://github.com/puppetlabs/puppet","kind":"other"},{"url":"https://github.com/rubysec/ruby-advisory-db/blob/master/gems/puppet/CVE-2011-3871.yml","kind":"other"}],"workarounds":null,"vendors":["puppet","puppetlabs"],"products":["puppet"],"cpes":["cpe:2.3:a:puppet:puppet:0.25.0:*:*:*:*:*:*:*","cpe:2.3:a:puppet:puppet:0.25.1:*:*:*:*:*:*:*","cpe:2.3:a:puppet:puppet:0.25.2:*:*:*:*:*:*:*","cpe:2.3:a:puppet:puppet:0.25.3:*:*:*:*:*:*:*","cpe:2.3:a:puppet:puppet:0.25.4:*:*:*:*:*:*:*","cpe:2.3:a:puppet:puppet:0.25.5:*:*:*:*:*:*:*","cpe:2.3:a:puppet:puppet:0.25.6:*:*:*:*:*:*:*","cpe:2.3:a:puppet:puppet:2.6.0:*:*:*:*:*:*:*","cpe:2.3:a:puppet:puppet:2.6.10:*:*:*:*:*:*:*","cpe:2.3:a:puppet:puppet:2.6.1:*:*:*:*:*:*:*","cpe:2.3:a:puppet:puppet:2.6.2:*:*:*:*:*:*:*","cpe:2.3:a:puppet:puppet:2.6.3:*:*:*:*:*:*:*","cpe:2.3:a:puppet:puppet:2.6.4:*:*:*:*:*:*:*","cpe:2.3:a:puppet:puppet:2.6.5:*:*:*:*:*:*:*","cpe:2.3:a:puppet:puppet:2.6.6:*:*:*:*:*:*:*","cpe:2.3:a:puppet:puppet:2.6.7:*:*:*:*:*:*:*","cpe:2.3:a:puppet:puppet:2.6.8:*:*:*:*:*:*:*","cpe:2.3:a:puppet:puppet:2.6.9:*:*:*:*:*:*:*","cpe:2.3:a:puppet:puppet:2.7.2:*:*:*:*:*:*:*","cpe:2.3:a:puppet:puppet:2.7.3:*:*:*:*:*:*:*","cpe:2.3:a:puppet:puppet:2.7.4:*:*:*:*:*:*:*","cpe:2.3:a:puppetlabs:puppet:2.7.0:*:*:*:*:*:*:*","cpe:2.3:a:puppetlabs:puppet:2.7.1:*:*:*:*:*:*:*"],"published_at":"2011-10-27T20:00:00.000Z","modified_at":"2026-06-16T23:34:04.330Z","promoted_at":null,"attribution":[{"source":"CVE Program","text":"CVE® is a registered trademark of The MITRE Corporation. CVE records © 1999–2026 The MITRE Corporation.","url":"https://www.cve.org/Legal/TermsOfUse"},{"source":"NVD","text":"This product uses data from the NVD API but is not endorsed or certified by the NVD.","url":"https://nvd.nist.gov/vuln/detail/CVE-2011-3871"},{"source":"OSV","text":"CC-BY 4.0","url":"https://osv.dev/vulnerability/GHSA-mpmx-gm5v-q789","license_url":"https://creativecommons.org/licenses/by/4.0/"}],"links":{"html":"https://flawdb.com/CVE-2011-3871","markdown":"https://flawdb.com/CVE-2011-3871.md","json":"https://flawdb.com/api/v1/entries/CVE-2011-3871"}}