KeygraphLabs · CVE MCP

CVE-2016-3096 · redhat

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 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-03, last changed 2026-06-17. Weakness: CWE-59.

CVSS
7.8
high, from NVD
EPSS
0.47%
percentile 42.1%, chance of exploitation in 30 days
Exploitation
None known
no KEV listing or public exploit in our indexes

How to fix

Upgrade to a fixed version: ansible 1.9.6.1, 2.0.2.0 (PyPI) (each is the fix for its own release line). For the version that clears every advisory for your installed version, ask an agent for get_remediation.

Where the flaw is in the code

Fixed in ansible/ansible-modules-extras by pull request #1941, 8c6fe646ee. Functions changed by the fix: create_script, main. Confidence: verified (a record names this commit as the fix, and it changed these functions).

Timeline

2016-06-03Published
2016-06-03Package advisory PYSEC-2016-1
2018-10-10Package advisory GHSA-rh6x-qvg7-rrmj
2026-06-17Record last changed
2026-11-30EPSS when our history starts: 0.47%
2026-12-05Code-level analysis added

Affected packages

AdvisoryPackageFixed in
GHSA-rh6x-qvg7-rrmjansible (PyPI)2.0.2.0
GHSA-rh6x-qvg7-rrmjansible (PyPI)1.9.6.1
PYSEC-2016-1ansible (PyPI)2.0.2.0

Also known as: GHSA-rh6x-qvg7-rrmj, PYSEC-2016-1

Related

CVEPublishedCVSSSummary
CVE-2025-140102025-12-045.5Ansible-collection-community-general: ansible-collection-community-general: keycloak user module leaks credentials in verbose output
CVE-2023-51152023-12-186.3Ansible: malicious role archive can cause ansible-galaxy to overwrite arbitrary files
CVE-2022-36972022-10-287.5same package: ansible (PyPI)
CVE-2021-201802022-03-165.5same package: ansible (PyPI)
CVE-2021-36202022-03-035.5same package: ansible (PyPI)
CVE-2021-35832021-09-227.1same package: ansible (PyPI)
CVE-2020-107292021-05-275.5same package: ansible (PyPI)
CVE-2021-201912021-05-265.5same package: ansible (PyPI)

Add it to your agent

One command for Claude Code; setup for Claude Desktop, Cursor and others. No signup or key.

claude mcp add --transport http keygraph-cve https://cve-mcp.keygraph.io/mcp

Then ask for triage_cve CVE-2016-3096, or call /api/v1/vulnerabilities/CVE-2016-3096. To prove whether it is exploitable in your running app, run Shannon, Keygraph's open-source AI pentester.

NVD · CVE.org