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

CVE-2021-20191 · Severity: low · CVSS 3.1 · Published 2021-05-26

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.

Technologies: ansible (PyPI). Vendors: PyPI.

Quick answers

Is CVE-2021-20191 exploited in the wild?
No. Junglewise Threat Intelligence has no report of CVE-2021-20191 being exploited in the wild.
How severe is CVE-2021-20191?
Low severity, with a CVSS score of 3.1, published 26 May 2021.
Which products and versions are affected?
ansible (PyPI) ECOSYSTEM:introduced=0,fixed=2.8.19,introduced=2.9.0,fixed=2.9.18,introduced=2.10.0,fixed=2.10.7, ECOSYSTEM:introduced=2.9.0a1,fixed=2.9.18rc1.
Is there a fix for CVE-2021-20191?
Yes. ansible (PyPI): upgrade to 2.10.7, 2.9.18rc1 or later. Junglewise finds every place you run it, drafts the upgrade and applies it once you approve.
Am I affected by CVE-2021-20191?
Check whether you run ansible (PyPI) at an affected version. Junglewise does that check for you around the clock: connect your code, cloud and domains, and it matches new vulnerabilities like this one against what you actually run and tells you when one reaches you.

How to fix

  • ansible (PyPI): upgrade to 2.10.7, 2.9.18rc1 or later
    pip install "ansible>=2.10.7"

Affected products

  • ansible (PyPI) ECOSYSTEM:introduced=0,fixed=2.8.19,introduced=2.9.0,fixed=2.9.18,introduced=2.10.0,fixed=2.10.7, ECOSYSTEM:introduced=2.9.0a1,fixed=2.9.18rc1

Identifiers

  • CVE-2021-20191
  • GHSA-8f4m-hccc-8qph
  • PYSEC-2021-124

This page as Markdown. Free to reuse under CC BY 4.0 with a link back.