CVE-2016-8628
CRITICAL 9.1CVSS 3.0Ansible fails to properly sanitize fact variables sent from the Ansible controller
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.
- Published
- 31 Jul 2018
- Last modified
- 17 Jun 2026
- Assigned by
- secalert@redhat.com
- NVD status
- Modified
- Weakness
- CWE-77
- Also known as
- GHSA-jg4f-jqm5-4mgqPYSEC-2018-38
- Sources
- NVDJSONOSV GHSA-jg4f-jqm5-4mgqJSONOSV PYSEC-2018-38JSON
Scores
| Source | Scored by | Version | Score | Vector / decision |
|---|---|---|---|---|
| OSV | GitHub | CVSS 4.0 | CVSS:4.0/AV:N/AC:L/AT:N/PR:H/UI:N/VC:H/VI:H/VA:H/SC:H/SI:H/SA:H | |
| NVD | nvd@nist.gov (Primary) | CVSS 3.0 | CRITICAL 9.1 | CVSS:3.0/AV:N/AC:L/PR:H/UI:N/S:C/C:H/I:H/A:H |
| OSV | GitHub | CVSS 3.0 | CRITICAL 9.1 | CVSS:3.0/AV:N/AC:L/PR:H/UI:N/S:C/C:H/I:H/A:H |
| NVD | secalert@redhat.com (Secondary) | CVSS 3.0 | HIGH 7.6 | CVSS:3.0/AV:N/AC:H/PR:H/UI:R/S:C/C:H/I:H/A:H |
| NVD | nvd@nist.gov (Primary) | CVSS 2.0 | HIGH 9.0 | AV:N/AC:L/Au:S/C:C/I:C/A:C |
Affected
| Source | Vendor / ecosystem | Product / package | Affected versions | Fixed in |
|---|---|---|---|---|
| NVD | redhat | ansiblecpe:2.3:a:redhat:ansible:*:*:*:*:*:*:*:* |
< 2.2.0 | 2.2.0 |
| OSV | PyPI | ansible | < 2.2.0.0 | 2.2.0.0 |
References
- http://www.securityfocus.com/bid/94109 · Third Party Advisory, VDB Entry, WEB
- https://access.redhat.com/errata/RHSA-2016:2778 · Third Party Advisory, WEB, ADVISORY
- https://bugzilla.redhat.com/show_bug.cgi?id=CVE-2016-8628 · Issue Tracking, Third Party Advisory, WEB, REPORT
- https://nvd.nist.gov/vuln/detail/CVE-2016-8628 · ADVISORY
- https://github.com/ansible/ansible/issues/41903 · WEB
- https://github.com/ansible/ansible/commit/35938b907dfcd1106ca40b794f0db446bdb8cf09 · WEB
- https://github.com/advisories/GHSA-jg4f-jqm5-4mgq · ADVISORY
- https://github.com/ansible/ansible · PACKAGE
- https://github.com/pypa/advisory-database/tree/main/vulns/ansible/PYSEC-2018-38.yaml · WEB
- https://web.archive.org/web/20200227214455/http://www.securityfocus.com/bid/94109 · WEB
History
- 25 Nov 2026 20:21 UTC · NVD: first stored (published 31 Jul 2018)
- 25 Nov 2026 20:12 UTC · OSV: first stored (published 31 Jul 2018)
- 25 Nov 2026 20:11 UTC · OSV: first stored (published 10 Oct 2018)