Ansible discloses sensitive information in traceback error message
Published 4 Mar 2022 · Updated 22 Feb 2026
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 package
- Affected
- <2.9.27
- Fixed in
- 2.9.27
pip install 'ansible>=2.9.27'Details
Ansible is an IT automation system that handles configuration management, application deployment, cloud provisioning, ad-hoc task execution, network automation, and multi-node orchestration. A flaw was found in Ansible Engine's ansible-connection module where sensitive information, such as the Ansible user credentials, is disclosed by default in the traceback error message when Ansible receives an unexpected response from set_options. The highest threat from this vulnerability is confidentiality.
Is GHSA-4r65-35qq-ch8j 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-2021-3620
- Linkgithub.com/ansible/ansible/commit/fe28767970c8ec62aabe493c46b53a5de1e5fac0
- Linkaccess.redhat.com/errata/RHSA-2021:3871
- Linkaccess.redhat.com/errata/RHSA-2021:3872
- Linkaccess.redhat.com/errata/RHSA-2021:3874
- Linkaccess.redhat.com/errata/RHSA-2021:4703
- Linkaccess.redhat.com/errata/RHSA-2021:4750
- Linkaccess.redhat.com/security/cve/CVE-2021-3620
- Linkbugzilla.redhat.com/show_bug.cgi?id=1975767
- Advisorygithub.com/advisories/GHSA-4r65-35qq-ch8j
- Packagegithub.com/ansible/ansible
- Linkgithub.com/ansible/ansible/blob/stable-2.9/changelogs/CHANGELOG-v2.9.rst#security-fixes
- Linkgithub.com/pypa/advisory-database/tree/main/vulns/ansible/PYSEC-2022-164.yaml
- Linklists.debian.org/debian-lts-announce/2023/12/msg00018.html
Advisory data from OSV.dev (opens OSV.dev in a new tab), refreshed daily.