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
| Ecosystem | Package | Fixed in | Advisory |
|---|---|---|---|
| Alpine:v3.20 | ansible | 2.10.7-r0 | ALPINE-CVE-2021-20191 |
| Alpine:v3.21 | ansible | 2.10.7-r0 | ALPINE-CVE-2021-20191 |
| Alpine:v3.22 | ansible | 2.10.7-r0 | ALPINE-CVE-2021-20191 |
| Alpine:v3.23 | ansible | 2.10.7-r0 | ALPINE-CVE-2021-20191 |
| Alpine:v3.24 | ansible | 2.10.7-r0 | ALPINE-CVE-2021-20191 |
| Debian:12 | ansible | 2.10.7-1 | DEBIAN-CVE-2021-20191 |
| Debian:13 | ansible | 2.10.7-1 | DEBIAN-CVE-2021-20191 |
| Debian:14 | ansible | 2.10.7-1 | DEBIAN-CVE-2021-20191 |
| PyPI | ansible | 2.10.7, 2.8.19, 2.9.18 | PYSEC-2021-124 |
| PyPI | ansible | 2.9.18rc1 | GHSA-8f4m-hccc-8qph |
| PyPI | ansible | 2.8.19rc1 | GHSA-8f4m-hccc-8qph |
| PyPI | ansible | 2.10.7 | GHSA-8f4m-hccc-8qph |
| Ubuntu:24.04:LTS | ansible | no fix listed | UBUNTU-CVE-2021-20191 |
| Ubuntu:25.10 | ansible | no fix listed | UBUNTU-CVE-2021-20191 |
| Ubuntu:26.04:LTS | ansible | no fix listed | UBUNTU-CVE-2021-20191 |
| Ubuntu:26.10 | ansible | no fix listed | UBUNTU-CVE-2021-20191 |
Affected products (as reported)
Weakness: CWE-532