VDB

CVE-2021-20191

CVE-2021-20191 PUBLISHED

Insertion of Sensitive Information into Log File in ansible

Reported by redhat · Published May 26, 2021

ansible is fixed in 2.10.7, 2.9.18rc1 and 2.8.19rc1 (PyPI)

A flaw was found in ansible. Credentials, such as secrets, are being disclosed in console log by default and not protected by no_log feature when using those modules. An attacker can take advantage of this information to steal those credentials. The highest threat from this vulnerability is to data confidentiality. Versions before ansible 2.9.18 are affected.

Fixed versions

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

PackageEcosystemFixed in
ansiblePyPI2.10.7, 2.9.18rc1, 2.8.19rc1

Affected products

VendorProductVersions
n/aansibleansible 2.9.18
n/aansible2.9.18

Timeline

  • Jan 17, 2021 CVE Published
  • May 27, 2021 EPSS Score (30 in total, the first dated here)
  • Aug 27, 2021 CVE Updated
  • Nov 10, 2023 PoC Published (2 in total, the first dated here)
  • Mar 9, 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-20191
vulnetix vdb fixes CVE-2021-20191

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-20191/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 ›