CVE-2015-6240: Ansible Sandbox Escape via Symlink Attack
7.8
CVSS Score
3.0
Basic Information
CVE ID
GHSA ID
EPSS Score
0.0896%
CWE
Published
5/13/2022
Updated
8/30/2024
KEV Status
No
Technology
Python
Technical Details
CVSS Vector
CVSS:3.0/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
Package Name | Ecosystem | Vulnerable Versions | First Patched Version |
---|---|---|---|
ansible | pip | < 1.9.2 | 1.9.2 |
Vulnerability Intelligence
Miggo AI
Root Cause Analysis
The vulnerability stems from how file transfer functions (put_file/fetch_file) in chroot/jail/zone connection plugins handled paths. Pre-patch versions constructed target paths by naively joining the restricted environment's root directory with user-supplied paths, then used shutil.copyfile. This allowed symlinks within the restricted environment to resolve to host filesystem paths. The patches replaced this with in-environment 'dd' execution, ensuring symlinks are resolved within the restricted environment. The affected functions are clearly identified in commit diffs and CVE descriptions, with high confidence due to direct correlation between the vulnerability mechanism and the patched code changes.