GitHub Advisoryadvisory · PyPI
GHSA-v735-2pp6-h86r Ansible Logs Passwords If PowerShell ScriptBlock is Enabled
MEDIUM
Official page ↗
- Aliases
- CVE-2018-16859
- Ecosystem
- PyPI
- Packages
- ansible
- Severity
- Moderate
- CVSS vector
- CVSS:3.0/AV:L/AC:L/PR:H/UI:N/S:U/C:H/I:N/A:N
- Weaknesses
- CWE-532
- Reviewed
- 2024-04-22
Affected packages
• PyPI ansible: >= 2.7.0a1, < 2.7.3 → fixed in 2.7.3
• PyPI ansible: < 2.5.12 → fixed in 2.5.12
• PyPI ansible: >= 2.6.0a1, < 2.6.9 → fixed in 2.6.9
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.
Related
Alias · CVE (1)
- CVE-2018-16859 Execution of Ansible playbooks on Windows platforms with PowerShell ScriptBlock logging and Module logging enabled can allow for 'become'… vulnerability
Weakness · CWE (1)
- CWE-532 Insertion of Sensitive Information into Log File weakness
References
- https://nvd.nist.gov/vuln/detail/CVE-2018-16859 advisory
- https://github.com/ansible/ansible/pull/49142 web
- 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://access.redhat.com/errata/RHSA-2018:3770 web
- https://access.redhat.com/errata/RHSA-2018:3771 web
- https://access.redhat.com/errata/RHSA-2018:3772 web
- https://access.redhat.com/errata/RHSA-2018:3773 web
- https://bugzilla.redhat.com/show_bug.cgi?id=CVE-2018-16859 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
- 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