CVE-2021-20228
JSON

7.5high

Ansible Exposes Sensitive Information

Severity
7.5high CVSS:3.1 by NVD
Exploit likelihood
2.04% (higher than 81% of CVEs; EPSS, by FIRST)
Published
Last changed
Assigned by
redhat
Also known as
GHSA-5rrg-rr89-x9mvPYSEC-2021-1

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

Product or packageVersionsReported by
ansibleansible-engine 2.9.18CVE List
ansible (PyPI)from 2.10.0a1 before 2.10.6rc1, from 2.9.0a1 before 2.9.18rc1, before 2.8.19rc1, before 2.9.19GitHub Advisory Database, PyPA Advisory Database
redhat ansible_engine2.9.18, 2.0, 2.9NVD
redhat ansible_automation_platform1.2NVD
redhat ansible_tower3.0NVD
debian debian_linux10.0NVD

All scores

GitHub7.5high CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N
GitHubhigh CVSS:4.0CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:N/VA:N/SC:N/SI:N/SA:N
NVD7.5high CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N
NVD5.0medium CVSS:2.0AV:N/AC:L/Au:N/C:P/I:N/A:N

Classification

What each source says

CVE List

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.

GitHub Advisory Database

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

NVD (es)

Se encontró un fallo en Ansible Engine versión 2.9.18, donde la información confidencial no está enmascarada por defecto y no está protegida por la funcionalidad no_log cuando se usa la funcionalidad sub-option del módulo basic.py. Este fallo permite a un atacante obtener información confidencial. La mayor amenaza de esta vulnerabilidad es la confidencialidad

References

https://bugzilla.redhat.com/show_bug.cgi?id=1925002issue-tracking, report, third-party-advisory, web
https://github.com/ansible/ansible/pull/73487patch, third-party-advisory, web
https://www.debian.org/security/2021/dsa-4950third-party-advisory, vendor-advisory, web
https://nvd.nist.gov/vuln/detail/CVE-2021-20228advisory
https://github.com/ansible/ansible/pull/73492web
https://github.com/ansible/ansible/pull/73493web
https://github.com/ansible/ansible/pull/73494web
https://github.com/ansible/ansible/commit/49ebd509df9de1c1fc1bcee00e79a835dd00662cweb
https://github.com/ansible/ansible/commit/e41d1f0a3fd6c466192e7e24accd3d1c6501111bweb
https://github.com/ansible/ansible/commit/f8ff395d817c3eddc050f809919c15dfb5796120web
https://github.com/advisories/GHSA-5rrg-rr89-x9mvadvisory
https://github.com/ansible/ansiblepackage

Sources

SourceRecordLicence
CVE ListCVE-2021-20228 changed 2024-08-03CVE Terms of Use
GitHub Advisory DatabaseGHSA-5rrg-rr89-x9mv changed 2024-09-09CC-BY-4.0
NVDCVE-2021-20228 changed 2026-06-17Public domain
PyPA Advisory DatabasePYSEC-2021-1 changed 2023-11-08CC-BY-4.0