VDB

CVE-2021-20178

CVE-2021-20178 PUBLISHED CVSS 5.5 MEDIUM

Insertion of Sensitive Information into Log File in ansible

Reported by redhat · Published May 26, 2021

ansible is fixed in 2.9.18 (PyPI)

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.

Fixed versions

Upgrade to a fixed version or later. Language registries are listed first, then Linux distributions, then vendor products.

PackageEcosystemFixed in
ansiblePyPI2.9.18
ansibleArch Linux2.10.7-1
ansibleredhat2.9.18

Risk scores

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

Affected products

VendorProductVersions
n/aAnsiblebefore 2.9.18
archansible0
n/aAnsible2.9.18
PyPIansible0

Timeline

  • Jan 11, 2021 CVE Published
  • May 27, 2021 EPSS Score (30 in total, the first dated here)
  • Mar 10, 2026 Security Advisory (10 in total, the first dated here)
  • Mar 17, 2026 Distribution Patch (5 in total, the first dated here)
  • Aug 27, 2026 Coalition ESS Score

Query this with the API

The same record, from the CLI:

vulnetix vdb vuln CVE-2021-20178
vulnetix vdb fixes CVE-2021-20178

Or with curl, using the org id and key from your account page:

curl -s -H "Authorization: ApiKey ${VULNETIX_ORG_ID}:${VULNETIX_API_KEY}" \
  "https://api.vdb.vulnetix.com/v2/vuln/CVE-2021-20178/fixes/registry"

The Community plan is free and allows 50 queries a day. Get a free API key · API quickstart

Look up in the Resolve Platform →
$ Lookup Community · 50/day Open Lookup ›