Vulnerability · Published Apr 29, 2021 · Assigned by redhat

CVE-2021-20228

High 7.5

In plain English

A high-severity information exposure in ansible. There are no confirmed reports of exploitation so far. The chance it is exploited in the next 30 days is estimated at 2.0% (higher than 81% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.

Severity (CVSS NVD)7.5High
Exploit odds (30 days)2.0%top 18.7% of all CVEs
Exploited in the wildNo reportsnot in CISA KEV
Attack toolingNoneno public tooling known

Official description

A flaw was found in the Ansible Engine 2.9.18, where sensitive info is not masked by default and is not protected by the no_log feature when using the sub-option feature of the basic.py module. This flaw allows an attacker to obtain sensitive information. The highest threat from this vulnerability is to confidentiality.

Affected packages & fixed versions

EcosystemPackageFixed inAdvisory
Debian:12ansible2.10.7+merged+base+2.10.8+dfsg-1DEBIAN-CVE-2021-20228
Debian:13ansible2.10.7+merged+base+2.10.8+dfsg-1DEBIAN-CVE-2021-20228
Debian:14ansible2.10.7+merged+base+2.10.8+dfsg-1DEBIAN-CVE-2021-20228
PyPIansible2.9.19PYSEC-2021-1
PyPIansible2.10.6rc1GHSA-5rrg-rr89-x9mv
PyPIansible2.9.18rc1GHSA-5rrg-rr89-x9mv
PyPIansible2.8.19rc1GHSA-5rrg-rr89-x9mv
Ubuntu:24.04:LTSansibleno fix listedUBUNTU-CVE-2021-20228
Ubuntu:25.10ansibleno fix listedUBUNTU-CVE-2021-20228
Ubuntu:26.04:LTSansibleno fix listedUBUNTU-CVE-2021-20228
Ubuntu:26.10ansibleno fix listedUBUNTU-CVE-2021-20228

Affected products (as reported)

VendorProductVersions
n/a ansible ansible-engine 2.9.18

Weakness: CWE-200

References