CVE-2016-9587 · redhat
CVE-2016-9587
Ansible before versions 2.1.4, 2.2.1 is vulnerable to an improper input validation in Ansible's handling of data sent from client systems. An attacker with control over a client system being managed by Ansible and the ability to send facts back to the Ansible server could use this flaw to execute arbitrary code on the Ansible server using the Ansible server privileges.
Published 2018-04-24, last changed 2026-06-17. Weakness: CWE-20.
Public exploits
| Source | Kind | Reference |
|---|---|---|
| exploit-db | proof-of-concept | EDB-41013 |
How to fix
Upgrade to a fixed version: ansible 2.1.4.0, 2.2.1.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.
Timeline
| 2018-04-24 | Published |
| 2018-04-24 | Package advisory PYSEC-2018-39 |
| 2018-10-10 | Package advisory GHSA-m956-frf4-m2wr |
| 2026-06-17 | Record last changed |
| 2026-11-30 | EPSS when our history starts: 17.0% |
Affected packages
| Advisory | Package | Fixed in |
|---|---|---|
| GHSA-m956-frf4-m2wr | ansible (PyPI) | 2.1.4.0 |
| GHSA-m956-frf4-m2wr | ansible (PyPI) | 2.2.1.0 |
| PYSEC-2018-39 | ansible (PyPI) | 2.1.4.0, 2.2.1.0 |
Also known as: GHSA-m956-frf4-m2wr, PYSEC-2018-39
Related
| CVE | Published | CVSS | Summary |
|---|---|---|---|
| CVE-2025-14010 | 2025-12-04 | 5.5 | Ansible-collection-community-general: ansible-collection-community-general: keycloak user module leaks credentials in verbose output |
| CVE-2023-5115 | 2023-12-18 | 6.3 | Ansible: malicious role archive can cause ansible-galaxy to overwrite arbitrary files |
| CVE-2022-3697 | 2022-10-28 | 7.5 | same package: ansible (PyPI) |
| CVE-2021-20180 | 2022-03-16 | 5.5 | same package: ansible (PyPI) |
| CVE-2021-3620 | 2022-03-03 | 5.5 | same package: ansible (PyPI) |
| CVE-2021-3583 | 2021-09-22 | 7.1 | same package: ansible (PyPI) |
| CVE-2020-10729 | 2021-05-27 | 5.5 | same package: ansible (PyPI) |
| CVE-2021-20191 | 2021-05-26 | 5.5 | same 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-9587, or call /api/v1/vulnerabilities/CVE-2016-9587. To prove whether it is exploitable in your running app, run Shannon, Keygraph's open-source AI pentester.