{"id":"CVE-2021-20178","aliases":["CVE-2021-20178","GHSA-wv5p-gmmv-wh9v","PYSEC-2021-106"],"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 encontró un fallo en el módulo ansible donde las credenciales son reveladas en el registro de la consola por defecto y no están protegidas por la característica de seguridad cuando se usa el módulo bitbucket_pipeline_variable.&#xa0;Este fallo permite a un atacante robar las credenciales del módulo bitbucket_pipeline.&#xa0;La mayor amenaza de esta vulnerabilidad es la confidencialidad","source":"nvd"}],"published":"2021-05-26T00:00:00.000Z","modified":"2026-06-17T03:33:25.443Z","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":"HIGH"},{"scorer":"GitHub","scheme":"CVSS:4.0","vector":"CVSS:4.0/AV:N/AC:L/AT:N/PR:L/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: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"}],"cwes":["CWE-532"],"affected":[{"ranges":[{"version":"before 2.9.18","status":"affected"}],"product":"Ansible","source":"cvelist"},{"ranges":[{"type":"ecosystem","introduced":"0","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":[{"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":"32"},{"status":"affected","version":"33"}],"vendor":"fedoraproject","product":"fedora","cpe":"cpe:2.3:o:fedoraproject:fedora:32:*:*:*:*:*:*:*","source":"nvd"},{"ranges":[{"type":"ecosystem","introduced":"0","status":"affected","fixed":"2.9.18"}],"ecosystem":"PyPI","package":"ansible","purl":"pkg:pypi/ansible","source":"pysec"}],"references":[{"url":"https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/HIU7QZUV73U6ZQ65VJWSFBTCALVXLH55/","tags":["vendor-advisory","x-transferred"],"sources":["cvelist","nvd"]},{"url":"https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/FUQ2QKAQA5OW2TY3ACZZMFIAJ2EQTG37/","tags":["vendor-advisory","x-transferred"],"sources":["cvelist","nvd"]},{"url":"https://bugzilla.redhat.com/show_bug.cgi?id=1914774","tags":["issue-tracking","report","vendor-advisory","web","x-transferred"],"sources":["cvelist","ghsa","nvd","pysec"]},{"url":"https://github.com/ansible-collections/community.general/pull/1635%2C","tags":["x-transferred"],"sources":["cvelist","nvd"]},{"url":"https://github.com/ansible/ansible/blob/v2.9.18/changelogs/CHANGELOG-v2.9.rst#security-fixes%2C","tags":["web","x-transferred"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://lists.debian.org/debian-lts-announce/2023/12/msg00018.html","tags":["mailing-list","web","x-transferred"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2021-20178","tags":["advisory"],"sources":["ghsa"]},{"url":"https://github.com/ansible-collections/community.general/pull/1635","tags":["web"],"sources":["ghsa"]},{"url":"https://github.com/ansible-collections/community.general/commit/1d0c5e2ba47724c31a18d7b08b9daf13df8829dc","tags":["web"],"sources":["ghsa"]},{"url":"https://github.com/advisories/GHSA-wv5p-gmmv-wh9v","tags":["advisory"],"sources":["ghsa","pysec"]},{"url":"https://github.com/ansible/ansible/blob/v2.9.18/changelogs/CHANGELOG-v2.9.rst#security-fixes","tags":["web"],"sources":["ghsa"]},{"url":"https://github.com/ansible/ansible/blob/v2.9.18/changelogs/CHANGELOG-v2.9.rst#security-fixes,","tags":["web"],"sources":["ghsa","pysec"]},{"url":"https://github.com/pypa/advisory-database/tree/main/vulns/ansible/PYSEC-2021-106.yaml","tags":["web"],"sources":["ghsa"]},{"url":"https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/FUQ2QKAQA5OW2TY3ACZZMFIAJ2EQTG37","tags":["web"],"sources":["ghsa"]},{"url":"https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/HIU7QZUV73U6ZQ65VJWSFBTCALVXLH55","tags":["web"],"sources":["ghsa"]},{"url":"https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/FUQ2QKAQA5OW2TY3ACZZMFIAJ2EQTG37","tags":["web"],"sources":["ghsa"]},{"url":"https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/HIU7QZUV73U6ZQ65VJWSFBTCALVXLH55","tags":["web"],"sources":["ghsa"]},{"url":"https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/HIU7QZUV73U6ZQ65VJWSFBTCALVXLH55/","tags":["web"],"sources":["pysec"]},{"url":"https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/FUQ2QKAQA5OW2TY3ACZZMFIAJ2EQTG37/","tags":["web"],"sources":["pysec"]},{"url":"https://github.com/ansible-collections/community.general/pull/1635,","tags":["web"],"sources":["pysec"]}],"credits":[],"assigner":"redhat","sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2021-20178","url":"https://www.cve.org/CVERecord?id=CVE-2021-20178","licence":"CVE Terms of Use","modified":"2024-08-03T17:30:07.440Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-wv5p-gmmv-wh9v","url":"https://github.com/advisories/GHSA-wv5p-gmmv-wh9v","licence":"CC-BY-4.0","modified":"2024-11-25T05:24:20.834Z"},{"source":"nvd","name":"NVD","id":"CVE-2021-20178","url":"https://nvd.nist.gov/vuln/detail/CVE-2021-20178","licence":"Public domain","modified":"2026-06-17T03:33:25.443Z"},{"source":"pysec","name":"PyPA Advisory Database","id":"PYSEC-2021-106","url":"https://osv.dev/vulnerability/PYSEC-2021-106","licence":"CC-BY-4.0","modified":"2023-11-08T04:04:34.798Z"}],"updatedAt":"2026-11-25T22:58:01.538Z","epss":{"score":0.00337,"percentile":0.29034,"date":"2026-12-01T12:00:22.000Z"}}