CVE-2021-20228: Infoleak

Published Jan 29, 2021
·
Updated

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 nolog 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.

Other sources

A flaw was found in the Ansible Engine prior to 2.10.6rc1, 2.9.18rc1, and 2.8.19rc1, where sensitive info is not masked by default and is not protected by the nolog 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.

GitHub

A flaw was found in the Ansible Engine, where sensitive info is not masked by default and is not protected by the nolog 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.

The return value of a specific module i.e. basic.py of ansible engine is not being masked by default while using the fallback sub-option.The return value may contain sensitive info like secret Or Credentials.

Red Hat

Affected Software

13 affected componentsFixes available
redhat/ansible<0:2.9.18-1.el7ae
0:2.9.18-1.el7ae
redhat/ansible<0:2.9.18-1.el8ae
0:2.9.18-1.el8ae
debian/ansible
2.7.7+dfsg-1+deb10u12.7.7+dfsg-1+deb10u22.10.7+merged+base+2.10.8+dfsg-17.3.0+dfsg-17.7.0+dfsg-3
redhat/ansible-engine<2.9.18
2.9.18
pip/ansible<2.8.19rc1
2.8.19rc1
pip/ansible>=2.9.0a1<2.9.18rc1
2.9.18rc1
pip/ansible>=2.10.0a1<2.10.6rc1
2.10.6rc1
redhat Ansible Engine=2.9.18
redhat Ansible Automation Platform=1.2
redhat Ansible Engine=2.0
redhat Ansible Engine=2.9
redhat Ansible Tower=3.0
Debian Debian Linux=10.0

Event History

Jan 29, 2021
CVE Published
12:00 AM
Apr 29, 2021
CVE Published
via MITRE·03:34 PM
Data Sourced
via MITRE·03:34 PM
DescriptionWeakness
May 25, 2022
Advisory Published
07:22 PM

Parent advisories

This vulnerability appears in the following advisories.

Free Weekly Intel

Don't miss critical vulnerabilities

Join thousands of security professionals who receive our weekly digest of trending CVEs, zero-days, and exploited vulnerabilities.

No spam. Unsubscribe anytime.

Frequently Asked Questions

1

What is CVE-2021-20228?

CVE-2021-20228 is a vulnerability in Ansible Engine where sensitive information is not masked by default and can be obtained by an attacker.

2

How severe is CVE-2021-20228?

CVE-2021-20228 has a severity rating of 7.5 (high).

3

What software is affected by CVE-2021-20228?

Ansible Engine versions from 2.8.0 to 2.8.19, 2.9.0 to 2.9.18, and 2.10.0 to 2.10.7 are affected. Redhat Ansible Engine 2.9.18 and Ansible versions 0:2.9.18-1.el7ae and 0:2.9.18-1.el8ae are also affected.

4

How can I fix CVE-2021-20228?

To fix CVE-2021-20228, update your Ansible Engine to version 2.8.19, 2.9.18, or 2.10.7.

5

Where can I find more information about CVE-2021-20228?

You can find more information about CVE-2021-20228 on the NIST National Vulnerability Database (NVD) website and the relevant GitHub pull requests (PR #73487 and PR #73492).

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203