# CVE-2020-10729: Insufficiently random values 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.43%, higher than 30% of CVEs (2026-11-30)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2021-05-27T18:46:12.000Z
- Modified: 2026-06-17T02:48:20.110Z
- Also known as: GHSA-r6h7-5pq2-j77h, PYSEC-2021-105
- Weaknesses: CWE-330
- Assigned by: redhat

## 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.

(As written by CVE List.)

## Affected

- Ansible: ansible-engine 2.9.6
- ansible (PyPI): before 2.9.6
- redhat ansible_engine: before 2.9.6
- debian debian_linux: 10.0

## Every score

- GitHub: CVSS:3.1 5.0 Medium `CVSS:3.1/AV:L/AC:L/PR:L/UI:R/S:U/C:H/I:N/A:N`
- GitHub: CVSS:4.0 Medium `CVSS:4.0/AV:L/AC:L/AT:N/PR:L/UI:P/VC:H/VI:N/VA:N/SC:N/SI:N/SA: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://github.com/ansible/ansible/issues/34144> (exploit, issue-tracking, report, third-party-advisory, web)
- <https://bugzilla.redhat.com/show_bug.cgi?id=1831089> (issue-tracking, report, vendor-advisory, web)
- <https://www.debian.org/security/2021/dsa-4950> (third-party-advisory, vendor-advisory, web)
- <https://nvd.nist.gov/vuln/detail/CVE-2020-10729> (advisory)
- <https://github.com/ansible/ansible/pull/67429> (web)
- <https://github.com/ansible/ansible/commit/c520d70bf4748c8ee6718a7d0d0254051ba1c2e9> (web)
- <https://github.com/advisories/GHSA-r6h7-5pq2-j77h> (advisory)
- <https://github.com/ansible/ansible> (package)
- <https://github.com/ansible/ansible/blob/v2.9.6/changelogs/CHANGELOG-v2.9.rst> (web)
- <https://github.com/pypa/advisory-database/tree/main/vulns/ansible/PYSEC-2021-105.yaml> (web)

## Sources

- CVE List: [CVE-2020-10729](https://www.cve.org/CVERecord?id=CVE-2020-10729), CVE Terms of Use, modified 2024-08-04
- GitHub Advisory Database: [GHSA-r6h7-5pq2-j77h](https://github.com/advisories/GHSA-r6h7-5pq2-j77h), CC-BY-4.0, modified 2024-09-10
- NVD: [CVE-2020-10729](https://nvd.nist.gov/vuln/detail/CVE-2020-10729), Public domain, modified 2026-06-17
- PyPA Advisory Database: [PYSEC-2021-105](https://osv.dev/vulnerability/PYSEC-2021-105), CC-BY-4.0, modified 2023-11-08

---

Page: https://cve.day/CVE-2020-10729 · Whole record: https://cve.day/CVE-2020-10729.json · Rebuilt by cve.day 2026-11-25T22:57:57.975Z
