CVE-2016-9587
Ansible: Compromised remote hosts can lead to running commands on the Ansible controller
Overview
Description
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.
Source: OX vulnerability database
Severity
8.1 · HIGH
CVSS 3.1 base score, scored by NVD.
- Attack vector
- Network
- Attack complexity
- High
- Privileges required
- None
- User interaction
- None
- Scope
- Unchanged
- Confidentiality
- High
- Integrity
- High
- Availability
- High
CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H
Weakness: CWE-20
Affected packages · 1
| Ecosystem | Package | Vulnerable | Fixed in |
|---|---|---|---|
| PyPI | ansible | <2.1.4.0>=2.2.0.0, <2.2.1.0 | 2.1.4.02.2.1.0 |
Open a package to see all its vulnerabilities.
Operating systems · 22 fixes
Red Hat 2 releases · 4 packages
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| python2-passlib | 0:1.6.5-1.el7 | RHSA-2017:0260 | |
| gdeploy | 0:2.0.1-8.el7rhgs | RHSA-2017:0260 | |
| ansible | 0:2.2.1.0-2.el7 | RHSA-2017:0260 | |
| 7 | ansible | 0:2.2.1.0-1.el7 | RHSA-2017:0195 |
| 7 | ansible | 0:2.2.1.0-2.el7 | RHSA-2017:0448 |
| 7 | ansible +1 | 0:2.3.0.0-4.el7 | RHSA-2017:1685 |
3 more rows
SUSE Linux Enterprise 1 release · 1 package
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| 15.5 | golang-github-prometheus-promu | 0.14.0-150000.3.18.2 | SUSE-SU-2024:1509-1 |
debian 4 releases · 1 package
| Release | Package | Fixed in |
|---|---|---|
| 11 | ansible | 2.2.0.0-3 |
| 12 | ansible | 2.2.0.0-3 |
| 13 | ansible | 2.2.0.0-3 |
| 14 | ansible | 2.2.0.0-3 |
echo 1 release · 1 package
| Release | Package | Fixed in |
|---|---|---|
| ansible | 2.2.0.0-3 |
openSUSE 1 release · 7 packages
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Tumbleweed | ansible-10 | 10.6.0-1.1 | openSUSE-SU-2024:14536-1 |
| Tumbleweed | ansible-11 | 11.11.0-1.1 | openSUSE-SU-2025:15605-1 |
| Tumbleweed | ansible-12 | 12.2.0-1.1 | openSUSE-SU-2025:15753-1 |
| Tumbleweed | ansible-13 | 13.7.0-1.1 | openSUSE-SU-2026:10944-1 |
| Tumbleweed | ansible-14 | 14.6.0-1.1 | openSUSE-SU-2026:12447-1 |
| Tumbleweed | ansible +2 | 2.9.24-1.2 | openSUSE-SU-2024:10615-1 |
1 more row
References
- rhn.redhat.com http://rhn.redhat.com/errata/RHSA-2017-0195.html
- rhn.redhat.com http://rhn.redhat.com/errata/RHSA-2017-0260.html
- www.securityfocus.com http://www.securityfocus.com/bid/95352
- access.redhat.com https://access.redhat.com/errata/RHSA-2017:0448
- access.redhat.com https://access.redhat.com/errata/RHSA-2017:0515
- access.redhat.com https://access.redhat.com/errata/RHSA-2017:1685
- access.redhat.com https://access.redhat.com/security/cve/CVE-2016-9587
- bugzilla.redhat.com https://bugzilla.redhat.com/show_bug.cgi?id=CVE-2016-9587
- github.com https://github.com/advisories/GHSA-m956-frf4-m2wr
- github.com https://github.com/ansible/ansible
Show all 17 references
- github.com https://github.com/pypa/advisory-database/tree/main/vulns/ansible/PYSEC-2018-39.yaml
- nvd.nist.gov https://nvd.nist.gov/vuln/detail/CVE-2016-9587
- security.gentoo.org https://security.gentoo.org/glsa/201701-77
- web.archive.org https://web.archive.org/web/20170115210655/http://www.securityfocus.com/bid/95352
- www.cve.org https://www.cve.org/CVERecord?id=CVE-2016-9587
- www.exploit-db.com https://www.exploit-db.com/exploits/41013
- www.exploit-db.com https://www.exploit-db.com/exploits/41013/
OX Radar and Response Center
Find threats in your stack.
OX Radar can check high-priority threats, like critical package CVEs, against your context.
Each incident is marked Detected or Not Detected with a remediation plan and proof all tracked in the Response Center.