CVE-2018-16859
Description
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.
Severity
MEDIUM
CVSS v3
4.2
CVSS:3.0/AV:L/AC:L/PR:H/UI:R/S:U/C:H/I:N/A:N · source cna
Exploit chance (EPSS)
0.535%
chance of exploitation in the next 30 days
higher than 45.7% of scored CVEs · 2026-11-17
CISA KEV
Not listed
Public exploit code
None public
Exploit references (NVD and CNA): 0
Metasploit modules: 0
Nuclei templates: 0
Weakness
- CWE-532: Insertion of Sensitive Information into Log File
Timeline
- 2018-11-29Published by the CNA17:00 UTC
- 2022-05-14GitHub advisory published (GHSA-v735-2pp6-h86r)1262 days after publication
Exploit and advisory records
GitHub advisory GHSA-v735-2pp6-h86r, affected packages:
| Package | Vulnerable versions | Fixed in |
|---|---|---|
| PyPI ansible | before 2.5.12 | 2.5.12 |
| PyPI ansible | from 2.6.0a1 before 2.6.9 | 2.6.9 |
| PyPI ansible | from 2.7.0a1 before 2.7.3 | 2.7.3 |
Affected products
Products listed as vulnerable. Upgrade to the version under "Fixed in", or a later one.
| Product | Vulnerable versions | Fixed in |
|---|---|---|
| redhat ansible_engine | before 2.5.13fixed in 2.5.13from 2.6.0 before 2.6.10fixed in 2.6.10from 2.7.0 before 2.7.4fixed in 2.7.4from 2.7.5 through 2.8no fix listed | 2.5.132.6.102.7.4not listed |
References
- https://github.com/ansible/ansible/pull/49142
- http://lists.opensuse.org/opensuse-security-announce/2019-04/msg00021.html
- http://lists.opensuse.org/opensuse-security-announce/2019-06/msg00077.html
- http://lists.opensuse.org/opensuse-security-announce/2019-08/msg00020.html
- https://access.redhat.com/errata/RHSA-2018:3770
- https://access.redhat.com/errata/RHSA-2018:3771
- https://access.redhat.com/errata/RHSA-2018:3772
- https://access.redhat.com/errata/RHSA-2018:3773
- https://bugzilla.redhat.com/show_bug.cgi?id=CVE-2018-16859
- http://www.securityfocus.com/bid/106004
Get more CVE data from the API.
curl 'https://api.contrastcyber.com/cve_lookup/CVE-2018-16859'curl 'https://api.contrastcyber.com/cve_risk_score/CVE-2018-16859'curl 'https://api.contrastcyber.com/cve_exploit/CVE-2018-16859'curl 'https://api.contrastcyber.com/cve_products/CVE-2018-16859'
Sources
- Vulnerability data from the National Vulnerability Database (NIST) and the CVE Program. CVE records: Copyright © 1999-2026, The MITRE Corporation, used under the CVE Program Terms of Use. CVE® is a registered trademark of The MITRE Corporation.
- CWE definitions: Copyright © 2006-2026, The MITRE Corporation, used under the CWE Terms of Use. CWE is a trademark of The MITRE Corporation.
- OWASP Top 10 categories by the OWASP Foundation (CC BY 3.0).
- EPSS scores by FIRST.org EPSS, used with attribution.
- KEV catalog and SSVC decisions by CISA.
- Advisory data from the GitHub Advisory Database through OSV.dev (CC BY 4.0).
- Exploit metadata from the Exploit Database (GPL-2.0-only, metadata only).
- Nuclei template names from nuclei-templates (MIT).