Ansible Logs Passwords If PowerShell ScriptBlock is Enabled
Published 14 May 2022 · Updated 4 Sept 2024
Is your project on an affected ansible?
Look after several Python apps? Indie watches up to 15 repos, private ones too, for $5 a month. See Indie
Affected packages
- Affected
- >=2.7.0a1 <2.7.3
- Fixed in
- 2.7.3
pip install 'ansible>=2.7.3'- Affected
- <2.5.12
- Fixed in
- 2.5.12
pip install 'ansible>=2.5.12'- Affected
- >=2.6.0a1 <2.6.9
- Fixed in
- 2.6.9
pip install 'ansible>=2.6.9'Details
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.
Is GHSA-v735-2pp6-h86r in any of your client repos?
Checking one package by hand is fine. Checking it across forty client projects is not. NPMscan reads the lockfiles in every GitHub repo you pick, finds each project with an affected ansible, and gives you the command that fixes it.
More advisories for ansible
- MediumCVE-2025-14010Ansible Community General Collection is vulnerable to exposure of sensitive information · 4 Dec 2025
- MediumCVE-2020-25635Ansible does not collect garbage after playbook run · 31 Oct 2025
- MediumCVE-2023-5115Ansible symlink attack vulnerability · 28 Dec 2023
- HighCVE-2022-3697Ansible leaks password to logs · 28 Oct 2022
- HighCVE-2021-20228Ansible Exposes Sensitive Information · 25 May 2022
- CriticalCVE-2014-4678Ansible Code Injection Vulnerability · 24 May 2022
References
- Advisorynvd.nist.gov/vuln/detail/CVE-2018-16859
- Linkgithub.com/ansible/ansible/pull/49142
- Linkgithub.com/ansible/ansible/commit/0d746b4198abf84290a093b83cf02b4203d73d9f
- Linkgithub.com/ansible/ansible/commit/2f8d3fcf41107efafc14d51ab6e14531ca8f8c87
- Linkgithub.com/ansible/ansible/commit/4d748d34f9392aa469da00a85c8e2d5fe6cec52b
- Linkaccess.redhat.com/errata/RHSA-2018:3770
- Linkaccess.redhat.com/errata/RHSA-2018:3771
- Linkaccess.redhat.com/errata/RHSA-2018:3772
- Linkaccess.redhat.com/errata/RHSA-2018:3773
- Linkbugzilla.redhat.com/show_bug.cgi?id=CVE-2018-16859
- Packagegithub.com/ansible/ansible
- Linkgithub.com/ansible/ansible/blob/v2.5.13/changelogs/CHANGELOG-v2.5.rst
- Linkgithub.com/pypa/advisory-database/tree/main/vulns/ansible/PYSEC-2018-60.yaml
- Linkweb.archive.org/web/20200227102121/http://www.securityfocus.com/bid/106004
- Linklists.opensuse.org/opensuse-security-announce/2019-04/msg00021.html
- Linklists.opensuse.org/opensuse-security-announce/2019-06/msg00077.html
- Linklists.opensuse.org/opensuse-security-announce/2019-08/msg00020.html
Advisory data from OSV.dev (opens OSV.dev in a new tab), refreshed daily.