# CVE-2021-20191: Insertion of Sensitive Information into Log File in ansible

- Severity: Medium 5.5 (CVSS:3.1, scored by NVD) `CVSS:3.1/AV:L/AC:L/PR:L/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): 0.35%, higher than 30% of CVEs (2026-12-02)
- Published: 2021-05-26T00:00:00.000Z
- Modified: 2026-06-17T03:33:26.780Z
- Also known as: GHSA-8f4m-hccc-8qph, PYSEC-2021-124
- Weaknesses: CWE-532
- Assigned by: redhat

## Description

A flaw was found in ansible. Credentials, such as secrets, are being disclosed in console log by default and not protected by no_log feature when using those modules. An attacker can take advantage of this information to steal those credentials. The highest threat from this vulnerability is to data confidentiality. Versions before ansible 2.9.18 are affected.

(As written by CVE List.)

## Affected

- ansible: ansible 2.9.18
- ansible (PyPI): from 2.9.0a1 before 2.9.18rc1; before 2.8.19rc1; from 2.10.0a1 before 2.10.7; before 2.8.19; from 2.9.0 before 2.9.18; from 2.10.0 before 2.10.7
- oracle virtualization: 4.0
- redhat ansible: before 2.8.19; from 2.9.0 before 2.9.18; from 2.10.0 before 2.10.7
- redhat ansible_tower: 3.0
- redhat cisco_nx-os_collection: before 1.4.0
- redhat community_general_collection: before 1.3.6; from 2.0.0 before 2.0.1
- redhat community_network_collection: before 1.3.2; from 2.0.0 before 2.0.1
- redhat docker_community_collection: before 1.2.2
- redhat google_cloud_platform_ansible_collection: 1.0.2

## Every score

- GitHub: CVSS:3.1 5.5 Medium `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N`
- NVD: CVSS:3.1 5.5 Medium `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N`
- NVD: CVSS:2.0 2.1 Low `AV:L/AC:L/Au:N/C:P/I:N/A:N`

## References

- <https://bugzilla.redhat.com/show_bug.cgi?id=1916813> (issue-tracking, report, vendor-advisory, web)
- <https://lists.debian.org/debian-lts-announce/2023/12/msg00018.html> (mailing-list, web)
- <https://nvd.nist.gov/vuln/detail/CVE-2021-20191> (advisory)
- <https://github.com/ansible/ansible/pull/73488> (web)
- <https://github.com/ansible/ansible/pull/73489> (web)
- <https://github.com/ansible/ansible/commit/cc82d986c40328d4ae81298a9d287c95a6326bb0> (web)
- <https://github.com/ansible/ansible/commit/d74a1b1d1325af2a24848044cf2858987f5a3ecc> (web)
- <https://access.redhat.com/security/cve/cve-2021-20191> (web)
- <https://github.com/advisories/GHSA-8f4m-hccc-8qph> (advisory)
- <https://github.com/ansible/ansible> (package)
- <https://github.com/pypa/advisory-database/tree/main/vulns/ansible/PYSEC-2021-124.yaml> (web)

## Sources

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

---

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