Advisory Database
  • Advisories
  • Dependency Scanning
  1. pypi
  2. ›
  3. ansible
  4. ›
  5. CVE-2021-20178

CVE-2021-20178: Insertion of Sensitive Information into Log File in ansible

June 1, 2021 (updated November 18, 2024)

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.

References

  • bugzilla.redhat.com/show_bug.cgi?id=1914774
  • github.com/advisories/GHSA-wv5p-gmmv-wh9v
  • github.com/ansible-collections/community.general/commit/1d0c5e2ba47724c31a18d7b08b9daf13df8829dc
  • github.com/ansible-collections/community.general/pull/1635
  • github.com/ansible/ansible/blob/v2.9.18/changelogs/CHANGELOG-v2.9.rst
  • github.com/ansible/ansible/blob/v2.9.18/changelogs/CHANGELOG-v2.9.rst
  • github.com/ansible/ansible/blob/v2.9.18/changelogs/CHANGELOG-v2.9.rst
  • github.com/pypa/advisory-database/tree/main/vulns/ansible/PYSEC-2021-106.yaml
  • lists.debian.org/debian-lts-announce/2023/12/msg00018.html
  • lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/FUQ2QKAQA5OW2TY3ACZZMFIAJ2EQTG37
  • lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/HIU7QZUV73U6ZQ65VJWSFBTCALVXLH55
  • lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/FUQ2QKAQA5OW2TY3ACZZMFIAJ2EQTG37
  • lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/HIU7QZUV73U6ZQ65VJWSFBTCALVXLH55
  • nvd.nist.gov/vuln/detail/CVE-2021-20178

Code Behaviors & Features

Detect and mitigate CVE-2021-20178 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Learn more about Dependency Scanning →

Affected versions

All versions before 2.9.18

Fixed versions

  • 2.9.18

Solution

Upgrade to version 2.9.18 or above.

Impact 5.5 MEDIUM

CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N

Learn more about CVSS

Weakness

  • CWE-532: Insertion of Sensitive Information into Log File

Source file

pypi/ansible/CVE-2021-20178.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Wed, 14 May 2025 12:14:59 +0000.