Skip to content
Fencer Vulns
high 7.6

CVE-2016-8628 json

Ansible fails to properly sanitize fact variables sent from the Ansible controller

published 2018-07-31 8 y ago modified 2026-06-17 4 mo ago also GHSA-jg4f-jqm5-4mgq , PYSEC-2018-38 , EUVD-2018-0011

cvss
7.6
version 3.0, CNA
cisa kev
Not listed
not in CISA's catalog
epss
3.2%
EPSS 3.2% chance of exploitation in 30 days, percentile 88%
public exploits
0
none known

Summary

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.

Patch / fix

  • pypi ansible 2.2.0.0
  • redhat ansible 2.2.0
  • ansible Debian 14, Debian 13, Debian 12 2.2.0.0-1

debian advisories DEBIAN-CVE-2016-8628

  • ansible Ubuntu 16.04 LTS 2.0.0.2-2ubuntu1.1

ubuntu advisories UBUNTU-CVE-2016-8628

Ubuntu security data © Canonical Ltd., from https://github.com/canonical/ubuntu-security-notices via OSV; changed: normalised to fixed package versions per release. CC BY-SA 4.0

  • atomic-openshift-utils openshift 3.2 3.2.42-1.git.0.6b09be9.el7
  • atomic-openshift-utils openshift 3.3 3.3.50-1.git.0.5bdbeaa.el7
  • ansible openshift 3.3, openshift 3.2 2.2.0.0-1.el7
  • openshift-ansible openshift 3.2 3.2.42-1.git.0.6b09be9.el7
  • openshift-ansible openshift 3.3 3.3.50-1.git.0.5bdbeaa.el7
  • openshift-ansible-roles openshift 3.2 3.2.42-1.git.0.6b09be9.el7
  • openshift-ansible-roles openshift 3.3 3.3.50-1.git.0.5bdbeaa.el7
  • openshift-ansible-playbooks openshift 3.2 3.2.42-1.git.0.6b09be9.el7

red hat advisories RHSA-2016:2778

  • ansible openSUSE Leap 15.5, Manager Proxy Module 4.3, Manager Client Tools 15 2.9.27-150000.1.17.2
  • grafana Manager Client Tools 15 9.5.18-150000.1.63.2
  • spacecmd openSUSE Leap 15.5, Manager Client Tools 15 4.3.27-150000.3.116.2
  • mgr-daemon Manager Client Tools 15 4.3.9-150000.1.47.2
  • spacewalk-koan Manager Client Tools 15 4.3.6-150000.3.33.2
  • dracut-saltboot openSUSE Leap 15.5, Manager Client Tools for SLE Micro 5, Manager Client Tools 15 0.1.1710765237.46af599-150000.1.53.2
  • POS_Image-JeOS7 openSUSE Leap 15.5, Manager Client Tools 15 0.1.1710765237.46af599-150000.1.21.2
  • uyuni-common-libs Manager Client Tools 15 4.3.10-150000.1.39.2

suse advisories SUSE-SU-2024:1509-1SUSE-SU-2020:3309-1

  • ansible Package Hub 12 2.4.1.0-6.1

opensuse advisories openSUSE-SU-2017:2976-1openSUSE-SU-2017:2978-1

Vendor advisories

What the vendors themselves say about their products: affected, fixed or not affected, and what to do.

red hat product security vex CVE-2016-8628 updated cvss 7.6

ansible: Command injection by compromised server via fact variables

  • Red Hat Quickstart Cloud Installer 1 ansible
    affected: no fix available
  • Red Hat OpenShift Container Platform 3.2 ansible 2.2.0.0-1.el7, openshift-ansible 3.2.42-1.git.0.6b09be9.el7, atomic-openshift-utils 3.2.42-1.git.0.6b09be9.el7, openshift-ansible-roles 3.2.42-1.git.0.6b09be9.el7, openshift-ansible-playbooks 3.2.42-1.git.0.6b09be9.el7, openshift-ansible-filter-plugins 3.2.42-1.git.0.6b09be9.el7, +1 more Red Hat OpenShift Container Platform 3.3 ansible 2.2.0.0-1.el7, openshift-ansible 3.3.50-1.git.0.5bdbeaa.el7, atomic-openshift-utils 3.3.50-1.git.0.5bdbeaa.el7, openshift-ansible-roles 3.3.50-1.git.0.5bdbeaa.el7, openshift-ansible-playbooks 3.3.50-1.git.0.5bdbeaa.el7, openshift-ansible-filter-plugins 3.3.50-1.git.0.5bdbeaa.el7, +2 more
    fixed: vendor fix RHSA-2016:2778
  • Red Hat OpenStack Platform 10 (Newton) ansible Red Hat Storage 3 ansible Red Hat Storage Console 2 ansible
    not affected: vulnerable code not present

Red Hat CSAF VEX © Red Hat, Inc., from https://security.access.redhat.com/data/csaf/v2/vex/; changed: reduced to product statuses and remediations. CC BY 4.0 · csaf

Exploit prediction

3.21% chance of exploitation in the next 30 days, higher than 88% of all scored CVEs (FIRST EPSS, 2026-11-08).

CVSS scores

assigned by version score vector
CNA 3.0 7.6 CVSS:3.0/AV:N/AC:H/PR:H/UI:R/S:C/C:H/I:H/A:H
NVD 3.0 9.1 CVSS:3.0/AV:N/AC:L/PR:H/UI:N/S:C/C:H/I:H/A:H
NVD 2.0 9.0 AV:N/AC:L/Au:S/C:C/I:C/A:C
GitHub 3.0 9.1 CVSS:3.0/AV:N/AC:L/PR:H/UI:N/S:C/C:H/I:H/A:H

Affected packages

ecosystem package affected fixed in
pypi ansible
<2.2.0.0
2.2.0.0

Affected products

  • Red Hat Ansible

Classification

Weakness
  • CWE-77 Improper Neutralization of Special Elements used in a Command

References

Sources

Fencer Vulns keeps one entry per vulnerability: the CVE id wins, then GHSA, and records that alias each other are merged, except that two CVEs always keep separate entries. The same data is available as JSON.