CVE-2018-16859 json
Ansible Logs Passwords If PowerShell ScriptBlock is Enabled
published 7y ago modified 4mo ago also GHSA-v735-2pp6-h86r , PYSEC-2018-60 , EUVD-2018-0019
- cvss
- 4.2
- version 3.0, CNA
- cisa kev
- Not listed
- not in CISA's catalog
- epss
- 0.5%
- EPSS 0.5% chance of exploitation in 30 days, percentile 45%
- public exploits
- 0
- none known
Summary
Execution of Ansible playbooks on Windows platforms with PowerShell ScriptBlock logging and Module logging enabled can allow for 'become' passwords to appear in EventLogs in plaintext. A local user with administrator privileges on the machine can view these logs and discover the plaintext password. Ansible Engine 2.8 and older are believed to be vulnerable.
Patch / fix
- pypi ansible 2.5.12, 2.5.13, 2.6.9, 2.6.10, 2.7.3, 2.7.4, 2.8.1
- redhat ansible_engine 2.5.13, 2.6.10, 2.7.4
- ansible ansible engine 2.7, ansible engine 2 2.7.4-1.el7ae
- ansible ansible engine 2.6 2.6.10-1.el7ae
- ansible ansible engine 2.5 2.5.13-1.el7ae
red hat advisories RHSA-2018:3772RHSA-2018:3773RHSA-2018:3771RHSA-2018:3770
- storm OpenStack Cloud Crowbar 8, OpenStack Cloud 8, HPE Helion OpenStack 8 1.2.3-3.6.1
- ansible OpenStack Cloud Crowbar 8, OpenStack Cloud 8, HPE Helion OpenStack 8 2.9.14-3.15.1
- grafana OpenStack Cloud Crowbar 8, OpenStack Cloud 8, HPE Helion OpenStack 8 6.7.4-4.12.1
- ardana-mq OpenStack Cloud 8, HPE Helion OpenStack 8 8.0+git.1593618123.678c32b-3.26.1
- ardana-nova OpenStack Cloud 8, HPE Helion OpenStack 8 8.0+git.1601298847.dd01585-3.42.1
- crowbar-core OpenStack Cloud Crowbar 8 5.0+git.1600432272.b3ad722f0-3.44.1
- python-kombu OpenStack Cloud Crowbar 8, OpenStack Cloud 8, HPE Helion OpenStack 8 4.1.0-3.7.1
- ardana-cinder OpenStack Cloud 8, HPE Helion OpenStack 8 8.0+git.1596129856.263f430-3.43.1
suse advisories SUSE-SU-2020:3309-1
- ansible-14 openSUSE Tumbleweed 14.6.0-1.1
- ansible-13 openSUSE Tumbleweed 13.7.0-1.1
- ansible-12 openSUSE Tumbleweed 12.2.0-1.1
- ansible-11 openSUSE Tumbleweed 11.11.0-1.1
- ansible-10 openSUSE Tumbleweed 10.6.0-1.1
- ansible-9 openSUSE Tumbleweed 9.8.0-1.1
- ansible Package Hub 15 SP1 2.8.1-bp151.3.3.1
- ansible Package Hub 15, Package Hub 12, openSUSE Leap 15.1 +1 more 2.8.1-bp150.3.9.1
opensuse advisories openSUSE-SU-2026:12447-1openSUSE-SU-2026:10944-1openSUSE-SU-2025:15753-1openSUSE-SU-2025:15605-1openSUSE-SU-2024:14536-1openSUSE-SU-2024:14244-1
- ansible Alpine 3.9 2.7.3-r0
alpine advisories ALPINE-CVE-2018-16859
Alpine secdb © Alpine Linux, from https://secdb.alpinelinux.org via OSV; changed: normalised to fixed package versions per release. CC BY-SA 4.0
- github.com/ansible/ansible@0d746b4 commit
- github.com/ansible/ansible@2f8d3fc commit
- github.com/ansible/ansible@4d748d3 commit
- github.com/ansible/ansible#49142 pull request
Is CVE-2018-16859 in your dependencies? Fencer shows which of your repositories are affected as soon as an advisory lands, and opens the fix as a pull request.
Check with FencerVendor advisories
What the vendors themselves say about their products: affected, fixed or not affected, and what to do.
red hat product security vex CVE-2018-16859 updated cvss 4.2
ansible: become password logged in plaintext when used with PowerShell on Windows
-
Red Hat Ceph Storage 2 ansibleaffected: no fix planned “Will not fix”
-
Red Hat Ceph Storage 3 ansibleaffected: no fix available
-
Red Hat OpenShift Container Platform 3.4 ansible Red Hat OpenShift Container Platform 3.5 ansible Red Hat OpenShift Container Platform 3.6 ansibleaffected: no fix planned “Will not fix”
-
Red Hat OpenShift Container Platform 3.7 ansibleaffected: no fix available
-
Red Hat OpenStack Platform 10 (Newton) ansible Red Hat OpenStack Platform 12 (Pike) ansible Red Hat OpenStack Platform 13 (Queens) ansible Red Hat OpenStack Platform 14 (Rocky) ansible Red Hat Storage 3 ansibleaffected: no fix planned “Will not fix”
-
Red Hat Ansible Engine 2 for RHEL 7 ansible 2.7.4-1.el7aefixed: vendor fix RHSA-2018:3772
-
Red Hat Ansible Engine 2.5 for RHEL 7 Server ansible 2.5.13-1.el7aefixed: vendor fix RHSA-2018:3770
-
Red Hat Ansible Engine 2.6 for RHEL 7 Server ansible 2.6.10-1.el7aefixed: vendor fix RHSA-2018:3771
show 2 moreshow fewer
-
Red Hat Ansible Engine 2.7 for RHEL 7 Server ansible 2.7.4-1.el7aefixed: vendor fix RHSA-2018:3773
-
Red Hat CloudForms Management Engine 5 ansible Red Hat OpenShift Container Platform 3.2 ansible Red Hat OpenShift Container Platform 3.3 ansible Red Hat OpenShift Enterprise 3.0 ansible Red Hat OpenShift Enterprise 3.1 ansible Red Hat Satellite 6 ansiblenot affected: vulnerable code not present
+1 more productsfewer
Red Hat Virtualization 4 ansible, ansible-test
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
0.54% chance of exploitation in the next 30 days, higher than 45% of all scored CVEs (FIRST EPSS, 2026-11-09).
CVSS scores
| assigned by | version | score | vector |
|---|---|---|---|
| CNA | 3.0 | 4.2 | CVSS:3.0/AV:L/AC:L/PR:H/UI:R/S:U/C:H/I:N/A:N |
| NVD | 3.0 | 4.4 | CVSS:3.0/AV:L/AC:L/PR:H/UI:N/S:U/C:H/I:N/A:N |
| NVD | 2.0 | 2.1 | AV:L/AC:L/Au:N/C:P/I:N/A:N |
| GitHub | 3.0 | 4.4 | CVSS:3.0/AV:L/AC:L/PR:H/UI:N/S:U/C:H/I:N/A:N |
Affected packages
| ecosystem | package | affected | fixed in |
|---|---|---|---|
| pypi | ansible | >=2.7.0a1, <2.7.3 <2.5.12 >=2.6.0a1, <2.6.9 >=2.7.0, <2.7.4 >=2.7.5, <2.8.1 <2.5.13 >=2.6.0, <2.6.10 |
2.7.3 2.5.12 2.6.9 2.7.4 2.8.1 2.5.13 2.6.10 |
Affected products
- Red Hat ansible
Classification
- Weakness
-
- CWE-532 Insertion of Sensitive Information into Log File
References
-
github.com
/ansible/ansible/pull/49142
web, patch, third-party-advisory
-
github.com
/ansible/ansible/commit/0d746b4198abf84290a093b83cf02b4203d73d9f
web
-
github.com
/ansible/ansible/commit/2f8d3fcf41107efafc14d51ab6e14531ca8f8c87
web
-
github.com
/ansible/ansible/commit/4d748d34f9392aa469da00a85c8e2d5fe6cec52b
web
-
access.redhat.com
/errata/RHSA-2018:3770
vendor-advisory, web, advisory
-
access.redhat.com
/errata/RHSA-2018:3771
vendor-advisory, web, advisory
-
access.redhat.com
/errata/RHSA-2018:3773
vendor-advisory, web, advisory
-
access.redhat.com
/errata/RHSA-2018:3772
vendor-advisory, web, issue-tracking, advisory
-
lists.opensuse.org
/opensuse-security-announce/2019-04/msg00021.html
vendor-advisory, web
-
lists.opensuse.org
/opensuse-security-announce/2019-06/msg00077.html
vendor-advisory, web
-
lists.opensuse.org
/opensuse-security-announce/2019-08/msg00020.html
vendor-advisory, web
-
bugzilla.redhat.com
/show_bug.cgi?id=CVE-2018-16859
web, issue-tracking, vendor-advisory, report
-
securityfocus.com
/bid/106004
vdb-entry, third-party-advisory, web
-
nvd.nist.gov
/vuln/detail/CVE-2018-16859
advisory
-
github.com
/ansible/ansible
package
-
github.com
/ansible/ansible/blob/v2.5.13/changelogs/CHANGELOG-v2.5.rst
web
-
github.com
/pypa/advisory-database/tree/main/vulns/ansible/PYSEC-2018-60.yaml
web
-
web.archive.org
/web/20200227102121/http://www.securityfocus.com/bid/106004
web
-
github.com
/advisories/GHSA-v735-2pp6-h86r
advisory
Sources
- CVE List CVE-2018-16859
- GitHub Advisory GHSA-v735-2pp6-h86r
- NVD CVE-2018-16859
- OSV PYSEC-2018-60
Fencer Intel 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.