CVE-2016-8628
ansible: Command injection by compromised server via fact variables
Severity by source
Trivy's own label is CRITICAL. Rated critical by NVD, GHSA. Rated lower by Red Hat (medium), Ubuntu (medium).
Description
Ansible before version 2.2.0 fails to properly sanitize fact variables sent from the Ansible controller. An attacker with the ability to create special variables on the controller could execute arbitrary commands on Ansible clients as the user Ansible runs as.
Affected packages and fixed versions
| Source | Package | Fixed in |
|---|---|---|
| pip::GitHub Security Advisory pip | ansible | 2.2.0.0 |
| debian 11 | ansible | 2.2.0.0-1 |
| debian 12 | ansible | 2.2.0.0-1 |
| debian 13 | ansible | 2.2.0.0-1 |
| debian 14 | ansible | 2.2.0.0-1 |
| echo | ansible | 2.2.0.0-1 |
| ubuntu 16.04 | ansible | 2.0.0.2-2ubuntu1.1 |
| ubuntu 16.04-ESM | ansible | 2.0.0.2-2ubuntu1.1 |
References
- http://www.securityfocus.com/bid/94109
- https://access.redhat.com/errata/RHSA-2016:2778
- https://access.redhat.com/security/cve/CVE-2016-8628
- https://bugzilla.redhat.com/show_bug.cgi?id=CVE-2016-8628
- https://github.com/advisories/GHSA-jg4f-jqm5-4mgq
- https://github.com/ansible/ansible
- https://github.com/ansible/ansible/commit/35938b907dfcd1106ca40b794f0db446bdb8cf09
- https://github.com/ansible/ansible/issues/41903