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
| Ecosystem | Package | Fixed in | Advisory |
|---|---|---|---|
| Debian:12 | ansible | 2.10.7+merged+base+2.10.8+dfsg-1 | DEBIAN-CVE-2021-20228 |
| Debian:13 | ansible | 2.10.7+merged+base+2.10.8+dfsg-1 | DEBIAN-CVE-2021-20228 |
| Debian:14 | ansible | 2.10.7+merged+base+2.10.8+dfsg-1 | DEBIAN-CVE-2021-20228 |
| PyPI | ansible | 2.9.19 | PYSEC-2021-1 |
| PyPI | ansible | 2.10.6rc1 | GHSA-5rrg-rr89-x9mv |
| PyPI | ansible | 2.9.18rc1 | GHSA-5rrg-rr89-x9mv |
| PyPI | ansible | 2.8.19rc1 | GHSA-5rrg-rr89-x9mv |
| Ubuntu:24.04:LTS | ansible | no fix listed | UBUNTU-CVE-2021-20228 |
| Ubuntu:25.10 | ansible | no fix listed | UBUNTU-CVE-2021-20228 |
| Ubuntu:26.04:LTS | ansible | no fix listed | UBUNTU-CVE-2021-20228 |
| Ubuntu:26.10 | ansible | no fix listed | UBUNTU-CVE-2021-20228 |
Affected products (as reported)
Weakness: CWE-200
References
- https://bugzilla.redhat.com/show_bug.cgi?id=1925002 x_refsource_MISC
- https://github.com/ansible/ansible/pull/73487 x_refsource_MISC
- DSA-4950 vendor-advisory, x_refsource_DEBIAN