{"schemaVersion":1,"url":"https://cve.openhack.com/cve/CVE-2016-3096","id":"CVE-2016-3096","title":"Link Following in ansible","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.","descriptionLong":"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.","published":"2016-06-03T14:00:00.000Z","updated":"2026-11-07T17:27:07.998669211Z","reserved":"2016-03-10T00:00:00.000Z","status":"Modified","rejected":false,"assigner":"redhat","metric":{"version":"3.0","score":7.8,"vector":"CVSS:3.0/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","rating":"high","source":"NVD"},"metrics":[{"version":"4.0","score":null,"vector":"CVSS:4.0/AV:L/AC:L/AT:N/PR:L/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N","rating":"high","source":"GitHub"},{"version":"3.0","score":7.8,"vector":"CVSS:3.0/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","rating":"high","source":"NVD"},{"version":"3.0","score":7.8,"vector":"CVSS:3.0/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","rating":"high","source":"OSV"},{"version":"3.0","score":7.8,"vector":"CVSS:3.0/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","rating":"high","source":"GitHub"},{"version":"2.0","score":7.2,"vector":"AV:L/AC:L/Au:N/C:C/I:C/A:C","rating":"high","source":"NVD"}],"rating":"high","products":[],"affectedProducts":[{"vendor":"n/a","product":"n/a","defaultStatus":null,"versions":[{"status":"affected","version":"n/a"}],"platforms":[]}],"packages":[{"ecosystem":"PyPI","name":"ansible","purl":"pkg:pypi/ansible","ranges":[">=2.0.0.0 <2.0.2.0","<1.9.6.1","<2.0.2.0"],"fixed":["2.0.2.0","1.9.6.1"],"advisory":"GHSA-rh6x-qvg7-rrmj"}],"cwes":["CWE-59"],"aliases":["GHSA-rh6x-qvg7-rrmj","PYSEC-2016-1"],"references":[{"url":"https://bugzilla.redhat.com/show_bug.cgi?id=1322925","tags":["x_refsource_CONFIRM","x_transferred","Issue Tracking","report","web"]},{"url":"http://lists.fedoraproject.org/pipermail/package-announce/2016-April/183274.html","tags":["vendor-advisory","x_refsource_FEDORA","x_transferred","Vendor Advisory","advisory","web"]},{"url":"http://lists.fedoraproject.org/pipermail/package-announce/2016-April/183252.html","tags":["vendor-advisory","x_refsource_FEDORA","x_transferred","Vendor Advisory","advisory","web"]},{"url":"https://github.com/ansible/ansible-modules-extras/pull/1941/commits/8c6fe646ee79f5e55361b885b7efed5bec72d4a4","tags":["x_refsource_CONFIRM","x_transferred","Patch","fix","web"]},{"url":"http://lists.fedoraproject.org/pipermail/package-announce/2016-May/184175.html","tags":["vendor-advisory","x_refsource_FEDORA","x_transferred","Vendor Advisory","advisory","web"]},{"url":"https://github.com/ansible/ansible/blob/v2.0.2.0-1/CHANGELOG.md#202-over-the-hills-and-far-away","tags":["x_refsource_CONFIRM","x_transferred","Patch","fix","web"]},{"url":"http://lists.fedoraproject.org/pipermail/package-announce/2016-April/183132.html","tags":["vendor-advisory","x_refsource_FEDORA","x_transferred","Vendor Advisory","advisory","web"]},{"url":"http://lists.fedoraproject.org/pipermail/package-announce/2016-April/183103.html","tags":["vendor-advisory","x_refsource_FEDORA","x_transferred","Third Party Advisory","advisory","web"]},{"url":"https://groups.google.com/forum/#%21topic/ansible-announce/tqiZbcWxYig","tags":["mailing-list","x_refsource_MLIST","x_transferred","web"]},{"url":"https://security.gentoo.org/glsa/201607-14","tags":["vendor-advisory","x_refsource_GENTOO","x_transferred","Third Party Advisory","advisory","web"]},{"url":"https://groups.google.com/forum/#%21topic/ansible-announce/E80HLZilTU0","tags":["mailing-list","x_refsource_MLIST","x_transferred","web"]},{"url":"https://github.com/ansible/ansible-modules-extras/pull/1941","tags":["x_refsource_CONFIRM","x_transferred","Patch","fix","web"]},{"url":"https://github.com/ansible/ansible/blob/v1.9.6-1/CHANGELOG.md#196-dancing-in-the-street---tbd","tags":["x_refsource_CONFIRM","x_transferred","Third Party Advisory","advisory","web"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2016-3096","tags":["advisory"]},{"url":"https://github.com/ansible/ansible-modules-extras/commit/7c3999a92a1cd856ff9bc8913a93ff1aee8bffc3","tags":["web"]},{"url":"https://github.com/advisories/GHSA-rh6x-qvg7-rrmj","tags":["advisory"]},{"url":"https://github.com/ansible/ansible","tags":["package"]},{"url":"https://github.com/pypa/advisory-database/tree/main/vulns/ansible/PYSEC-2016-1.yaml","tags":["web"]},{"url":"https://groups.google.com/forum/#!topic/ansible-announce/E80HLZilTU0","tags":["web"]},{"url":"https://groups.google.com/forum/#!topic/ansible-announce/tqiZbcWxYig","tags":["web"]}],"patchReferenced":true,"fixAvailable":true,"exploitReferenced":false,"kev":false,"kevAdded":null,"kevDue":null,"kevEntry":null,"ssvc":null,"epss":0.00468,"epssPercentile":0.41153,"sources":[{"name":"CVE List","url":"https://www.cve.org/CVERecord?id=CVE-2016-3096","ok":true},{"name":"NVD","url":"https://nvd.nist.gov/vuln/detail/CVE-2016-3096","ok":true,"note":"Modified"},{"name":"OSV","url":"https://osv.dev/vulnerability/CVE-2016-3096","ok":true,"note":"1 package"},{"name":"GitHub Advisory","url":"https://github.com/advisories/GHSA-rh6x-qvg7-rrmj","ok":true,"note":"GHSA-rh6x-qvg7-rrmj"},{"name":"CISA KEV","url":"https://www.cisa.gov/known-exploited-vulnerabilities-catalog","ok":true,"note":"not listed"},{"name":"EPSS","url":"https://api.first.org/data/v1/epss?cve=CVE-2016-3096","ok":true,"note":"scored 2026-11-18"}],"aiTitle":false,"tech":[],"critical":[],"attention":null}