CVE-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…
Check your servers for CVE-2016-3096
The Vulnpocalypse agent sends the package list of each Linux server and of its container images once a day. Vulnpocalypse shows every server where CVE-2016-3096 affects a package, with the command that installs the fix. The free plan covers one server and does not need a credit card.
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.
Exploitation
EPSS 0.47%: the probability of exploitation activity in the next 30 days, from the EPSS model of FIRST. The score is higher than 32.6% of all scored CVEs. Scores of 27 Nov 2026.
Affected products
As the CNA lists them.
| Product | Versions |
|---|---|
|
n/a
n/a
|
affected all versions
|
Is my server affected?
Find the installed version of the package (replace PACKAGE with its name) and compare it with the fixed version of your distribution. Distributions often fix a CVE in a package version of their own, so the version number of the upstream project can mislead.
Debian, Ubuntu
dpkg -l | grep -i PACKAGE
# packages whose changelog names the CVE (fixed in the installed version)
zgrep -l CVE-2016-3096 /usr/share/doc/*/changelog.Debian.gz
# Ubuntu
pro fix CVE-2016-3096RHEL, Rocky, Alma, Fedora
rpm -q PACKAGE
# lists the advisory while the fix is not installed
dnf updateinfo list --cve CVE-2016-3096Alpine
apk list --installed | grep -i PACKAGEWith Trivy, on the host and for a container image. When a package is affected, it prints the installed and the fixed version:
trivy rootfs --scanners vuln / | grep CVE-2016-3096
trivy image --scanners vuln IMAGE | grep CVE-2016-3096
Vulnpocalypse makes this comparison every day for the package lists of your servers and container images, including language packages (npm, PyPI, Go, Maven and others), and sends the command that installs the fix. Start free with one server or read how to install the agent.
References
Advisories
- https://bugzilla.redhat.com/show_bug.cgi?id=1322925 bugzilla.redhat.com
- FEDORA-2016-cd3cf8e7d0 lists.fedoraproject.org · vendor advisory
- FEDORA-2016-ab154c56dd lists.fedoraproject.org · vendor advisory
- https://github.com/ansible/ansible-modules-extras/pull/1941/commits/8c6fe646ee79f5e55361b885b7efed5bec72d4a4 github.com
- FEDORA-2016-679c4ddd3c lists.fedoraproject.org · vendor advisory
- https://github.com/ansible/ansible/blob/v2.0.2.0-1/CHANGELOG.md#202-over-the-hills-and-far-away github.com
- FEDORA-2016-65519440f5 lists.fedoraproject.org · vendor advisory
- FEDORA-2016-28ff51a3f5 lists.fedoraproject.org · vendor advisory
- GLSA-201607-14 security.gentoo.org · vendor advisory
- https://github.com/ansible/ansible-modules-extras/pull/1941 github.com
- https://github.com/ansible/ansible/blob/v1.9.6-1/CHANGELOG.md#196-dancing-in-the-street---tbd github.com
Other references
- [ansible-announce] 20160415 Ansible 1.9.6-1 has been released groups.google.com · mailing list
- [ansible-announce] 20160419 Ansible 2.0.2.0 has been released groups.google.com · mailing list
Source: the record CVE-2016-3096 of the CVE List (CVE Program), CVE Terms of Use; EPSS of FIRST. The text of the record is shown as published. Data sources and licences.
Vulnpocalypse