The create_script function in the lxc_container module in Ansible before 1.9.6-1 and 2.x before 2.0.2.0 allows local users to write to arbitrary files or gain privileges via a symlink attack on (1) /opt/.lxc-attach-script, (2) the archived container in the archive_path directory, or the (3) lxc-attach-script.log or (4) lxc-attach-script.err files in the temporary directory.
The product attempts to access a file based on the filename, but it does not properly prevent that filename from identifying a link or shortcut that resolves to an unintended resource.
Name | Vendor | Start Version | End Version |
---|---|---|---|
Fedora | Fedoraproject | 22 (including) | 22 (including) |
Fedora | Fedoraproject | 23 (including) | 23 (including) |
Fedora | Fedoraproject | 24 (including) | 24 (including) |
Ansible | Ubuntu | trusty | * |
Ansible | Ubuntu | upstream | * |
Ansible | Ubuntu | wily | * |
Ansible | Ubuntu | xenial | * |