{"id":"CVE-2021-20228","aliases":["CVE-2021-20228","GHSA-5rrg-rr89-x9mv","PYSEC-2021-1"],"related":[],"kind":"vulnerability","state":"published","title":"Ansible Exposes Sensitive Information","summary":"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.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"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.","source":"cvelist"},{"lang":"en","text":"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.","format":"markdown","source":"ghsa"},{"lang":"es","text":"Se encontró un fallo en Ansible Engine versión 2.9.18, donde la información confidencial no está enmascarada por defecto y no está protegida por la funcionalidad no_log cuando se usa la funcionalidad sub-option del módulo basic.py.&#xa0;Este fallo permite a un atacante obtener información confidencial.&#xa0;La mayor amenaza de esta vulnerabilidad es la confidencialidad","source":"nvd"}],"published":"2021-04-29T15:34:08.000Z","modified":"2026-06-17T03:33:30.447Z","severity":{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N","score":7.5,"rating":"HIGH"},"severities":[{"scorer":"GitHub","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N","score":7.5,"rating":"HIGH"},{"scorer":"GitHub","scheme":"CVSS:4.0","vector":"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","rating":"HIGH"},{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N","score":7.5,"rating":"HIGH"},{"scorer":"NVD","scheme":"CVSS:2.0","vector":"AV:N/AC:L/Au:N/C:P/I:N/A:N","score":5,"rating":"MEDIUM"}],"cwes":["CWE-200","CWE-522"],"affected":[{"ranges":[{"version":"ansible-engine 2.9.18","status":"affected"}],"product":"ansible","source":"cvelist"},{"ranges":[{"type":"ecosystem","introduced":"2.10.0a1","status":"affected","fixed":"2.10.6rc1"}],"ecosystem":"PyPI","package":"ansible","purl":"pkg:pypi/ansible","source":"ghsa"},{"ranges":[{"type":"ecosystem","introduced":"2.9.0a1","status":"affected","fixed":"2.9.18rc1"}],"ecosystem":"PyPI","package":"ansible","purl":"pkg:pypi/ansible","source":"ghsa"},{"ranges":[{"type":"ecosystem","introduced":"0","status":"affected","fixed":"2.8.19rc1"}],"ecosystem":"PyPI","package":"ansible","purl":"pkg:pypi/ansible","source":"ghsa"},{"ranges":[{"status":"affected","version":"2.9.18"},{"status":"affected","version":"2.0"},{"status":"affected","version":"2.9"}],"vendor":"redhat","product":"ansible_engine","cpe":"cpe:2.3:a:redhat:ansible_engine:2.9.18:*:*:*:*:*:*:*","source":"nvd"},{"ranges":[{"status":"affected","version":"1.2"}],"vendor":"redhat","product":"ansible_automation_platform","cpe":"cpe:2.3:a:redhat:ansible_automation_platform:1.2:*:*:*:*:*:*:*","source":"nvd"},{"ranges":[{"status":"affected","version":"3.0"}],"vendor":"redhat","product":"ansible_tower","cpe":"cpe:2.3:a:redhat:ansible_tower:3.0:*:*:*:*:*:*:*","source":"nvd"},{"ranges":[{"status":"affected","version":"10.0"}],"vendor":"debian","product":"debian_linux","cpe":"cpe:2.3:o:debian:debian_linux:10.0:*:*:*:*:*:*:*","source":"nvd"},{"ranges":[{"type":"ecosystem","introduced":"0","status":"affected","fixed":"2.9.19"}],"ecosystem":"PyPI","package":"ansible","purl":"pkg:pypi/ansible","source":"pysec"}],"references":[{"url":"https://bugzilla.redhat.com/show_bug.cgi?id=1925002","tags":["issue-tracking","report","third-party-advisory","web","x-refsource-misc","x-transferred"],"sources":["cvelist","ghsa","nvd","pysec"]},{"url":"https://github.com/ansible/ansible/pull/73487","tags":["patch","third-party-advisory","web","x-refsource-misc","x-transferred"],"sources":["cvelist","ghsa","nvd","pysec"]},{"url":"https://www.debian.org/security/2021/dsa-4950","tags":["third-party-advisory","vendor-advisory","web","x-refsource-debian","x-transferred"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2021-20228","tags":["advisory"],"sources":["ghsa"]},{"url":"https://github.com/ansible/ansible/pull/73492","tags":["web"],"sources":["ghsa"]},{"url":"https://github.com/ansible/ansible/pull/73493","tags":["web"],"sources":["ghsa"]},{"url":"https://github.com/ansible/ansible/pull/73494","tags":["web"],"sources":["ghsa"]},{"url":"https://github.com/ansible/ansible/commit/49ebd509df9de1c1fc1bcee00e79a835dd00662c","tags":["web"],"sources":["ghsa"]},{"url":"https://github.com/ansible/ansible/commit/e41d1f0a3fd6c466192e7e24accd3d1c6501111b","tags":["web"],"sources":["ghsa"]},{"url":"https://github.com/ansible/ansible/commit/f8ff395d817c3eddc050f809919c15dfb5796120","tags":["web"],"sources":["ghsa"]},{"url":"https://github.com/advisories/GHSA-5rrg-rr89-x9mv","tags":["advisory"],"sources":["ghsa","pysec"]},{"url":"https://github.com/ansible/ansible","tags":["package"],"sources":["ghsa"]},{"url":"https://github.com/pypa/advisory-database/tree/main/vulns/ansible/PYSEC-2021-1.yaml","tags":["web"],"sources":["ghsa"]}],"credits":[],"assigner":"redhat","sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2021-20228","url":"https://www.cve.org/CVERecord?id=CVE-2021-20228","licence":"CVE Terms of Use","modified":"2024-08-03T17:30:07.863Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-5rrg-rr89-x9mv","url":"https://github.com/advisories/GHSA-5rrg-rr89-x9mv","licence":"CC-BY-4.0","modified":"2024-09-09T21:20:55.682Z"},{"source":"nvd","name":"NVD","id":"CVE-2021-20228","url":"https://nvd.nist.gov/vuln/detail/CVE-2021-20228","licence":"Public domain","modified":"2026-06-17T03:33:30.447Z"},{"source":"pysec","name":"PyPA Advisory Database","id":"PYSEC-2021-1","url":"https://osv.dev/vulnerability/PYSEC-2021-1","licence":"CC-BY-4.0","modified":"2023-11-08T04:04:35.952Z"}],"updatedAt":"2026-11-25T22:58:01.091Z","epss":{"score":0.02043,"percentile":0.8173,"date":"2026-12-01T12:00:22.000Z"}}