The create_script function in the lxc_container module in Ansible before 1.9.6-1 and 2.x…
Key facts
- Attack vector
- Local
- Privileges required
- Low
- User interaction
- None
- Attack complexity
- Low
- Impact type
- —
- Confidentiality · integrity · availability
- High · High · High
- Fix status
- Fixed
Attack profile from CVSS 3.0 · NVD. Fix status from CNA and GitHub.
Summary
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.
Why it matters now
SSVC decision points
Not available: CISA has not published SSVC decision points for this record.
Affected products
| Vendor | Product | Affected versions | Fixed in | Status | Source |
|---|---|---|---|---|---|
| — | — | all versions | — | No fix listed | CNA |
| — | ansible (PyPI) | 2.0.0.0 to before 2.0.2.0 | 2.0.2.0 | Patch available | GHSA-rh6x-qvg7-rrmj |
| — | ansible (PyPI) | before 1.9.6.1 | 1.9.6.1 | Patch available | GHSA-rh6x-qvg7-rrmj |
- — Vendor— Affected all versions Fixed in — No fix listed CNA
- ansible (PyPI) Vendor— Affected 2.0.0.0 to before 2.0.2.0 Fixed in 2.0.2.0 Patch available GHSA-rh6x-qvg7-rrmj
- ansible (PyPI) Vendor— Affected before 1.9.6.1 Fixed in 1.9.6.1 Patch available GHSA-rh6x-qvg7-rrmj
CPE configurations NVD · 6
| CPE | Versions | Role | Vendor |
|---|---|---|---|
| cpe:2.3:o:fedoraproject:fedora:22:*:*:*:*:*:*:* | 22 | Vulnerable | Fedoraproject |
| cpe:2.3:o:fedoraproject:fedora:23:*:*:*:*:*:*:* | 23 | Vulnerable | Fedoraproject |
| cpe:2.3:o:fedoraproject:fedora:24:*:*:*:*:*:*:* | 24 | Vulnerable | Fedoraproject |
| cpe:2.3:a:redhat:ansible:*:*:*:*:*:*:*:* | up to 1.9.6 | Vulnerable | Red Hat |
| cpe:2.3:a:redhat:ansible:2.0:*:*:*:*:*:*:* | 2.0 | Vulnerable | Red Hat |
| cpe:2.3:a:redhat:ansible:2.0.1:*:*:*:*:*:*:* | 2.0.1 | Vulnerable | Red Hat |
- cpe:2.3:o:fedoraproject:fedora:22:*:*:*:*:*:*:* Versions 22 Vulnerable ·Fedoraproject
- cpe:2.3:o:fedoraproject:fedora:23:*:*:*:*:*:*:* Versions 23 Vulnerable ·Fedoraproject
- cpe:2.3:o:fedoraproject:fedora:24:*:*:*:*:*:*:* Versions 24 Vulnerable ·Fedoraproject
- cpe:2.3:a:redhat:ansible:*:*:*:*:*:*:*:* Versions up to 1.9.6 Vulnerable ·Red Hat
- cpe:2.3:a:redhat:ansible:2.0:*:*:*:*:*:*:* Versions 2.0 Vulnerable ·Red Hat
- cpe:2.3:a:redhat:ansible:2.0.1:*:*:*:*:*:*:* Versions 2.0.1 Vulnerable ·Red Hat
Remediation
- Fix · GHSA-rh6x-qvg7-rrmj ansible (PyPI) Fixed in 2.0.2.0 Advisory →
- Fix · GHSA-rh6x-qvg7-rrmj ansible (PyPI) Fixed in 1.9.6.1 Advisory →
Vendor assessments
Red Hat
Red Hat rating: Important. Red Hat's page for this CVE →
Not affected: 1 product
- Red Hat OpenShift Enterprise 3
Timeline
- 2026-10-02 Threatist record created from CVE-2016-3096
- 2026-10-03 Alias added: GHSA-rh6x-qvg7-rrmj
References
Patch 3
Advisory 9
- FEDORA-2016-cd3cf8e7d0
- FEDORA-2016-ab154c56dd
- FEDORA-2016-679c4ddd3c
- FEDORA-2016-65519440f5
- FEDORA-2016-28ff51a3f5
- GLSA-201607-14
- https://github.com/ansible/ansible/blob/v1.9.6-1/CHANGELOG.md#196-dancing-in-the-street---tbd
- https://nvd.nist.gov/vuln/detail/CVE-2016-3096
- https://github.com/advisories/GHSA-rh6x-qvg7-rrmj
Other 8
- https://bugzilla.redhat.com/show_bug.cgi?id=1322925
- [ansible-announce] 20160415 Ansible 1.9.6-1 has been released
- [ansible-announce] 20160419 Ansible 2.0.2.0 has been released
- https://github.com/ansible/ansible-modules-extras/commit/7c3999a92a1cd856ff9bc8913a93ff1aee8bffc3
- https://github.com/ansible/ansible
- https://github.com/pypa/advisory-database/tree/main/vulns/ansible/PYSEC-2016-1.yaml
- https://groups.google.com/forum/#!topic/ansible-announce/E80HLZilTU0
- https://groups.google.com/forum/#!topic/ansible-announce/tqiZbcWxYig
Sources
- CVE-2016-3096 · CVE Program
- CVE-2016-3096 · NVD
- FIRST EPSS
- GHSA-rh6x-qvg7-rrmj · GitHub Advisory Database · CC BY 4.0
- CVE-2016-3096 · Red Hat security data · CC BY 4.0
This product uses the NVD API but is not endorsed or certified by the NVD. Sources and licences