CVE-2021-20228
HIGH 7.5CVSS 3.1Ansible Exposes Sensitive Information
A flaw was found in the Ansible Engine 2.9.18, 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.
- Published
- 29 Apr 2021
- Last modified
- 17 Jun 2026
- Assigned by
- secalert@redhat.com
- NVD status
- Modified
- Weakness
- CWE-200CWE-522
- Also known as
- GHSA-5rrg-rr89-x9mvPYSEC-2021-1
- Sources
- NVDJSONOSV GHSA-5rrg-rr89-x9mvJSONOSV PYSEC-2021-1JSON
Scores
| Source | Scored by | Version | Score | Vector / decision |
|---|---|---|---|---|
| OSV | GitHub | CVSS 4.0 | CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:N/VA:N/SC:N/SI:N/SA:N | |
| NVD | nvd@nist.gov (Primary) | CVSS 3.1 | HIGH 7.5 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N |
| OSV | GitHub | CVSS 3.1 | HIGH 7.5 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N |
| NVD | nvd@nist.gov (Primary) | CVSS 2.0 | MEDIUM 5.0 | AV:N/AC:L/Au:N/C:P/I:N/A:N |
Affected
| Source | Vendor / ecosystem | Product / package | Affected versions | Fixed in |
|---|---|---|---|---|
| NVD | redhat | ansible_enginecpe:2.3:a:redhat:ansible_engine:2.9.18:*:*:*:*:*:*:* |
= 2.9.18 | |
| NVD | redhat | ansible_automation_platformcpe:2.3:a:redhat:ansible_automation_platform:1.2:*:*:*:*:*:*:* |
= 1.2 | |
| NVD | redhat | ansible_enginecpe:2.3:a:redhat:ansible_engine:2.0:*:*:*:*:*:*:* |
= 2.0 | |
| NVD | redhat | ansible_enginecpe:2.3:a:redhat:ansible_engine:2.9:*:*:*:*:*:*:* |
= 2.9 | |
| NVD | redhat | ansible_towercpe:2.3:a:redhat:ansible_tower:3.0:*:*:*:*:*:*:* |
= 3.0 | |
| NVD | debian | debian_linuxcpe:2.3:o:debian:debian_linux:10.0:*:*:*:*:*:*:* |
= 10.0 | |
| OSV | PyPI | ansible | >= 2.10.0a1, < 2.10.6rc1 | 2.10.6rc1 |
| OSV | PyPI | ansible | >= 2.9.0a1, < 2.9.18rc1 | 2.9.18rc1 |
| OSV | PyPI | ansible | < 2.8.19rc1 | 2.8.19rc1 |
| OSV | PyPI | ansible | < 2.9.19 | 2.9.19 |
References
- https://bugzilla.redhat.com/show_bug.cgi?id=1925002 · Issue Tracking, Third Party Advisory, WEB, REPORT
- https://github.com/ansible/ansible/pull/73487 · Patch, Third Party Advisory, WEB
- https://www.debian.org/security/2021/dsa-4950 · Third Party Advisory, WEB
- https://nvd.nist.gov/vuln/detail/CVE-2021-20228 · ADVISORY
- https://github.com/ansible/ansible/pull/73492 · WEB
- https://github.com/ansible/ansible/pull/73493 · WEB
- https://github.com/ansible/ansible/pull/73494 · WEB
- https://github.com/ansible/ansible/commit/49ebd509df9de1c1fc1bcee00e79a835dd00662c · WEB
- https://github.com/ansible/ansible/commit/e41d1f0a3fd6c466192e7e24accd3d1c6501111b · WEB
- https://github.com/ansible/ansible/commit/f8ff395d817c3eddc050f809919c15dfb5796120 · WEB
- https://github.com/advisories/GHSA-5rrg-rr89-x9mv · ADVISORY
- https://github.com/ansible/ansible · PACKAGE
- https://github.com/pypa/advisory-database/tree/main/vulns/ansible/PYSEC-2021-1.yaml · WEB
History
- 25 Nov 2026 20:33 UTC · NVD: first stored (published 29 Apr 2021)
- 25 Nov 2026 20:12 UTC · OSV: first stored (published 29 Apr 2021)
- 25 Nov 2026 20:11 UTC · OSV: first stored (published 25 May 2022)