# CVE-2021-20228: Ansible Exposes Sensitive Information

- Severity: High 7.5 (CVSS:3.1, scored by NVD) `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 2.04%, higher than 81% of CVEs (2026-12-01)
- Published: 2021-04-29T15:34:08.000Z
- Modified: 2026-06-17T03:33:30.447Z
- Also known as: GHSA-5rrg-rr89-x9mv, PYSEC-2021-1
- Weaknesses: CWE-200, CWE-522
- Assigned by: redhat

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

(As written by CVE List.)

## Affected

- ansible: ansible-engine 2.9.18
- 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.19
- redhat ansible_engine: 2.9.18; 2.0; 2.9
- redhat ansible_automation_platform: 1.2
- redhat ansible_tower: 3.0
- debian debian_linux: 10.0

## Every score

- GitHub: CVSS:3.1 7.5 High `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N`
- GitHub: CVSS:4.0 High `CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:N/VA:N/SC:N/SI:N/SA:N`
- NVD: CVSS:3.1 7.5 High `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N`
- NVD: CVSS:2.0 5.0 Medium `AV:N/AC:L/Au:N/C:P/I:N/A:N`

## References

- <https://bugzilla.redhat.com/show_bug.cgi?id=1925002> (issue-tracking, report, third-party-advisory, web)
- <https://github.com/ansible/ansible/pull/73487> (patch, third-party-advisory, web)
- <https://www.debian.org/security/2021/dsa-4950> (third-party-advisory, vendor-advisory, web)
- <https://nvd.nist.gov/vuln/detail/CVE-2021-20228> (advisory)
- <https://github.com/ansible/ansible/pull/73492> (web)
- <https://github.com/ansible/ansible/pull/73493> (web)
- <https://github.com/ansible/ansible/pull/73494> (web)
- <https://github.com/ansible/ansible/commit/49ebd509df9de1c1fc1bcee00e79a835dd00662c> (web)
- <https://github.com/ansible/ansible/commit/e41d1f0a3fd6c466192e7e24accd3d1c6501111b> (web)
- <https://github.com/ansible/ansible/commit/f8ff395d817c3eddc050f809919c15dfb5796120> (web)
- <https://github.com/advisories/GHSA-5rrg-rr89-x9mv> (advisory)
- <https://github.com/ansible/ansible> (package)
- <https://github.com/pypa/advisory-database/tree/main/vulns/ansible/PYSEC-2021-1.yaml> (web)

## Sources

- CVE List: [CVE-2021-20228](https://www.cve.org/CVERecord?id=CVE-2021-20228), CVE Terms of Use, modified 2024-08-03
- GitHub Advisory Database: [GHSA-5rrg-rr89-x9mv](https://github.com/advisories/GHSA-5rrg-rr89-x9mv), CC-BY-4.0, modified 2024-09-09
- NVD: [CVE-2021-20228](https://nvd.nist.gov/vuln/detail/CVE-2021-20228), Public domain, modified 2026-06-17
- PyPA Advisory Database: [PYSEC-2021-1](https://osv.dev/vulnerability/PYSEC-2021-1), CC-BY-4.0, modified 2023-11-08

---

Page: https://cve.day/CVE-2021-20228 · Whole record: https://cve.day/CVE-2021-20228.json · Rebuilt by cve.day 2026-11-25T22:58:01.091Z
