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

 

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

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


Vulnerability identifier: #VU40252
CSH Severity: Low
CVSS v4.0: 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/E:U/U:Clear
CVE-ID: CVE-2016-3096
CWE-ID: CWE-59
Exploitation vector: Local access
Exploit availability: No public exploit available
Vendor: Fedoraproject
Red Hat Inc.
Affected software:
Fedora
Ansible

Detailed vulnerability description

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.


How to mitigate CVE-2016-3096

Install update from vendor's website.

Sources