{"api_version":"1","generated_at":"2026-04-22T22:49:58+00:00","cve":"CVE-2021-20178","urls":{"html":"https://cve.report/CVE-2021-20178","api":"https://cve.report/api/cve/CVE-2021-20178.json","docs":"https://cve.report/api","cve_org":"https://www.cve.org/CVERecord?id=CVE-2021-20178","nvd":"https://nvd.nist.gov/vuln/detail/CVE-2021-20178"},"summary":{"title":"CVE-2021-20178","description":"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.","state":"PUBLIC","assigner":"secalert@redhat.com","published_at":"2021-05-26 12:15:00","updated_at":"2023-12-28 19:15:00"},"problem_types":["CWE-532"],"metrics":[],"references":[{"url":"https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/HIU7QZUV73U6ZQ65VJWSFBTCALVXLH55/","name":"FEDORA-2021-e9478617ae","refsource":"FEDORA","tags":[],"title":"[SECURITY] Fedora 33 Update: ansible-2.9.18-1.fc33 - package-announce - Fedora Mailing-Lists","mime":"text/html","httpstatus":"200","archivestatus":"404"},{"url":"https://github.com/ansible/ansible/blob/v2.9.18/changelogs/CHANGELOG-v2.9.rst#security-fixes,","name":"https://github.com/ansible/ansible/blob/v2.9.18/changelogs/CHANGELOG-v2.9.rst#security-fixes,","refsource":"MISC","tags":[],"title":"ansible/CHANGELOG-v2.9.rst at v2.9.18 · ansible/ansible · GitHub","mime":"text/html","httpstatus":"200","archivestatus":"404"},{"url":"https://lists.debian.org/debian-lts-announce/2023/12/msg00018.html","name":"[debian-lts-announce] 20231228 [SECURITY] [DLA 3695-1] ansible security update","refsource":"","tags":[],"title":"[SECURITY] [DLA 3695-1] ansible security update","mime":"text/html","httpstatus":"200","archivestatus":"200"},{"url":"https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/FUQ2QKAQA5OW2TY3ACZZMFIAJ2EQTG37/","name":"FEDORA-2021-9a0903469c","refsource":"","tags":[],"title":"[SECURITY] Fedora 32 Update: ansible-2.9.18-1.fc32 - package-announce - Fedora Mailing-Lists","mime":"text/html","httpstatus":"200","archivestatus":"200"},{"url":"https://github.com/ansible/ansible/blob/v2.9.18/changelogs/CHANGELOG-v2.9.rst#security-fixes%2C","name":"https://github.com/ansible/ansible/blob/v2.9.18/changelogs/CHANGELOG-v2.9.rst#security-fixes%2C","refsource":"","tags":[],"title":"ansible/CHANGELOG-v2.9.rst at v2.9.18 · ansible/ansible · GitHub","mime":"text/html","httpstatus":"200","archivestatus":"200"},{"url":"https://bugzilla.redhat.com/show_bug.cgi?id=1914774","name":"https://bugzilla.redhat.com/show_bug.cgi?id=1914774","refsource":"MISC","tags":[],"title":"1914774 – (CVE-2021-20178) CVE-2021-20178 ansible: user data leak in snmp_facts module","mime":"text/html","httpstatus":"200","archivestatus":"200"},{"url":"https://github.com/ansible-collections/community.general/pull/1635%2C","name":"https://github.com/ansible-collections/community.general/pull/1635%2C","refsource":"","tags":[],"title":"","mime":"text/plain","httpstatus":"404","archivestatus":"404"},{"url":"https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/FUQ2QKAQA5OW2TY3ACZZMFIAJ2EQTG37/","name":"FEDORA-2021-9a0903469c","refsource":"FEDORA","tags":[],"title":"[SECURITY] Fedora 32 Update: ansible-2.9.18-1.fc32 - package-announce - Fedora Mailing-Lists","mime":"text/html","httpstatus":"200","archivestatus":"404"},{"url":"https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/HIU7QZUV73U6ZQ65VJWSFBTCALVXLH55/","name":"FEDORA-2021-e9478617ae","refsource":"","tags":[],"title":"[SECURITY] Fedora 33 Update: ansible-2.9.18-1.fc33 - package-announce - Fedora Mailing-Lists","mime":"text/html","httpstatus":"200","archivestatus":"200"},{"url":"https://github.com/ansible-collections/community.general/pull/1635,","name":"https://github.com/ansible-collections/community.general/pull/1635,","refsource":"MISC","tags":[],"title":"","mime":"text/plain","httpstatus":"404","archivestatus":"404"},{"url":"https://www.cve.org/CVERecord?id=CVE-2021-20178","name":"CVE Program record","refsource":"CVE.ORG","tags":["canonical"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2021-20178","name":"NVD vulnerability detail","refsource":"NVD","tags":["canonical","analysis"]}],"affected":[],"timeline":[],"solutions":[],"workarounds":[],"exploits":[],"credits":[],"nvd_cpes":[{"cve_year":"2021","cve_id":"20178","vulnerable":"1","versionEndIncluding":"","cpe1":"cpe","cpe2":"2.3","cpe3":"o","cpe4":"fedoraproject","cpe5":"fedora","cpe6":"32","cpe7":"*","cpe8":"*","cpe9":"*","cpe10":"*","cpe11":"*","cpe12":"*","cpe13":"*"},{"cve_year":"2021","cve_id":"20178","vulnerable":"1","versionEndIncluding":"","cpe1":"cpe","cpe2":"2.3","cpe3":"o","cpe4":"fedoraproject","cpe5":"fedora","cpe6":"33","cpe7":"*","cpe8":"*","cpe9":"*","cpe10":"*","cpe11":"*","cpe12":"*","cpe13":"*"},{"cve_year":"2021","cve_id":"20178","vulnerable":"1","versionEndIncluding":"","cpe1":"cpe","cpe2":"2.3","cpe3":"a","cpe4":"redhat","cpe5":"ansible","cpe6":"*","cpe7":"*","cpe8":"*","cpe9":"*","cpe10":"*","cpe11":"*","cpe12":"*","cpe13":"*"},{"cve_year":"2021","cve_id":"20178","vulnerable":"1","versionEndIncluding":"","cpe1":"cpe","cpe2":"2.3","cpe3":"a","cpe4":"redhat","cpe5":"ansible_tower","cpe6":"3.0","cpe7":"*","cpe8":"*","cpe9":"*","cpe10":"*","cpe11":"*","cpe12":"*","cpe13":"*"}],"vendor_comments":[],"enrichments":{"kev":null,"epss":null,"legacy_qids":[{"cve":"CVE-2021-20178","qid":"184886","title":"Debian Security Update for ansible (CVE-2021-20178)"},{"cve":"CVE-2021-20178","qid":"239447","title":"Red Hat Update for RHV Engine and Host Common Packages (RHSA-2021:2180)"},{"cve":"CVE-2021-20178","qid":"281605","title":"Fedora Security Update for ansible (FEDORA-2021-9a0903469c)"},{"cve":"CVE-2021-20178","qid":"281606","title":"Fedora Security Update for ansible (FEDORA-2021-e9478617ae)"},{"cve":"CVE-2021-20178","qid":"352253","title":"Amazon Linux Security Advisory for ansible: ALAS2-2021-1613"},{"cve":"CVE-2021-20178","qid":"356209","title":"Amazon Linux Security Advisory for ansible : ALASANSIBLE2-2023-004"},{"cve":"CVE-2021-20178","qid":"356466","title":"Amazon Linux Security Advisory for ansible : ALAS2ANSIBLE2-2023-004"},{"cve":"CVE-2021-20178","qid":"6000405","title":"Debian Security Update for ansible (DLA 3695-1)"},{"cve":"CVE-2021-20178","qid":"752570","title":"SUSE Enterprise Linux Important for SUSE Manager Client Tools (SUSE-SU-2022:3178-1)"},{"cve":"CVE-2021-20178","qid":"900111","title":"CBL-Mariner Linux Security Update for ansible 2.9.12"},{"cve":"CVE-2021-20178","qid":"903566","title":"Common Base Linux Mariner (CBL-Mariner) Security Update for ansible (4264)"},{"cve":"CVE-2021-20178","qid":"982362","title":"Python (pip) Security Update for ansible (GHSA-wv5p-gmmv-wh9v)"}]},"source_records":{"cve_program":{"data_type":"CVE","data_format":"MITRE","data_version":"4.0","CVE_data_meta":{"ID":"CVE-2021-20178","ASSIGNER":"secalert@redhat.com","STATE":"PUBLIC"},"affects":{"vendor":{"vendor_data":[{"vendor_name":"n/a","product":{"product_data":[{"product_name":"Ansible","version":{"version_data":[{"version_value":"before 2.9.18"}]}}]}}]}},"problemtype":{"problemtype_data":[{"description":[{"lang":"eng","value":"CWE-532"}]}]},"references":{"reference_data":[{"refsource":"FEDORA","name":"FEDORA-2021-e9478617ae","url":"https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/HIU7QZUV73U6ZQ65VJWSFBTCALVXLH55/"},{"refsource":"FEDORA","name":"FEDORA-2021-9a0903469c","url":"https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/FUQ2QKAQA5OW2TY3ACZZMFIAJ2EQTG37/"},{"refsource":"MISC","name":"https://bugzilla.redhat.com/show_bug.cgi?id=1914774","url":"https://bugzilla.redhat.com/show_bug.cgi?id=1914774"},{"refsource":"MISC","name":"https://github.com/ansible-collections/community.general/pull/1635,","url":"https://github.com/ansible-collections/community.general/pull/1635,"},{"refsource":"MISC","name":"https://github.com/ansible/ansible/blob/v2.9.18/changelogs/CHANGELOG-v2.9.rst#security-fixes,","url":"https://github.com/ansible/ansible/blob/v2.9.18/changelogs/CHANGELOG-v2.9.rst#security-fixes,"}]},"description":{"description_data":[{"lang":"eng","value":"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."}]}},"nvd":{"publishedDate":"2021-05-26 12:15:00","lastModifiedDate":"2023-12-28 19:15:00","problem_types":["CWE-532"],"metrics":{"baseMetricV3":{"cvssV3":{"version":"3.1","vectorString":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N","attackVector":"LOCAL","attackComplexity":"LOW","privilegesRequired":"LOW","userInteraction":"NONE","scope":"UNCHANGED","confidentialityImpact":"HIGH","integrityImpact":"NONE","availabilityImpact":"NONE","baseScore":5.5,"baseSeverity":"MEDIUM"},"exploitabilityScore":1.8,"impactScore":3.6},"baseMetricV2":{"cvssV2":{"version":"2.0","vectorString":"AV:L/AC:L/Au:N/C:P/I:N/A:N","accessVector":"LOCAL","accessComplexity":"LOW","authentication":"NONE","confidentialityImpact":"PARTIAL","integrityImpact":"NONE","availabilityImpact":"NONE","baseScore":2.1},"severity":"LOW","exploitabilityScore":3.9,"impactScore":2.9,"acInsufInfo":false,"obtainAllPrivilege":false,"obtainUserPrivilege":false,"obtainOtherPrivilege":false,"userInteractionRequired":false}},"configurations":{"CVE_data_version":"4.0","nodes":[{"operator":"OR","children":[],"cpe_match":[{"vulnerable":true,"cpe23Uri":"cpe:2.3:a:redhat:ansible_tower:3.0:*:*:*:*:*:*:*","cpe_name":[]},{"vulnerable":true,"cpe23Uri":"cpe:2.3:a:redhat:ansible:*:*:*:*:*:*:*:*","versionEndExcluding":"2.9.18","cpe_name":[]}]},{"operator":"OR","children":[],"cpe_match":[{"vulnerable":true,"cpe23Uri":"cpe:2.3:o:fedoraproject:fedora:32:*:*:*:*:*:*:*","cpe_name":[]},{"vulnerable":true,"cpe23Uri":"cpe:2.3:o:fedoraproject:fedora:33:*:*:*:*:*:*:*","cpe_name":[]}]}]}},"legacy_mitre":{"record":{"CveYear":"2021","CveId":"20178","Ordinal":"194219","Title":"CVE-2021-20178","CVE":"CVE-2021-20178","Year":"2021"},"notes":[{"CveYear":"2021","CveId":"20178","Ordinal":"1","NoteData":"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.","Type":"Description","Title":null},{"CveYear":"2021","CveId":"20178","Ordinal":"2","NoteData":"2021-05-26","Type":"Other","Title":"Published"},{"CveYear":"2021","CveId":"20178","Ordinal":"3","NoteData":"2021-05-26","Type":"Other","Title":"Modified"}]}}}