{"id":"CVE-2021-20180","aliases":["GHSA-fh5v-5f35-2rv2","PYSEC-2026-618"],"title":"Insertion of Sensitive Information into Log File in ansible","summary":"Insertion of Sensitive Information into Log File in ansible","severity":"medium","cvss":5.5,"cvssVector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N","vendor":"ansible","product":"ansible","ecosystem":"pip","affected":["ansible >= 2.8.0a1, < 2.8.19","ansible >= 2.9.0b1, < 2.9.18"],"patched":["ansible 2.8.19","ansible 2.9.18"],"published":"2022-03-17","updated":"2026-07-06","source":"OSV","sourceUrl":"https://osv.dev/vulnerability/GHSA-fh5v-5f35-2rv2","references":[{"url":"https://nvd.nist.gov/vuln/detail/CVE-2021-20180"},{"url":"https://github.com/ansible/ansible/pull/73242"},{"url":"https://github.com/ansible/ansible/pull/73243"},{"url":"https://bugzilla.redhat.com/show_bug.cgi?id=1915808"},{"url":"https://github.com/ansible/ansible"},{"url":"https://github.com/ansible/ansible/blob/v2.8.19/changelogs/CHANGELOG-v2.8.rst"},{"url":"https://github.com/ansible/ansible/blob/v2.9.18/changelogs/CHANGELOG-v2.9.rst"},{"url":"https://github.com/ansible/ansible/tree/v2.7.18/lib/ansible/modules/source_control"},{"url":"https://github.com/ansible/ansible/tree/v2.8.0a1/lib/ansible/modules/source_control"}],"tags":["osv","pip"],"epss":0.00314,"epssPercentile":0.24506,"ingestedAt":"2026-07-08T18:25:48.910Z","slug":"CVE-2021-20180","body":"## Overview\n\nA 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.\n\n## Affected packages\n\n- `ansible >= 2.8.0a1, < 2.8.19`\n- `ansible >= 2.9.0b1, < 2.9.18`\n\n## Remediation\n\nUpgrade to a patched release:\n\n- `ansible 2.8.19`\n- `ansible 2.9.18`","depth":"sunlit","depthScore":30,"depthScoreParts":{"impact":30.3,"likelihood":0.1,"exploitation":0,"ransomware":0},"changes":[]}