Ansible before version 2.2.0 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
- Jul 31, 2018
- Updated
- Jun 16, 2026
- EPSS
- 3.3% · 88th percentile
- CWE
- CWE-77
Sign in to follow · You’ll be notified if a followed record enters KEV, gets an exploit or is updated.
Report tools
Action score
37
Monitor
Low priority for now.
- CVSS
- 36 / 40 · 9.1 / 10
- CISA KEV
- 0 / 30 · Not listed
- EPSS
- 1 / 30 · 3.3%
CNA vs NVD score
- NVD
- 9.1
- CNA · redhat
- 7.6
- 1.5 point gap
CVSS:3.0/AV:N/AC:H/PR:H/UI:R/S:C/C:H/I:H/A:H
The score given by the assigning authority versus NVD’s independent score. A gap means the severity is contested.
Affected systems
| Vendor | Product | CPE |
|---|---|---|
| redhat | ansible | cpe:2.3:a:redhat:ansible |
Affected versions
NVD version ranges (for catalog products). Add the product to your stack with a version and matching uses these.
- redhat ansiblebefore 2.2.0
Versions reported by the vendor
Affected version ranges reported by the assigning authority (redhat). Independent of NVD's CPE analysis and usually ahead of it.
Red Hat Ansible
- 2.2.0affected
Package-level exposure
OSV and GitHub Advisory data: ecosystem, package and range. SBOM matching uses this table.
| Ecosystem | Package | Affected range | Fix |
|---|---|---|---|
| Debian:12 | ansible | before 2.2.0.0-1 | 2.2.0.0-1 |
| PyPI | ansible | before 2.2.0.0 | 2.2.0.0 |
| Red Hat:openshift:3.2::el7 | ansible | before 0:2.2.0.0-1.el7 | 0:2.2.0.0-1.el7 |
| Red Hat:openshift:3.2::el7 | atomic-openshift-utils | before 0:3.2.42-1.git.0.6b09be9.el7 | 0:3.2.42-1.git.0.6b09be9.el7 |
| Red Hat:openshift:3.2::el7 | openshift-ansible | before 0:3.2.42-1.git.0.6b09be9.el7 | 0:3.2.42-1.git.0.6b09be9.el7 |
| Red Hat:openshift:3.2::el7 | openshift-ansible-docs | before 0:3.2.42-1.git.0.6b09be9.el7 | 0:3.2.42-1.git.0.6b09be9.el7 |
| Red Hat:openshift:3.2::el7 | openshift-ansible-filter-plugins | before 0:3.2.42-1.git.0.6b09be9.el7 | 0:3.2.42-1.git.0.6b09be9.el7 |
| Red Hat:openshift:3.2::el7 | openshift-ansible-lookup-plugins | before 0:3.2.42-1.git.0.6b09be9.el7 | 0:3.2.42-1.git.0.6b09be9.el7 |
| Red Hat:openshift:3.2::el7 | openshift-ansible-playbooks | before 0:3.2.42-1.git.0.6b09be9.el7 | 0:3.2.42-1.git.0.6b09be9.el7 |
| Red Hat:openshift:3.2::el7 | openshift-ansible-roles | before 0:3.2.42-1.git.0.6b09be9.el7 | 0:3.2.42-1.git.0.6b09be9.el7 |
| Red Hat:openshift:3.3::el7 | atomic-openshift-utils | before 0:3.3.50-1.git.0.5bdbeaa.el7 | 0:3.3.50-1.git.0.5bdbeaa.el7 |
| Red Hat:openshift:3.3::el7 | openshift-ansible | before 0:3.3.50-1.git.0.5bdbeaa.el7 | 0:3.3.50-1.git.0.5bdbeaa.el7 |
| Red Hat:openshift:3.3::el7 | openshift-ansible-callback-plugins | before 0:3.3.50-1.git.0.5bdbeaa.el7 | 0:3.3.50-1.git.0.5bdbeaa.el7 |
| Red Hat:openshift:3.3::el7 | openshift-ansible-docs | before 0:3.3.50-1.git.0.5bdbeaa.el7 | 0:3.3.50-1.git.0.5bdbeaa.el7 |
| Red Hat:openshift:3.3::el7 | openshift-ansible-filter-plugins | before 0:3.3.50-1.git.0.5bdbeaa.el7 | 0:3.3.50-1.git.0.5bdbeaa.el7 |
| Red Hat:openshift:3.3::el7 | openshift-ansible-lookup-plugins | before 0:3.3.50-1.git.0.5bdbeaa.el7 | 0:3.3.50-1.git.0.5bdbeaa.el7 |
| Red Hat:openshift:3.3::el7 | openshift-ansible-playbooks | before 0:3.3.50-1.git.0.5bdbeaa.el7 | 0:3.3.50-1.git.0.5bdbeaa.el7 |
| Red Hat:openshift:3.3::el7 | openshift-ansible-roles | before 0:3.3.50-1.git.0.5bdbeaa.el7 | 0:3.3.50-1.git.0.5bdbeaa.el7 |
| SUSE:HPE Helion OpenStack 8 | ansible | before 2.9.14-3.15.1 | 2.9.14-3.15.1 |
| SUSE:HPE Helion OpenStack 8 | ardana-ansible | before 8.0+git.1596735237.54109b1-3.77.1 | 8.0+git.1596735237.54109b1-3.77.1 |
| SUSE:HPE Helion OpenStack 8 | ardana-cinder | before 8.0+git.1596129856.263f430-3.43.1 | 8.0+git.1596129856.263f430-3.43.1 |
| SUSE:HPE Helion OpenStack 8 | ardana-glance | before 8.0+git.1593631779.76fa9b7-3.24.1 | 8.0+git.1593631779.76fa9b7-3.24.1 |
| SUSE:HPE Helion OpenStack 8 | ardana-mq | before 8.0+git.1593618123.678c32b-3.26.1 | 8.0+git.1593618123.678c32b-3.26.1 |
| SUSE:HPE Helion OpenStack 8 | ardana-nova | before 8.0+git.1601298847.dd01585-3.42.1 | 8.0+git.1601298847.dd01585-3.42.1 |
+89
Same product
redhat: all recordsOther highest-scoring records for the same primary product.
- CVE-2014-4678The safe_eval function in Ansible before 1.6.4 does not properly restrict the code subset, which allows remote attackers to execute arbitrar41Plan
- CVE-2014-4657The safe_eval function in Ansible before 1.5.4 does not properly restrict the code subset, which allows remote attackers to execute arbitrar40Plan
- CVE-2014-4967Multiple argument injection vulnerabilities in Ansible before 1.6.7 allow remote attackers to execute arbitrary code by leveraging access to40Plan
- CVE-2014-4966Ansible before 1.6.7 does not prevent inventory data with "{{" and "lookup" substrings, and does not prevent remote data with "{{" substring40Plan
- CVE-2017-7550A flaw was found in the way Ansible (2.3.x before 2.3.3, and 2.4.x before 2.4.1) passed certain parameters to the jenkins_plugin module.40Plan
- CVE-2014-3498The user module in ansible before 1.6.6 allows remote authenticated users to execute arbitrary commands.36Monitor
Remediation
Which version to upgrade to
Fix versions compiled from the vendor, package registries and Microsoft. Verify the vendor's note before upgrading.
| Product / package | Fixed version | Source |
|---|---|---|
| debian:ansible | 2.2.0.0-1 · Debian:12 | Package registry (OSV) |
| PyPI:ansible | 2.2.0.0 | Package registry (OSV) |
| red hat:ansible | 0:2.2.0.0-1.el7 · Red Hat:openshift:3.2::el7 | Package registry (OSV) |
| red hat:atomic-openshift-utils | 0:3.2.42-1.git.0.6b09be9.el7 · Red Hat:openshift:3.2::el7 | Package registry (OSV) |
| red hat:openshift-ansible | 0:3.2.42-1.git.0.6b09be9.el7 · Red Hat:openshift:3.2::el7 | Package registry (OSV) |
| red hat:openshift-ansible-callback-plugins | 0:3.3.50-1.git.0.5bdbeaa.el7 · Red Hat:openshift:3.3::el7 | Package registry (OSV) |
| red hat:openshift-ansible-docs | 0:3.2.42-1.git.0.6b09be9.el7 · Red Hat:openshift:3.2::el7 | Package registry (OSV) |
| red hat:openshift-ansible-filter-plugins | 0:3.2.42-1.git.0.6b09be9.el7 · Red Hat:openshift:3.2::el7 | Package registry (OSV) |
| red hat:openshift-ansible-lookup-plugins | 0:3.2.42-1.git.0.6b09be9.el7 · Red Hat:openshift:3.2::el7 | Package registry (OSV) |
| red hat:openshift-ansible-playbooks | 0:3.2.42-1.git.0.6b09be9.el7 · Red Hat:openshift:3.2::el7 | Package registry (OSV) |
| red hat:openshift-ansible-roles | 0:3.2.42-1.git.0.6b09be9.el7 · Red Hat:openshift:3.2::el7 | Package registry (OSV) |
| suse:ansible | 2.9.14-3.15.1 · SUSE:HPE Helion OpenStack 8 | Package registry (OSV) |
| suse:ansible | 2.9.27-150000.1.17.2 · SUSE:Manager Client Tools 15 | Package registry (OSV) |
| suse:ardana-ansible | 8.0+git.1596735237.54109b1-3.77.1 · SUSE:HPE Helion OpenStack 8 | Package registry (OSV) |
| suse:ardana-cinder | 8.0+git.1596129856.263f430-3.43.1 · SUSE:HPE Helion OpenStack 8 | Package registry (OSV) |
| suse:ardana-glance | 8.0+git.1593631779.76fa9b7-3.24.1 · SUSE:HPE Helion OpenStack 8 | Package registry (OSV) |
| suse:ardana-mq | 8.0+git.1593618123.678c32b-3.26.1 · SUSE:HPE Helion OpenStack 8 | Package registry (OSV) |
| suse:ardana-nova | 8.0+git.1601298847.dd01585-3.42.1 · SUSE:HPE Helion OpenStack 8 | Package registry (OSV) |
| suse:ardana-osconfig | 8.0+git.1595885113.93abcbc-3.49.1 · SUSE:HPE Helion OpenStack 8 | Package registry (OSV) |
| suse:documentation-hpe-helion-openstack-installation | 8.20201007-1.29.1 · SUSE:HPE Helion OpenStack 8 | Package registry (OSV) |
| suse:documentation-hpe-helion-openstack-operations | 8.20201007-1.29.1 · SUSE:HPE Helion OpenStack 8 | Package registry (OSV) |
| suse:documentation-hpe-helion-openstack-opsconsole | 8.20201007-1.29.1 · SUSE:HPE Helion OpenStack 8 | Package registry (OSV) |
| suse:documentation-hpe-helion-openstack-planning | 8.20201007-1.29.1 · SUSE:HPE Helion OpenStack 8 | Package registry (OSV) |
| suse:documentation-hpe-helion-openstack-security | 8.20201007-1.29.1 · SUSE:HPE Helion OpenStack 8 | Package registry (OSV) |
| suse:dracut-saltboot | 0.1.1710765237.46af599-150000.1.53.2 · SUSE:Manager Client Tools 15 | Package registry (OSV) |
| suse:golang-github-prometheus-promu | 0.14.0-150000.3.18.2 · SUSE:Linux Enterprise Module for Package Hub 15 SP5 | Package registry (OSV) |
| suse:grafana | 9.5.18-150000.1.63.2 · SUSE:Manager Client Tools 15 | Package registry (OSV) |
| suse:mgr-daemon | 4.3.9-150000.1.47.2 · SUSE:Manager Client Tools 15 | Package registry (OSV) |
| suse:POS_Image-Graphical7 | 0.1.1710765237.46af599-150000.1.21.2 · SUSE:Manager Client Tools 15 | Package registry (OSV) |
| suse:POS_Image-JeOS7 | 0.1.1710765237.46af599-150000.1.21.2 · SUSE:Manager Client Tools 15 | Package registry (OSV) |
+5
Exploit status
No known public exploit
No public exploit has been observed yet. That doesn't mean you're safe, only that the bar is a little higher.
Research context
For pentesters and researchers: attack profile, score disagreement, timeline, patch commits, credits, variant and chain candidates, bug bounty scope. All derived from existing data; no exploit code.
Timeline
From publication to today: proof of concept, Metasploit module, CISA KEV and fix record. Dates are as reported by the sources.
No dated events beyond publication.
FIRST EPSS daily score; only changes of 0.01 or more are recorded (step chart).
Patch and commit links
Commit, PR and diff links among the references. A starting point for patch-diffing and variant hunting; fixes, not exploits.
No commit or PR link among the references.
Credits
All researchersFinders, reporters and analysts named in the CNA record. Click a name for that researcher’s other records.
No credits in the CNA record.
Variant candidates
Same product, same weakness class, within 18 months. If the patch missed the root cause, the sibling bug is here.
No nightly-computed relations.
Chain candidates
An authentication bypass and a privilege-requiring bug in the same product, published close together: combined they may become an unauthenticated path.
—
Bug bounty scope
No known public program.
Source: bounty-targets-data (public HackerOne, Bugcrowd, Intigriti, YesWeHack listings).
Technical details
Attack conditions
- Anyone who can reach it over the internet can trigger it.
- Administrator privileges are required.
- No user action is required.
- No special conditions are required; it is repeatable.
If successful
- Confidentiality
- high · data can be read
- Integrity
- high · data or configuration can be modified
- Availability
- high · the service can be disrupted
Impact can extend beyond the vulnerable component (scope changes).
- Attack vector
- Network
- Attack complexity
- Low
- Privileges required
- High
- User interaction
- None
- Scope
- Changed
- Confidentiality impact
- High
- Integrity impact
- High
- Availability impact
- High
Weakness class (CWE)
CWE-77 · Improper Neutralization of Special Elements used in a Command ('Command Injection')CVSS vector
CVSS:3.0/AV:N/AC:L/PR:H/UI:N/S:C/C:H/I:H/A:H
nvd-primary
Attack context
MITRE CAPEC attack patterns and ATT&CK techniques for this weakness class (CWE). A starting point for detection rules and threat hunting.
Attack patterns (CAPEC)
- LDAP InjectionCAPEC-136likelihood: High · High
- Command DelimitersCAPEC-15likelihood: High · High
- IMAP/SMTP Command InjectionCAPEC-183Medium
- Command InjectionCAPEC-248likelihood: Medium · High
- Manipulating Writeable Terminal DevicesCAPEC-40likelihood: High · Very High
- Exploiting Multiple Input Interpretation LayersCAPEC-43likelihood: Medium · High
- Manipulating Writeable Configuration FilesCAPEC-75likelihood: High · Very High
- Manipulating Web Input to File System CallsCAPEC-76likelihood: High · Very High
ATT&CK techniques
—
Noroxi analysis
No Noroxi analysis for this record yet
We don't hand-write analysis for all 385,000+ vulnerabilities; that wouldn't be honest. For notable, high-impact vulnerabilities our team writes the mechanism, detection and remediation steps.
We use this product, ask for helpChange log
- Fix✗ → ✓
For records you follow, these changes also arrive as notifications. →
References
- www.securityfocus.com/bid/94109
- access.redhat.com/errata/RHSA-2016:2778
- bugzilla.redhat.com/show_bug.cgi?id=CVE-2016-8628
Vendor advisories and official records. Exploit/PoC links are deliberately left out.