CVE-2021-3620 Ansible discloses sensitive information in traceback error message

Medium 5.5 Published Updated

Ansible Engine discloses sensitive user credentials in traceback error messages, allowing attackers to read confidential data.

Exploited in the wild
Not known
Login needed
Any signed-in user
Attackable
Local or same network only
Victim action needed
Not needed
Fix
Available

What is CVE-2021-3620?

CVE-2021-3620 is a medium-severity vulnerability in Redhat Enterprise Linux, published on 3 Mar 2022. It can only be exploited from the same machine or local network, with no action from the victim.

Official description

A flaw was found in Ansible Engine's ansible-connection module, where sensitive information such as the Ansible user credentials is disclosed by default in the traceback error message. The highest threat from this vulnerability is to confidentiality.

Weakness: CWE-209

Which versions are affected by CVE-2021-3620?

3 open source packages ship an affected version, including ansible. It affects 9 products.

PackageAffectedFixed in
ansible PyPIAll versions2.9.27
ansible PyPIAll versions2.9.27
ansible PyPIAll versions2.9.27
Linux distribution packages (15)
ansible Red Hat:ansible_automation_platform:2.0::el8All versions0:2.9.27-1.el8ap
ansible-core Red Hat:ansible_automation_platform:2.0::el8All versions0:2.11.6-1.el8ap
ansible-test Red Hat:ansible_automation_platform:2.0::el8All versions0:2.11.6-1.el8ap
ansible Red Hat:ansible_engine:2.9::el7All versions0:2.9.27-1.el7ae
ansible-test Red Hat:ansible_engine:2.9::el7All versions0:2.9.27-1.el7ae
ansible Red Hat:ansible_engine:2.9::el8All versions0:2.9.27-1.el8ae
ansible-test Red Hat:ansible_engine:2.9::el8All versions0:2.9.27-1.el8ae
ansible Red Hat:ansible_engine:2::el7All versions0:2.9.27-1.el7ae
ansible-test Red Hat:ansible_engine:2::el7All versions0:2.9.27-1.el7ae
ansible Red Hat:ansible_engine:2::el8All versions0:2.9.27-1.el8ae
ansible-test Red Hat:ansible_engine:2::el8All versions0:2.9.27-1.el8ae
ansible Red Hat:rhev_hypervisor:4.4::el8All versions0:2.9.27-1.el8ae
ovirt-ansible-collection Red Hat:rhev_hypervisor:4.4::el8All versions0:1.6.5-1.el8ev
ansible Red Hat:rhev_manager:4.4:el8All versions0:2.9.27-1.el8ae
ovirt-ansible-collection Red Hat:rhev_manager:4.4:el8All versions0:1.6.5-1.el8ev

Products include Redhat Ansible Automation Platform Early Access, Redhat Ansible Engine, Redhat Enterprise Linux, Redhat Enterprise Linux for Power Little Endian, Redhat Openstack, Redhat Virtualization and 3 more.

How do I fix CVE-2021-3620?

Upgrade ansible to 2.9.27 or later.

Is CVE-2021-3620 being exploited?

There is no known exploitation of CVE-2021-3620 in the wild and no public exploit code.

Sources

Also known as DEBIAN-CVE-2021-3620, GHSA-4r65-35qq-ch8j, MGASA-2021-0487, PYSEC-2022-164, RHSA-2021:3871, RHSA-2021:3872 and 3 more.

Is CVE-2021-3620 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free