Link following in Ansible and Fedora - CVE-2016-3096

 

Link following in Ansible and Fedora - CVE-2016-3096

Published: June 3, 2016 / Updated: August 9, 2020


Vulnerability identifier: #VU40252
CSH Severity: Low
CVSS v4: 8.5 [CVSS:4.0/AV:L/AC:L/AT:N/PR:L/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N]
CVE-ID: CVE-2016-3096
CWE-ID: CWE-59
Exploitation vector: Local access
Exploit availability: No public exploit available

Vulnerability details

The vulnerability allows a local authenticated user to execute arbitrary code.

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.


Affected software

Ansible
Fedora
Gentoo Linux
ansible1.9
ansible

How to mitigate CVE-2016-3096

Install update from vendor's website.

ansible1.9 - addressed in versions 1.9.6-1.el6, 1.9.6-1.el7, 1.9.6-1.fc22, 1.9.6-1.fc23, 1.9.6-2.el6, 1.9.6-2.el7
ansible - addressed in versions 2.0.2.0-1.el6, 2.0.2.0-1.el7, 2.0.2.0-1.fc22, 2.0.2.0-1.fc23, 2.0.2.0-1.fc24

External References

Related Security Bulletins