CVE-2015-6240 Ansible Sandbox Escape via Symlink Attack
Local users can escape restricted environments in Ansible via symlink attacks in chroot, jail, and zone plugins.
- Exploited in the wild
- Not known
- Login needed
- Any signed-in user
- Attackable
- Local or same network only
- Victim action needed
- Not needed
- Fix
- Available
What is CVE-2015-6240?
CVE-2015-6240 is a high-severity path traversal vulnerability in n/a, published on 7 Jun 2017. It can only be exploited from the same machine or local network, with no action from the victim.
Official description
The chroot, jail, and zone connection plugins in ansible before 1.9.2 allow local users to escape a restricted environment via a symlink attack.
Weakness: CWE-59
Which versions are affected by CVE-2015-6240?
3 open source packages ship an affected version, including ansible. It affects 1 product.
| Package | Affected | Fixed in |
|---|---|---|
ansible PyPI | All versions | 1.9.2 |
ansible PyPI | All versions | 1.9.2 |
ansible PyPI | All versions | 1.9.2 |
Products include Redhat Ansible.
How do I fix CVE-2015-6240?
Upgrade ansible to 1.9.2 or later.
Upgrade, and resolve every user-supplied path against an allowed base folder before opening it. More about Path traversal.
Is CVE-2015-6240 being exploited?
There is no known exploitation of CVE-2015-6240 in the wild and no public exploit code.
Other vulnerabilities in n/a
Sources
Also known as DEBIAN-CVE-2015-6240, GHSA-wwwh-47wp-m522, PYSEC-2017-3, UBUNTU-CVE-2015-6240.