{"id":"CVE-2021-20180","aliases":["CVE-2021-20180","GHSA-fh5v-5f35-2rv2","PYSEC-2026-618"],"related":[],"kind":"vulnerability","state":"published","title":"Insertion of Sensitive Information into Log File in ansible","summary":"A flaw was found in ansible module where credentials are disclosed in the console log by default and not protected by the security feature when using the bitbucket_pipeline_variable module. This flaw allows an attacker to steal bitbucket_pipeline credentials. The highest threat from this vulnerability is to confidentiality.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"A flaw was found in ansible module where credentials are disclosed in the console log by default and not protected by the security feature when using the bitbucket_pipeline_variable module. This flaw allows an attacker to steal bitbucket_pipeline credentials. The highest threat from this vulnerability is to confidentiality.","source":"cvelist"},{"lang":"es","text":"Se ha encontrado un fallo en el módulo de ansible en el que las credenciales son divulgadas en el registro de la consola por defecto y no están protegidas por la función de seguridad cuando es usado el módulo bitbucket_pipeline_variable. Este fallo permite a un atacante robar las credenciales de bitbucket_pipeline. La mayor amenaza de esta vulnerabilidad es la confidencialidad","source":"nvd"}],"published":"2022-03-16T14:12:30.000Z","modified":"2026-07-06T08:11:15.354Z","severity":{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N","score":5.5,"rating":"MEDIUM"},"severities":[{"scorer":"GitHub","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N","score":5.5,"rating":"MEDIUM"},{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N","score":5.5,"rating":"MEDIUM"},{"scorer":"NVD","scheme":"CVSS:2.0","vector":"AV:L/AC:L/Au:N/C:P/I:N/A:N","score":2.1,"rating":"LOW"},{"scorer":"PyPA Advisory Database","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N","score":5.5,"rating":"MEDIUM"}],"cwes":["CWE-532"],"affected":[{"ranges":[{"version":"Fixed in ansible 2.9.18","status":"affected"}],"product":"Ansible","source":"cvelist"},{"ranges":[{"type":"ecosystem","introduced":"2.8.0a1","status":"affected","fixed":"2.8.19"}],"ecosystem":"PyPI","package":"ansible","purl":"pkg:pypi/ansible","source":"ghsa"},{"ranges":[{"type":"ecosystem","introduced":"2.9.0b1","status":"affected","fixed":"2.9.18"}],"ecosystem":"PyPI","package":"ansible","purl":"pkg:pypi/ansible","source":"ghsa"},{"ranges":[{"status":"affected","fixed":"2.9.18"}],"vendor":"redhat","product":"ansible","cpe":"cpe:2.3:a:redhat:ansible:*:*:*:*:*:*:*:*","source":"nvd"},{"ranges":[{"type":"ecosystem","introduced":"2.8.0a1","status":"affected","fixed":"2.8.19"},{"type":"ecosystem","introduced":"2.9.0b1","status":"affected","fixed":"2.9.18"}],"ecosystem":"PyPI","package":"ansible","purl":"pkg:pypi/ansible","source":"pysec"}],"references":[{"url":"https://bugzilla.redhat.com/show_bug.cgi?id=1915808","tags":["issue-tracking","vendor-advisory","web","x-refsource-misc","x-transferred"],"sources":["cvelist","ghsa","nvd","pysec"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2021-20180","tags":["advisory"],"sources":["ghsa","pysec"]},{"url":"https://github.com/ansible/ansible/pull/73242","tags":["web"],"sources":["ghsa","pysec"]},{"url":"https://github.com/ansible/ansible/pull/73243","tags":["web"],"sources":["ghsa","pysec"]},{"url":"https://github.com/ansible/ansible","tags":["package"],"sources":["ghsa","pysec"]},{"url":"https://github.com/ansible/ansible/blob/v2.8.19/changelogs/CHANGELOG-v2.8.rst","tags":["web"],"sources":["ghsa","pysec"]},{"url":"https://github.com/ansible/ansible/blob/v2.9.18/changelogs/CHANGELOG-v2.9.rst","tags":["web"],"sources":["ghsa","pysec"]},{"url":"https://github.com/ansible/ansible/tree/v2.7.18/lib/ansible/modules/source_control","tags":["web"],"sources":["ghsa","pysec"]},{"url":"https://github.com/ansible/ansible/tree/v2.8.0a1/lib/ansible/modules/source_control","tags":["web"],"sources":["ghsa","pysec"]},{"url":"https://pypi.org/project/ansible","tags":["package"],"sources":["pysec"]},{"url":"https://github.com/advisories/GHSA-fh5v-5f35-2rv2","tags":["advisory"],"sources":["pysec"]}],"credits":[],"assigner":"redhat","sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2021-20180","url":"https://www.cve.org/CVERecord?id=CVE-2021-20180","licence":"CVE Terms of Use","modified":"2024-08-03T17:30:07.435Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-fh5v-5f35-2rv2","url":"https://github.com/advisories/GHSA-fh5v-5f35-2rv2","licence":"CC-BY-4.0","modified":"2026-07-06T08:11:15.354Z"},{"source":"nvd","name":"NVD","id":"CVE-2021-20180","url":"https://nvd.nist.gov/vuln/detail/CVE-2021-20180","licence":"Public domain","modified":"2026-06-17T03:33:25.677Z"},{"source":"pysec","name":"PyPA Advisory Database","id":"PYSEC-2026-618","url":"https://osv.dev/vulnerability/PYSEC-2026-618","licence":"CC-BY-4.0","modified":"2026-07-06T08:00:10.331Z"}],"updatedAt":"2026-11-25T22:58:07.198Z","epss":{"score":0.00314,"percentile":0.26306,"date":"2026-12-01T12:00:22.000Z"}}