Ansible Exposes Sensitive Information
A flaw was found in the Ansible Engine prior to 2.10.6rc1, 2.9.18rc1, and 2.8.19rc1, where sensitive info is not masked by default and is not protected by the no_log feature when using the sub-option feature of the basic.py module. This flaw allows an attacker to obtain sensitive information. The highest threat from this vulnerability is to confidentiality.
Affected software
Click a technology to see all vulnerabilities affecting it.
| Platform | Package | Vulnerable versions | Fixed in |
|---|---|---|---|
| Python (PyPI) | ansible | >= 2.10.0a1, < 2.10.6rc1, >= 2.9.0a1, < 2.9.18rc1, < 2.8.19rc1 | 2.10.6rc1, 2.9.18rc1, 2.8.19rc1 |
References
- https://bugzilla.redhat.com/show_bug.cgi?id=1925002
- https://github.com/ansible/ansible/pull/73487
- https://github.com/advisories/GHSA-5rrg-rr89-x9mv
- https://nvd.nist.gov/vuln/detail/CVE-2021-20228
- https://github.com/ansible/ansible/pull/73492
- https://github.com/ansible/ansible/pull/73493
- https://github.com/ansible/ansible/pull/73494
- https://github.com/ansible/ansible/commit/49ebd509df9de1c1fc1bcee00e79a835dd00662c
- https://github.com/ansible/ansible/commit/e41d1f0a3fd6c466192e7e24accd3d1c6501111b
- https://github.com/ansible/ansible/commit/f8ff395d817c3eddc050f809919c15dfb5796120
- https://github.com/ansible/ansible
- https://github.com/pypa/advisory-database/tree/main/vulns/ansible/PYSEC-2021-1.yaml
- https://www.debian.org/security/2021/dsa-4950
- CVSS vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N- Weakness (CWE)
CWE-200, CWE-522- Platform
- Python (PyPI)
- Package
ansible- Disclosed
- 29.04.2021
- Updated
- 11.10.2026 11:19
Sources and licenses
OSV / GitHub Advisory Database - PYSEC-2021-1 - PyPA Advisory Database; CC BY 4.0
OSV / GitHub Advisory Database - GHSA-5rrg-rr89-x9mv - CC BY 4.0
Vulnerability history: ansible
All published vulnerabilities of this package (Python (PyPI)), newest first. Shows whether this is a one-off slip or a package that needs watching.
- Total entries
- 68
- First → latest
- 09.2013 12.2025
- Without a fix
- 2
- Exploited in attacks
- 0
Severity breakdown
- Critical 9
- High 24
- Medium 27
- Low 6
- Unrated 2
Disclosures per year
- 2017: 3
- 2018: 12
- 2019: 8
- 2020: 29
- 2021: 7
- 2022: 3
- 2023: 1
- 2024: 0
- 2025: 1
- 2026: 0
earlier: 4
-
Ansible Exposes Sensitive Information this entry
Know which vulnerabilities affect your application
With the DockRay integration and software inventory enabled, DockRay checks reported component versions against known vulnerabilities and notifies you about confirmed matches. Coverage depends on the supported technology and available advisory data.