CVE-2016-3096
Link Following in ansible
Also known as GHSA-rh6x-qvg7-rrmj, PYSEC-2016-1
Mitigation
- Upgrade ansible to one of 2.0.2.0, 1.9.6.1 (or later in the same release line).
Who should check
- Projects that depend on PyPI package ansible (>= 2.0.0.0, < 2.0.2.0)
- Anyone running n/a (versions: see the vendor advisory)
Vulnerability facts
- Affected
- ansible >= 2.0.0.0, < 2.0.2.0
- Fixed in
- 2.0.2.0, 1.9.6.1
- Exploited in the wild
- Not in CISA KEV
- Public exploit / PoC
- None known
- Remote exploitation
- Not remotely exploitable (local or adjacent access needed)
- CVSS
- 7.8 (v3.0, NVD)CVSS:3.0/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:HOpen in CVSS calculator
Show all 8 CVSS metrics
- Attack vector: Local
- Attack complexity: Low
- Privileges required: Low
- User interaction: None
- Scope: Unchanged
- Confidentiality impact: High
- Integrity impact: High
- Availability impact: High
- EPSS
- 0.47% chance of exploitation in 30 days (percentile 33, 2026-11-26)
- CWE
- CWE-59
- Modified
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.
Affected and fixed versions
| Package / product | Affected | Fixed | Source |
|---|---|---|---|
| PyPI ansible | >= 2.0.0.0, < 2.0.2.0 | 2.0.2.0, 1.9.6.1 | osv |
| n/a | — | — | nvd |
Check your systems with an agent
Paste this into Claude Code, Cursor or another coding agent. It only reads; it changes nothing.
Check whether anything I run is affected by CVE-2016-3096. Work read-only: do not install, upgrade, delete or change anything. Details: https://flawdb.com/CVE-2016-3096.md Affected: ansible >= 2.0.0.0, < 2.0.2.0 Fixed in: 2.0.2.0, 1.9.6.1 Steps: 1. Search this machine and project for ansible (PyPI), n/a: dependency manifests and lockfiles, installed packages, container images and running services. 2. For each match, note the installed version and whether it is inside the affected range. 3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
References
Vendor advisories
- http://lists.fedoraproject.org/pipermail/package-announce/2016-April/183274.html
- http://lists.fedoraproject.org/pipermail/package-announce/2016-April/183252.html
- http://lists.fedoraproject.org/pipermail/package-announce/2016-May/184175.html
- http://lists.fedoraproject.org/pipermail/package-announce/2016-April/183132.html
- http://lists.fedoraproject.org/pipermail/package-announce/2016-April/183103.html
- https://security.gentoo.org/glsa/201607-14
- https://nvd.nist.gov/vuln/detail/CVE-2016-3096
- https://github.com/advisories/GHSA-rh6x-qvg7-rrmj
Patches
- https://github.com/ansible/ansible-modules-extras/pull/1941/commits/8c6fe646ee79f5e55361b885b7efed5bec72d4a4
- https://github.com/ansible/ansible/blob/v2.0.2.0-1/CHANGELOG.md#202-over-the-hills-and-far-away
- https://github.com/ansible/ansible-modules-extras/pull/1941
- https://github.com/ansible/ansible-modules-extras/commit/7c3999a92a1cd856ff9bc8913a93ff1aee8bffc3
Other
- https://bugzilla.redhat.com/show_bug.cgi?id=1322925
- https://groups.google.com/forum/#%21topic/ansible-announce/tqiZbcWxYig
- https://groups.google.com/forum/#%21topic/ansible-announce/E80HLZilTU0
- https://github.com/ansible/ansible/blob/v1.9.6-1/CHANGELOG.md#196-dancing-in-the-street---tbd
- 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
FAQ
Is CVE-2016-3096 being exploited?
There is no confirmed exploitation: CVE-2016-3096 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 0.47% chance of exploitation in the next 30 days (as of 2026-11-26).
How serious is CVE-2016-3096?
High: CVSS 7.8 (v3.0, scored by NVD). Not remotely exploitable (local or adjacent access needed).
Which versions are affected by CVE-2016-3096?
ansible >= 2.0.0.0, < 2.0.2.0.
Is there a fix for CVE-2016-3096?
Yes. Fixed in 2.0.2.0, 1.9.6.1. Upgrade ansible to one of 2.0.2.0, 1.9.6.1 (or later in the same release line).
How do I check if I'm affected by CVE-2016-3096?
Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.