Vulnerability · Published May 26, 2021 · Assigned by redhat

CVE-2021-20191

Medium 5.5

In plain English

A medium-severity sensitive data in logs in ansible. There are no confirmed reports of exploitation so far. The chance it is exploited in the next 30 days is estimated at 0.3% (higher than 28% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.

Severity (CVSS NVD)5.5Medium
Exploit odds (30 days)0.3%top 71.6% of all CVEs
Exploited in the wildNo reportsnot in CISA KEV
Attack toolingNoneno public tooling known

Official description

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.

Affected packages & fixed versions

EcosystemPackageFixed inAdvisory
Alpine:v3.20ansible2.10.7-r0ALPINE-CVE-2021-20191
Alpine:v3.21ansible2.10.7-r0ALPINE-CVE-2021-20191
Alpine:v3.22ansible2.10.7-r0ALPINE-CVE-2021-20191
Alpine:v3.23ansible2.10.7-r0ALPINE-CVE-2021-20191
Alpine:v3.24ansible2.10.7-r0ALPINE-CVE-2021-20191
Debian:12ansible2.10.7-1DEBIAN-CVE-2021-20191
Debian:13ansible2.10.7-1DEBIAN-CVE-2021-20191
Debian:14ansible2.10.7-1DEBIAN-CVE-2021-20191
PyPIansible2.10.7, 2.8.19, 2.9.18PYSEC-2021-124
PyPIansible2.9.18rc1GHSA-8f4m-hccc-8qph
PyPIansible2.8.19rc1GHSA-8f4m-hccc-8qph
PyPIansible2.10.7GHSA-8f4m-hccc-8qph
Ubuntu:24.04:LTSansibleno fix listedUBUNTU-CVE-2021-20191
Ubuntu:25.10ansibleno fix listedUBUNTU-CVE-2021-20191
Ubuntu:26.04:LTSansibleno fix listedUBUNTU-CVE-2021-20191
Ubuntu:26.10ansibleno fix listedUBUNTU-CVE-2021-20191

Affected products (as reported)

VendorProductVersions
n/a ansible ansible 2.9.18

Weakness: CWE-532

References