CVE-2020-10729 Insufficiently random values in Ansible

Medium 5.5 Published Updated

Insufficient randomness in Ansible password lookups causes cached values to be reused, potentially exposing all generated passwords for a file.

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-2020-10729?

CVE-2020-10729 is a medium-severity vulnerability in Debian Debian Linux, published on 27 May 2021. 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 the use of insufficiently random values in Ansible. Two random password lookups of the same length generate the equal value as the template caching action for the same file since no re-evaluation happens. The highest threat from this vulnerability would be that all passwords are exposed at once for the file. This flaw affects Ansible Engine versions before 2.9.6.

Weakness: CWE-330

Which versions are affected by CVE-2020-10729?

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

PackageAffectedFixed in
ansible PyPIAll versions2.9.6
ansible PyPIAll versions2.9.6
ansible PyPIAll versions2.9.6
Linux distribution packages (4)
ansible Red Hat:ansible_engine:2.9::el7All versions0:2.9.6-1.el7ae
ansible-test Red Hat:ansible_engine:2.9::el7All versions0:2.9.6-1.el7ae
ansible Red Hat:ansible_engine:2.9::el8All versions0:2.9.6-1.el8ae
ansible-test Red Hat:ansible_engine:2.9::el8All versions0:2.9.6-1.el8ae

Products include Debian Debian Linux, Redhat Ansible Engine.

How do I fix CVE-2020-10729?

Upgrade ansible to 2.9.6 or later.

Is CVE-2020-10729 being exploited?

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

All Debian Debian Linux vulnerabilities

Sources

Also known as CLSA-2025-1744709445, CLSA-2025-1744719966, DEBIAN-CVE-2020-10729, GHSA-r6h7-5pq2-j77h, PYSEC-2021-105, RHBA-2020:0784 and 1 more.

Is CVE-2020-10729 in your software?

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

Check your SBOMs for free