{"id":"CVE-2021-20228","aliases":["GHSA-5rrg-rr89-x9mv","PYSEC-2021-1"],"url":"https://o3.security/vulnerability/CVE-2021-20228","summary":"Ansible Exposes Sensitive Information","details":"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.","published":"2021-04-29T16:15:09.737Z","modified":"2026-08-07T11:31:06.864921442Z","cvss":{"score":7.5,"severity":"HIGH","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N"},"epss":{"score":0.0206,"percentile":0.79611,"asOf":"2026-08-23"},"cisaKev":null,"exploitsKnown":0,"affectedPackages":[{"ecosystem":"PyPI","name":"ansible","fixedVersion":"2.10.6rc1"},{"ecosystem":"PyPI","name":"ansible","fixedVersion":"2.9.18rc1"},{"ecosystem":"PyPI","name":"ansible","fixedVersion":"2.8.19rc1"}],"fix":{"url":"https://github.com/ansible/ansible/pull/73487","label":"ansible/ansible#73487"},"references":[{"type":"ADVISORY","url":"https://www.debian.org/security/2021/dsa-4950"},{"type":"REPORT","url":"https://bugzilla.redhat.com/show_bug.cgi?id=1925002"},{"type":"FIX","url":"https://github.com/ansible/ansible/pull/73487"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2021-20228"},{"type":"WEB","url":"https://github.com/ansible/ansible/pull/73492"},{"type":"WEB","url":"https://github.com/ansible/ansible/pull/73493"},{"type":"WEB","url":"https://github.com/ansible/ansible/pull/73494"},{"type":"WEB","url":"https://github.com/ansible/ansible/commit/49ebd509df9de1c1fc1bcee00e79a835dd00662c"},{"type":"WEB","url":"https://github.com/ansible/ansible/commit/e41d1f0a3fd6c466192e7e24accd3d1c6501111b"},{"type":"WEB","url":"https://github.com/ansible/ansible/commit/f8ff395d817c3eddc050f809919c15dfb5796120"},{"type":"ADVISORY","url":"https://github.com/advisories/GHSA-5rrg-rr89-x9mv"},{"type":"PACKAGE","url":"https://github.com/ansible/ansible"},{"type":"WEB","url":"https://github.com/pypa/advisory-database/tree/main/vulns/ansible/PYSEC-2021-1.yaml"}],"provenance":{"sources":["OSV.dev","FIRST.org (EPSS)"],"lastVerified":"2026-08-07T11:31:06.864921442Z"}}