Insertion of Sensitive Information into Log File, Invocation of Process Using Visible Sensitive Information, and Exposure of Sensitive Information to an Unauthorized Actor in Ansible
Published 7 Apr 2021 · Updated 9 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.18
- Fixed in
- 2.7.18
pip install 'ansible>=2.7.18'- Affected
- >=2.8.0a1 <2.8.12
- Fixed in
- 2.8.12
pip install 'ansible>=2.8.12'- Affected
- >=2.9.0a1 <2.9.7
- Fixed in
- 2.9.7
pip install 'ansible>=2.9.7'Details
A security flaw was found in Ansible Engine, all Ansible 2.7.x versions prior to 2.7.17, all Ansible 2.8.x versions prior to 2.8.11 and all Ansible 2.9.x versions prior to 2.9.7, when managing kubernetes using the k8s module. Sensitive parameters such as passwords and tokens are passed to kubectl from the command line, not using an environment variable or an input configuration file. This will disclose passwords and tokens from process list and no_log directive from debug module would not have any effect making these secrets being disclosed on stdout and log files.
Is GHSA-86hp-cj9j-33vv 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-2020-1753
- Linkgithub.com/ansible-collections/kubernetes/pull/51
- Linkgithub.com/ansible/ansible/pull/68195
- Linkgithub.com/ansible/ansible/commit/04ba05e003b268b83df6c106ba5c0f08548b1380
- Linkgithub.com/ansible/ansible/commit/137caed836ef096945086cfe75dc11587b68db3a
- Linkgithub.com/ansible/ansible/commit/273d8538dbe5a7b5c9954f1929d3bb00904c43f6
- Linkbugzilla.redhat.com/show_bug.cgi?id=CVE-2020-1753
- Advisorygithub.com/advisories/GHSA-86hp-cj9j-33vv
- Packagegithub.com/ansible-collections/kubernetes
- Linkgithub.com/pypa/advisory-database/tree/main/vulns/ansible/PYSEC-2020-210.yaml
- Linklists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/DKPA4KC3OJSUFASUYMG66HKJE7ADNGFW
- Linklists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/MRRYUU5ZBLPBXCYG6CFP35D64NP2UB2S
- Linklists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/WQVOQD4VAIXXTVQAJKTN7NUGTJFE2PCB
- Linksecurity.gentoo.org/glsa/202006-11
- Linkwww.debian.org/security/2021/dsa-4950
Advisory data from OSV.dev (opens OSV.dev in a new tab), refreshed daily.