Moderate severityNVD Advisory· Published Sep 16, 2013· Updated Apr 29, 2026
CVE-2013-4260
CVE-2013-4260
Description
lib/ansible/playbook/__init__.py in Ansible 1.2.x before 1.2.3, when playbook does not run due to an error, allows local users to overwrite arbitrary files via a symlink attack on a retry file with a predictable name in /var/tmp/ansible/.
Affected packages
Versions sourced from the GitHub Security Advisory.
| Package | Affected versions | Patched versions |
|---|---|---|
ansiblePyPI | >= 1.2, < 1.2.3 | 1.2.3 |
Affected products
3Patches
1d5948d59fc86Place retry file in the user's home dir instead of /var/lib/tmp
1 file changed · +1 −7
lib/ansible/playbook/__init__.py+1 −7 modified@@ -447,13 +447,7 @@ def generate_retry_inventory(self, replay_hosts): basedir = self.inventory.basedir() filename = "%s.retry" % os.path.basename(self.filename) filename = filename.replace(".yml","") - - if not os.path.exists('/var/tmp/ansible'): - try: - os.makedirs('/var/tmp/ansible') - except: - pass - filename = os.path.join('/var/tmp/ansible', filename) + filename = os.path.join(os.path.expandvars('$HOME/'), filename) try: fd = open(filename, 'w')
Vulnerability mechanics
Generated by null/stub on May 9, 2026. Inputs: CWE entries + fix-commit diffs from this CVE's patches. Citations validated against bundle.
References
9- bugzilla.redhat.com/show_bug.cginvdIssue TrackingPatchWEB
- www.ansible.com/securitynvdVendor AdvisoryWEB
- exchange.xforce.ibmcloud.com/vulnerabilities/86898nvdVDB EntryVendor AdvisoryWEB
- github.com/advisories/GHSA-pcqv-c46v-2p4vghsaADVISORY
- nvd.nist.gov/vuln/detail/CVE-2013-4260ghsaADVISORY
- github.com/ansible/ansible/commit/d5948d59fc863fcec6efa62fa2791928ffc5a6d1ghsaWEB
- github.com/pypa/advisory-database/tree/main/vulns/ansible/PYSEC-2013-2.yamlghsaWEB
- groups.google.com/forum/ghsaWEB
- groups.google.com/forum/nvdWEB
News mentions
0No linked articles in our index yet.