CVE-2018-16859
MEDIUM 4.4CVSS 3.0Ansible Logs Passwords If PowerShell ScriptBlock is Enabled
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.
- Published
- 29 Nov 2018
- Last modified
- 17 Jun 2026
- Assigned by
- secalert@redhat.com
- NVD status
- Modified
- Weakness
- CWE-532
- Also known as
- GHSA-v735-2pp6-h86rPYSEC-2018-60
- Sources
- NVDJSONOSV GHSA-v735-2pp6-h86rJSONOSV PYSEC-2018-60JSON
Scores
| Source | Scored by | Version | Score | Vector / decision |
|---|---|---|---|---|
| OSV | GitHub | CVSS 4.0 | CVSS:4.0/AV:L/AC:L/AT:N/PR:H/UI:N/VC:H/VI:N/VA:N/SC:N/SI:N/SA:N | |
| NVD | nvd@nist.gov (Primary) | CVSS 3.0 | MEDIUM 4.4 | CVSS:3.0/AV:L/AC:L/PR:H/UI:N/S:U/C:H/I:N/A:N |
| OSV | GitHub | CVSS 3.0 | MEDIUM 4.4 | CVSS:3.0/AV:L/AC:L/PR:H/UI:N/S:U/C:H/I:N/A:N |
| NVD | secalert@redhat.com (Secondary) | CVSS 3.0 | MEDIUM 4.2 | CVSS:3.0/AV:L/AC:L/PR:H/UI:R/S:U/C:H/I:N/A:N |
| NVD | nvd@nist.gov (Primary) | CVSS 2.0 | LOW 2.1 | AV:L/AC:L/Au:N/C:P/I:N/A:N |
Affected
| Source | Vendor / ecosystem | Product / package | Affected versions | Fixed in |
|---|---|---|---|---|
| NVD | redhat | ansible_enginecpe:2.3:a:redhat:ansible_engine:*:*:*:*:*:*:*:* |
< 2.5.13 | 2.5.13 |
| NVD | redhat | ansible_enginecpe:2.3:a:redhat:ansible_engine:*:*:*:*:*:*:*:* |
>= 2.6.0, < 2.6.10 | 2.6.10 |
| NVD | redhat | ansible_enginecpe:2.3:a:redhat:ansible_engine:*:*:*:*:*:*:*:* |
>= 2.7.0, < 2.7.4 | 2.7.4 |
| NVD | redhat | ansible_enginecpe:2.3:a:redhat:ansible_engine:*:*:*:*:*:*:*:* |
>= 2.7.5, <= 2.8 | |
| OSV | PyPI | ansible | >= 2.7.0a1, < 2.7.3 | 2.7.3 |
| OSV | PyPI | ansible | < 2.5.12 | 2.5.12 |
| OSV | PyPI | ansible | >= 2.6.0a1, < 2.6.9 | 2.6.9 |
| OSV | PyPI | ansible | >= 2.7.0, < 2.7.4; >= 2.7.5, < 2.8.1; < 2.5.13; >= 2.6.0, < 2.6.10 | 2.7.4, 2.8.1, 2.5.13, 2.6.10 |
References
- http://lists.opensuse.org/opensuse-security-announce/2019-04/msg00021.html · WEB
- http://lists.opensuse.org/opensuse-security-announce/2019-06/msg00077.html · WEB
- http://lists.opensuse.org/opensuse-security-announce/2019-08/msg00020.html · WEB
- http://www.securityfocus.com/bid/106004 · Third Party Advisory, VDB Entry, WEB
- https://access.redhat.com/errata/RHSA-2018:3770 · Vendor Advisory, WEB, ADVISORY
- https://access.redhat.com/errata/RHSA-2018:3771 · Vendor Advisory, WEB, ADVISORY
- https://access.redhat.com/errata/RHSA-2018:3772 · Issue Tracking, Vendor Advisory, WEB, ADVISORY
- https://access.redhat.com/errata/RHSA-2018:3773 · Vendor Advisory, WEB, ADVISORY
- https://bugzilla.redhat.com/show_bug.cgi?id=CVE-2018-16859 · Issue Tracking, Vendor Advisory, WEB, REPORT
- https://github.com/ansible/ansible/pull/49142 · Patch, Third Party Advisory, WEB
- https://nvd.nist.gov/vuln/detail/CVE-2018-16859 · ADVISORY
- https://github.com/ansible/ansible/commit/0d746b4198abf84290a093b83cf02b4203d73d9f · WEB
- https://github.com/ansible/ansible/commit/2f8d3fcf41107efafc14d51ab6e14531ca8f8c87 · WEB
- https://github.com/ansible/ansible/commit/4d748d34f9392aa469da00a85c8e2d5fe6cec52b · WEB
- https://github.com/ansible/ansible · PACKAGE
- https://github.com/ansible/ansible/blob/v2.5.13/changelogs/CHANGELOG-v2.5.rst · WEB
- https://github.com/pypa/advisory-database/tree/main/vulns/ansible/PYSEC-2018-60.yaml · WEB
- https://web.archive.org/web/20200227102121/http://www.securityfocus.com/bid/106004 · WEB
- https://github.com/advisories/GHSA-v735-2pp6-h86r · ADVISORY
History
- 25 Nov 2026 20:21 UTC · NVD: first stored (published 29 Nov 2018)
- 25 Nov 2026 20:12 UTC · OSV: first stored (published 29 Nov 2018)
- 25 Nov 2026 20:12 UTC · OSV: first stored (published 14 May 2022)