Exposure of Sensitive Information to an Unauthorized Actor in ansible
Published 20 Apr 2021 · Updated 11 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.8.0a1 <2.8.11
- Fixed in
- 2.8.11
pip install 'ansible>=2.8.11'- Affected
- >=2.9.0a1 <2.9.7
- Fixed in
- 2.9.7
pip install 'ansible>=2.9.7'- Affected
- >=2.7.0a1 <2.7.17
- Fixed in
- 2.7.17
pip install 'ansible>=2.7.17'Details
A flaw was found in the Ansible Engine affecting Ansible Engine versions 2.7.x before 2.7.17 and 2.8.x before 2.8.11 and 2.9.x before 2.9.7 as well as Ansible Tower before and including versions 3.4.5 and 3.5.5 and 3.6.3 when the ldap_attr and ldap_entry community modules are used. The issue discloses the LDAP bind password to stdout or a log file if a playbook task is written using the bind_pw in the parameters field. The highest threat from this vulnerability is data confidentiality.
Is GHSA-j2h6-73x8-22c4 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-1746
- Linkgithub.com/ansible/ansible/pull/67866
- Linkgithub.com/ansible/ansible/commit/d41e38435b1a9e300d8011ac28f16a5add2db119
- Linkgithub.com/ansible/ansible/commit/e6199d768c1c18a4e750ec78d4ded088629baa3f
- Linkgithub.com/ansible/ansible/commit/edd1e1723cc937ec9251adf38c1199a00b0bf6d4
- Linkbugzilla.redhat.com/show_bug.cgi?id=CVE-2020-1746
- Advisorygithub.com/advisories/GHSA-j2h6-73x8-22c4
- Packagegithub.com/ansible/ansible
- Linkgithub.com/pypa/advisory-database/tree/main/vulns/ansible/PYSEC-2020-13.yaml
- Linkwww.debian.org/security/2021/dsa-4950
Advisory data from OSV.dev (opens OSV.dev in a new tab), refreshed daily.