Description
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.
References (13)
Core 13
Core References
Mailing List mailing-list
x_refsource_mlist
https://groups.google.com/forum/#%21topic/ansible-announce/tqiZbcWxYig
Mailing List mailing-list
x_refsource_mlist
https://groups.google.com/forum/#%21topic/ansible-announce/E80HLZilTU0
Issue Tracking x_refsource_confirm
https://bugzilla.redhat.com/show_bug.cgi?id=1322925
Vendor Advisory vendor-advisory
x_refsource_fedora
http://lists.fedoraproject.org/pipermail/package-announce/2016-April/183274.html
Vendor Advisory vendor-advisory
x_refsource_fedora
http://lists.fedoraproject.org/pipermail/package-announce/2016-April/183252.html
Patch x_refsource_confirm
https://github.com/ansible/ansible-modules-extras/pull/1941/commits/8c6fe646ee79f5e55361b885b7efed5bec72d4a4
Vendor Advisory vendor-advisory
x_refsource_fedora
http://lists.fedoraproject.org/pipermail/package-announce/2016-May/184175.html
Patch x_refsource_confirm
https://github.com/ansible/ansible/blob/v2.0.2.0-1/CHANGELOG.md#202-over-the-hills-and-far-away
Vendor Advisory vendor-advisory
x_refsource_fedora
http://lists.fedoraproject.org/pipermail/package-announce/2016-April/183132.html
Third Party Advisory vendor-advisory
x_refsource_fedora
http://lists.fedoraproject.org/pipermail/package-announce/2016-April/183103.html
Third Party Advisory vendor-advisory
x_refsource_gentoo
https://security.gentoo.org/glsa/201607-14
Patch x_refsource_confirm
https://github.com/ansible/ansible-modules-extras/pull/1941
Third Party Advisory x_refsource_confirm
https://github.com/ansible/ansible/blob/v1.9.6-1/CHANGELOG.md#196-dancing-in-the-street---tbd
Scores
CVSS v3
7.8
EPSS
0.0047
EPSS Percentile
36.8%
Attack Vector
LOCAL
CVSS:3.0/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
Details
CWE
CWE-59
Status
published
Products (7)
fedoraproject/fedora
22
fedoraproject/fedora
23
fedoraproject/fedora
24
pypi/ansible
2.0.0.0 - 2.0.2.0PyPI
redhat/ansible
2.0
redhat/ansible
2.0.1
redhat/ansible
< 1.9.6
Published
Jun 03, 2016
Tracked Since
Feb 18, 2026