{"id":"CVE-2021-20191","aliases":["CVE-2021-20191","GHSA-8f4m-hccc-8qph","PYSEC-2021-124"],"related":[],"kind":"vulnerability","state":"published","title":"Insertion of Sensitive Information into Log File in ansible","summary":"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.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"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.","source":"cvelist"},{"lang":"en","text":"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.","format":"markdown","source":"ghsa"},{"lang":"es","text":"Se encontró un fallo en ansible.&#xa0;Las credenciales, como los secretos, son divulgadas en el registro de la consola por defecto y no están protegidas por la función no_log cuando son usados esos módulos.&#xa0;Un atacante puede tomar ventaja de esta información para robar esas credenciales.&#xa0;La mayor amenaza de esta vulnerabilidad es la confidencialidad de los datos.&#xa0;Las versiones anteriores a ansible versión 2.9.18 están afectadas","source":"nvd"}],"published":"2021-05-26T00:00:00.000Z","modified":"2026-06-17T03:33:26.780Z","severity":{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N","score":5.5,"rating":"MEDIUM"},"severities":[{"scorer":"GitHub","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N","score":5.5,"rating":"MEDIUM"},{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N","score":5.5,"rating":"MEDIUM"},{"scorer":"NVD","scheme":"CVSS:2.0","vector":"AV:L/AC:L/Au:N/C:P/I:N/A:N","score":2.1,"rating":"LOW"}],"cwes":["CWE-532"],"affected":[{"ranges":[{"version":"ansible 2.9.18","status":"affected"}],"product":"ansible","source":"cvelist"},{"ranges":[{"type":"ecosystem","introduced":"2.9.0a1","status":"affected","fixed":"2.9.18rc1"}],"ecosystem":"PyPI","package":"ansible","purl":"pkg:pypi/ansible","source":"ghsa"},{"ranges":[{"type":"ecosystem","introduced":"0","status":"affected","fixed":"2.8.19rc1"}],"ecosystem":"PyPI","package":"ansible","purl":"pkg:pypi/ansible","source":"ghsa"},{"ranges":[{"type":"ecosystem","introduced":"2.10.0a1","status":"affected","fixed":"2.10.7"}],"ecosystem":"PyPI","package":"ansible","purl":"pkg:pypi/ansible","source":"ghsa"},{"ranges":[{"status":"affected","version":"4.0"}],"vendor":"oracle","product":"virtualization","cpe":"cpe:2.3:a:oracle:virtualization:4.0:*:*:*:*:*:*:*","source":"nvd"},{"ranges":[{"status":"affected","fixed":"2.8.19"},{"status":"affected","introduced":"2.9.0","fixed":"2.9.18"},{"status":"affected","introduced":"2.10.0","fixed":"2.10.7"}],"vendor":"redhat","product":"ansible","cpe":"cpe:2.3:a:redhat:ansible:*:*:*:*:*:*:*:*","source":"nvd"},{"ranges":[{"status":"affected","version":"3.0"}],"vendor":"redhat","product":"ansible_tower","cpe":"cpe:2.3:a:redhat:ansible_tower:3.0:*:*:*:*:*:*:*","source":"nvd"},{"ranges":[{"status":"affected","fixed":"1.4.0"}],"vendor":"redhat","product":"cisco_nx-os_collection","cpe":"cpe:2.3:a:redhat:cisco_nx-os_collection:*:*:*:*:*:*:*:*","source":"nvd"},{"ranges":[{"status":"affected","fixed":"1.3.6"},{"status":"affected","introduced":"2.0.0","fixed":"2.0.1"}],"vendor":"redhat","product":"community_general_collection","cpe":"cpe:2.3:a:redhat:community_general_collection:*:*:*:*:*:ansible:*:*","source":"nvd"},{"ranges":[{"status":"affected","fixed":"1.3.2"},{"status":"affected","introduced":"2.0.0","fixed":"2.0.1"}],"vendor":"redhat","product":"community_network_collection","cpe":"cpe:2.3:a:redhat:community_network_collection:*:*:*:*:*:ansible:*:*","source":"nvd"},{"ranges":[{"status":"affected","fixed":"1.2.2"}],"vendor":"redhat","product":"docker_community_collection","cpe":"cpe:2.3:a:redhat:docker_community_collection:*:*:*:*:*:ansible:*:*","source":"nvd"},{"ranges":[{"status":"affected","version":"1.0.2"}],"vendor":"redhat","product":"google_cloud_platform_ansible_collection","cpe":"cpe:2.3:a:redhat:google_cloud_platform_ansible_collection:1.0.2:*:*:*:*:*:*:*","source":"nvd"},{"ranges":[{"type":"ecosystem","introduced":"0","status":"affected","fixed":"2.8.19"},{"type":"ecosystem","introduced":"2.9.0","status":"affected","fixed":"2.9.18"},{"type":"ecosystem","introduced":"2.10.0","status":"affected","fixed":"2.10.7"}],"ecosystem":"PyPI","package":"ansible","purl":"pkg:pypi/ansible","source":"pysec"}],"references":[{"url":"https://bugzilla.redhat.com/show_bug.cgi?id=1916813","tags":["issue-tracking","report","vendor-advisory","web","x-transferred"],"sources":["cvelist","ghsa","nvd","pysec"]},{"url":"https://lists.debian.org/debian-lts-announce/2023/12/msg00018.html","tags":["mailing-list","web","x-transferred"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2021-20191","tags":["advisory"],"sources":["ghsa"]},{"url":"https://github.com/ansible/ansible/pull/73488","tags":["web"],"sources":["ghsa"]},{"url":"https://github.com/ansible/ansible/pull/73489","tags":["web"],"sources":["ghsa"]},{"url":"https://github.com/ansible/ansible/commit/cc82d986c40328d4ae81298a9d287c95a6326bb0","tags":["web"],"sources":["ghsa"]},{"url":"https://github.com/ansible/ansible/commit/d74a1b1d1325af2a24848044cf2858987f5a3ecc","tags":["web"],"sources":["ghsa"]},{"url":"https://access.redhat.com/security/cve/cve-2021-20191","tags":["web"],"sources":["ghsa"]},{"url":"https://github.com/advisories/GHSA-8f4m-hccc-8qph","tags":["advisory"],"sources":["ghsa","pysec"]},{"url":"https://github.com/ansible/ansible","tags":["package"],"sources":["ghsa"]},{"url":"https://github.com/pypa/advisory-database/tree/main/vulns/ansible/PYSEC-2021-124.yaml","tags":["web"],"sources":["ghsa"]}],"credits":[],"assigner":"redhat","sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2021-20191","url":"https://www.cve.org/CVERecord?id=CVE-2021-20191","licence":"CVE Terms of Use","modified":"2024-08-03T17:30:07.571Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-8f4m-hccc-8qph","url":"https://github.com/advisories/GHSA-8f4m-hccc-8qph","licence":"CC-BY-4.0","modified":"2024-09-10T22:06:37.487Z"},{"source":"nvd","name":"NVD","id":"CVE-2021-20191","url":"https://nvd.nist.gov/vuln/detail/CVE-2021-20191","licence":"Public domain","modified":"2026-06-17T03:33:26.780Z"},{"source":"pysec","name":"PyPA Advisory Database","id":"PYSEC-2021-124","url":"https://osv.dev/vulnerability/PYSEC-2021-124","licence":"CC-BY-4.0","modified":"2023-11-08T04:04:35.345Z"}],"updatedAt":"2026-11-25T22:58:01.550Z","epss":{"score":0.00349,"percentile":0.30556,"date":"2026-12-02T12:00:21.000Z"}}