{"answers":{"affected":"7 open source packages ship an affected version, including ansible. It affects 8 products.","exploited":"There is no known exploitation of CVE-2021-20191 in the wild and no public exploit code.","fix":"Upgrade ansible to a fixed version for your release line: 2.8.19, 2.9.18, 2.10.7 or 2.8.19rc1.","what":"CVE-2021-20191 is a medium-severity vulnerability in Redhat Ansible Tower, published on 26 May 2021. It can only be exploited from the same machine or local network, with no action from the victim."},"fix_prompt":"Check this codebase for CVE-2021-20191 and fix it if it is affected.\n\nWhat it is: CVE-2021-20191 is a medium-severity vulnerability in Redhat Ansible Tower, published on 26 May 2021. It can only be exploited from the same machine or local network, with no action from the victim.\nExploitation: There is no known exploitation of CVE-2021-20191 in the wild and no public exploit code.\n\nAffected packages and fixed versions:\n- ansible (PyPI): affected all versions; fixed in 2.8.19, 2.9.18, 2.10.7\n- ansible (PyPI): affected all versions; fixed in 2.8.19rc1\n- ansible (PyPI): affected all versions; fixed in 2.8.19rc1\n- ansible (PyPI): affected from 2.10.0a1; fixed in 2.10.7\n- ansible (PyPI): affected from 2.10.0a1; fixed in 2.10.7\n- ansible (PyPI): affected from 2.9.0a1; fixed in 2.9.18rc1\n- ansible (PyPI): affected from 2.9.0a1; fixed in 2.9.18rc1\n\nTask:\n1. Search the dependency manifests and lockfiles (for example package.json, package-lock.json, requirements.txt, poetry.lock, uv.lock, pom.xml, build.gradle, go.mod, Cargo.lock, Gemfile.lock) and any Dockerfiles for the affected packages, including transitive dependencies.\n2. If an affected version is in use, upgrade it to the fixed version for its release line with the project's package manager, so the lockfile is regenerated. Prefer the smallest upgrade that fixes it.\n3. If there is no fix, or the upgrade would break the build, do not guess: explain the risk and the safest workaround instead.\n4. Run the tests and summarise what changed and why.\n5. If nothing in the project is affected, say so and change nothing.\n\nReference: https://insights.sbomify.com/CVE-2021-20191/ (Markdown: https://insights.sbomify.com/CVE-2021-20191/index.md)","id":"CVE-2021-20191","markdown":"https://insights.sbomify.com/CVE-2021-20191/index.md","name":"CVE-2021-20191","record":{"aliases":["ALPINE-CVE-2021-20191","CLEANSTART-2026-XW66953","DEBIAN-CVE-2021-20191","GHSA-8f4m-hccc-8qph","PYSEC-2021-124","UBUNTU-CVE-2021-20191"],"analysis":{"component_type":"developer_tool","fix_type":"upgrade","impacts":["data_read"],"network_reachable":"adjacent_or_local","non_default_config":false,"product_category":"Ansible automation tool","requires_auth":"low_privilege","summary":"Ansible leaks sensitive credentials in console logs by default, allowing attackers to steal secrets and compromise data confidentiality.","user_interaction":"not_required","vuln_class":"information_disclosure"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"redhat","cpe":[{"product":"virtualization","vendor":"oracle"},{"product":"ansible","vendor":"redhat"},{"product":"ansible_tower","vendor":"redhat"},{"product":"cisco_nx-os_collection","vendor":"redhat"},{"product":"community_general_collection","vendor":"redhat"},{"product":"community_network_collection","vendor":"redhat"},{"product":"docker_community_collection","vendor":"redhat"},{"product":"google_cloud_platform_ansible_collection","vendor":"redhat"}],"cvss":{"score":5.5,"severity":"medium","source":"nvd","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N","version":"3.1"},"cwes":[{"id":"CWE-532","name":"Insertion of Sensitive Information into Log File"}],"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.","ecosystems":["PyPI"],"exploits":{"exploitdb":0,"first_seen":null,"github_poc":0,"max_poc_stars":null,"metasploit":0,"nuclei":0,"refs":[],"tier":"none_known"},"has_fix":true,"headline":"Insertion of Sensitive Information into Log File in ansible","id":"CVE-2021-20191","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":"PyPI","product":"redhat:ansible_tower","products":["redhat:ansible_tower"],"type":"information_disclosure","year":"2021"},"n_packages":7,"n_references":2,"next":{"headline":"DO NOT USE THIS CANDIDATE NUMBER.","id":"CVE-2021-20192"},"packages":[{"ecosystem":"PyPI","fixed":["2.8.19","2.9.18","2.10.7"],"introduced":["0","2.9.0","2.10.0"],"last_affected":[],"package":"ansible","purl":"pkg:pypi/ansible","source":"PYSEC-2021-124"},{"ecosystem":"PyPI","fixed":["2.8.19rc1"],"introduced":["0"],"last_affected":[],"package":"ansible","purl":null,"source":"GHSA-8f4m-hccc-8qph"},{"ecosystem":"PyPI","fixed":["2.8.19rc1"],"introduced":["0"],"last_affected":[],"package":"ansible","purl":"pkg:pypi/ansible","source":"GHSA-8f4m-hccc-8qph"},{"ecosystem":"PyPI","fixed":["2.10.7"],"introduced":["2.10.0a1"],"last_affected":[],"package":"ansible","purl":null,"source":"GHSA-8f4m-hccc-8qph"},{"ecosystem":"PyPI","fixed":["2.10.7"],"introduced":["2.10.0a1"],"last_affected":[],"package":"ansible","purl":"pkg:pypi/ansible","source":"GHSA-8f4m-hccc-8qph"},{"ecosystem":"PyPI","fixed":["2.9.18rc1"],"introduced":["2.9.0a1"],"last_affected":[],"package":"ansible","purl":null,"source":"GHSA-8f4m-hccc-8qph"},{"ecosystem":"PyPI","fixed":["2.9.18rc1"],"introduced":["2.9.0a1"],"last_affected":[],"package":"ansible","purl":"pkg:pypi/ansible","source":"GHSA-8f4m-hccc-8qph"}],"prev":{"headline":"Deserialization of untrusted data in jackson-databind","id":"CVE-2021-20190"},"products":["ansible"],"published":"2021-05-26","related":[{"cvss_score":7.5,"headline":"Other in n/a","id":"CVE-2013-3779","kev_date_added":null,"published":"2013-07-17"},{"cvss_score":6.8,"headline":"Auth bypass in n/a","id":"CVE-2011-3538","kev_date_added":null,"published":"2011-10-18"},{"cvss_score":6.4,"headline":"Other in n/a","id":"CVE-2015-2581","kev_date_added":null,"published":"2015-07-16"},{"cvss_score":6.4,"headline":"Other in n/a","id":"CVE-2014-2439","kev_date_added":null,"published":"2014-04-16"},{"cvss_score":5.3,"headline":"Open redirect in ovirt-engine","id":"CVE-2020-10775","kev_date_added":null,"published":"2020-08-24"},{"cvss_score":5,"headline":"Denial of service in n/a","id":"CVE-2014-2472","kev_date_added":null,"published":"2014-10-15"}],"sources":[{"class":"attribution","licence":"CVE Terms of Use (MITRE)","name":"CVE List","prefix":"CVE"},{"class":"attribution","licence":"CC BY 4.0","name":"GitHub Advisory Database","prefix":"GHSA"},{"class":"attribution","licence":"CC BY 4.0","name":"PyPA Advisory Database","prefix":"PYSEC"},{"class":"attribution","licence":"US public information, NVD API terms","name":"NVD"},{"class":"attribution","licence":"CWE Terms of Use","name":"CWE (MITRE)"},{"class":"attribution","licence":"FIRST CVSS licence","name":"CVSS (FIRST)"}],"ssvc":{"automatable":null,"exploitation":null,"technical_impact":null},"state":"PUBLISHED","updated":"2024-08-03","vendors":["n/a"]},"summary":"Ansible leaks sensitive credentials in console logs by default, allowing attackers to steal secrets and compromise data confidentiality.","url":"https://insights.sbomify.com/CVE-2021-20191/"}