CVE-2016-3096
published 2016-06-03CVE-2016-3096: 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…
PriorityP338high7.8CVSS 3.0
AVLACLPRLUINSUCHIHAH
EPSS
0.47%
37.5th percentile
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
13 ranges
| Vendor | Product | Version range | Fixed in |
|---|---|---|---|
| debian | ansible | < ansible 2.0.1.0-2 (bookworm) | ansible 2.0.1.0-2 (bookworm) |
| fedoraproject | fedora | — | — |
| fedoraproject | fedora | — | — |
| fedoraproject | fedora | — | — |
| redhat | ansible | <= 1.9.6 | — |
| redhat | ansible | — | — |
| redhat | ansible | — | — |
| redhat | ansible | >= 0 < 2.0.1.0-2 | 2.0.1.0-2 |
| redhat | ansible | >= 0 < 2.0.1.0-2 | 2.0.1.0-2 |
| redhat | ansible | >= 0 < 2.0.1.0-2 | 2.0.1.0-2 |
| redhat | ansible | >= 0 < 2.0.1.0-2 | 2.0.1.0-2 |
| redhat | ansible | >= 0 < 1.9.6.1 | 1.9.6.1 |
| redhat | ansible | >= 2.0.0.0 < 2.0.2.0 | 2.0.2.0 |
CVSS provenance
nvdv3.07.8HIGHCVSS:3.0/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
nvdv2.07.2HIGHAV:L/AC:L/Au:N/C:C/I:C/A:C
osv7.8HIGH
vendor_debian7.8HIGH
vendor_redhat7.8HIGH
Stop checking back — get the weekly exploitation signal.
Every Monday: what got weaponized or added to CISA KEV in the last seven days — each CVE cross-linked to its PoC, Nuclei template, and detection rule. Free, one email a week, unsubscribe in one click.
Red Hat
ansible: Code execution vulnerability in lxc_container
vendor_redhat·2016-03-31·CVSS 7.8
CVE-2016-3096 [HIGH] ansible: Code execution vulnerability in lxc_container
ansible: Code execution vulnerability in lxc_container
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.
Package: ansible (Red Hat OpenShift Enterprise 3) - Not affected
Debian
CVE-2016-3096: ansible - The create_script function in the lxc_container module in Ansible before 1.9.6-1...
vendor_debian·2016·CVSS 7.8
CVE-2016-3096 [HIGH] CVE-2016-3096: ansible - The create_script function in the lxc_container module in Ansible before 1.9.6-1...
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.
Scope: local
bookworm: resolved (fixed in 2.0.1.0-2)
bullseye: resolved (fixed in 2.0.1.0-2)
forky: resolved (fixed in 2.0.1.0-2)
sid: resolved (fixed in 2.0.1.0-2)
trixie: resolved (fixed in 2.0.1.0-2)
OSV
Link Following in ansible
osv·2018-10-10
CVE-2016-3096 [HIGH] Link Following in ansible
Link Following in ansible
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.
GHSA
Link Following in ansible
ghsa·2018-10-10
CVE-2016-3096 [HIGH] CWE-59 Link Following in ansible
Link Following in ansible
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.
OSV
CVE-2016-3096: The create_script function in the lxc_container module in Ansible before 1
osv·2016-06-03·CVSS 7.8
CVE-2016-3096 [HIGH] CVE-2016-3096: The create_script function in the lxc_container module in Ansible before 1
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.
No detection rules found.
No public exploits indexed.
Bugzilla
CVE-2016-3096 lxc: Code execution vulnerability in ansible lxc_container [fedora-all]
bugzilla·2016-03-31·CVSS 7.8
CVE-2016-3096 [HIGH] CVE-2016-3096 lxc: Code execution vulnerability in ansible lxc_container [fedora-all]
CVE-2016-3096 lxc: Code execution vulnerability in ansible lxc_container [fedora-all]
This is an automatically created tracking bug! It was created to ensure
that one or more security vulnerabilities are fixed in affected versions
of Fedora.
For comments that are specific to the vulnerability please use bugs filed
against the "Security Response" product referenced in the "Blocks" field.
For more information see:
http://fedoraproject.org/wiki/Security/TrackingBugs
When submitting as an update, use the fedpkg template provided in the next
comment(s). This will include the bug IDs of this tracking bug as well as
the relevant top-level CVE bugs.
Please also mention the CVE IDs being fixed in the RPM changelog and the
fedpkg commit message.
NOTE: this issue affects multiple supported vers
Bugzilla
CVE-2016-3096 ansible: Code execution vulnerability in lxc_container
bugzilla·2016-03-31·CVSS 7.8
CVE-2016-3096 [HIGH] CVE-2016-3096 ansible: Code execution vulnerability in lxc_container
CVE-2016-3096 ansible: Code execution vulnerability in lxc_container
A vulnerability in lxc_container, ansible module, was found allowing to get root inside the container. The problem is in the create_script function, which tries to write to /opt/.lxc-attach-script inside of the container. If the attacker can write to /opt/.lxc-attach-script before that, he can overwrite arbitrary files or execute commands as root.
Discussion:
Acknowledgments:
Name: Evgeni Golov (Red Hat)
---
Created lxc tracking bugs for this issue:
Affects: fedora-all [bug 1322926]
Affects: epel-all [bug 1322927]
---
Wrong component? The problem seems to affect
/usr/lib/python2.7/site-packages/ansible/modules/extras/cloud/lxc/lxc_container.py
which is part of the ansible package.
Could you please check and re
Bugzilla
CVE-2016-3096 lxc: Code execution vulnerability in ansible lxc_container [epel-all]
bugzilla·2016-03-31·CVSS 7.8
CVE-2016-3096 [HIGH] CVE-2016-3096 lxc: Code execution vulnerability in ansible lxc_container [epel-all]
CVE-2016-3096 lxc: Code execution vulnerability in ansible lxc_container [epel-all]
This is an automatically created tracking bug! It was created to ensure
that one or more security vulnerabilities are fixed in affected versions
of Fedora EPEL.
For comments that are specific to the vulnerability please use bugs filed
against the "Security Response" product referenced in the "Blocks" field.
For more information see:
http://fedoraproject.org/wiki/Security/TrackingBugs
When submitting as an update, use the fedpkg template provided in the next
comment(s). This will include the bug IDs of this tracking bug as well as
the relevant top-level CVE bugs.
Please also mention the CVE IDs being fixed in the RPM changelog and the
fedpkg commit message.
NOTE: this issue affects multiple supported v
http://lists.fedoraproject.org/pipermail/package-announce/2016-April/183103.htmlhttp://lists.fedoraproject.org/pipermail/package-announce/2016-April/183132.htmlhttp://lists.fedoraproject.org/pipermail/package-announce/2016-April/183252.htmlhttp://lists.fedoraproject.org/pipermail/package-announce/2016-April/183274.htmlhttp://lists.fedoraproject.org/pipermail/package-announce/2016-May/184175.htmlhttps://bugzilla.redhat.com/show_bug.cgi?id=1322925https://github.com/ansible/ansible-modules-extras/pull/1941https://github.com/ansible/ansible-modules-extras/pull/1941/commits/8c6fe646ee79f5e55361b885b7efed5bec72d4a4https://github.com/ansible/ansible/blob/v1.9.6-1/CHANGELOG.md#196-dancing-in-the-street---tbdhttps://github.com/ansible/ansible/blob/v2.0.2.0-1/CHANGELOG.md#202-over-the-hills-and-far-awayhttps://groups.google.com/forum/#%21topic/ansible-announce/E80HLZilTU0https://groups.google.com/forum/#%21topic/ansible-announce/tqiZbcWxYighttps://security.gentoo.org/glsa/201607-14http://lists.fedoraproject.org/pipermail/package-announce/2016-April/183103.htmlhttp://lists.fedoraproject.org/pipermail/package-announce/2016-April/183132.htmlhttp://lists.fedoraproject.org/pipermail/package-announce/2016-April/183252.htmlhttp://lists.fedoraproject.org/pipermail/package-announce/2016-April/183274.htmlhttp://lists.fedoraproject.org/pipermail/package-announce/2016-May/184175.htmlhttps://bugzilla.redhat.com/show_bug.cgi?id=1322925https://github.com/ansible/ansible-modules-extras/pull/1941https://github.com/ansible/ansible-modules-extras/pull/1941/commits/8c6fe646ee79f5e55361b885b7efed5bec72d4a4https://github.com/ansible/ansible/blob/v1.9.6-1/CHANGELOG.md#196-dancing-in-the-street---tbdhttps://github.com/ansible/ansible/blob/v2.0.2.0-1/CHANGELOG.md#202-over-the-hills-and-far-awayhttps://groups.google.com/forum/#%21topic/ansible-announce/E80HLZilTU0https://groups.google.com/forum/#%21topic/ansible-announce/tqiZbcWxYighttps://security.gentoo.org/glsa/201607-14
2016-06-03
Published