{"id":"CVE-2020-10729","published":"2021-05-27T18:46:12Z","modified":"2024-08-04T11:14:14Z","title":"A flaw was found in the use of insufficiently random values in Ansible","vendor":null,"product":null,"tier":"tail","description":{"text":"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.","provenance":"source","from":"CVE.org"},"cvss":null,"epss":{"score":0.00435,"percentile":0.38649,"provenance":"source"},"cwes":[{"id":"CWE-330","name":"Use of Insufficiently Random Values"}],"references":[{"url":"https://bugzilla.redhat.com/show_bug.cgi?id=1831089","tags":["x_refsource_MISC"]},{"url":"https://github.com/ansible/ansible/issues/34144","tags":["x_refsource_MISC"]},{"url":"https://www.debian.org/security/2021/dsa-4950","tags":["vendor-advisory","x_refsource_DEBIAN"]}],"priority":{"score":7.7,"factors":[{"name":"EPSS percentile","points":7.73}]},"affectedVersions":[{"vendor":"n/a","product":"Ansible","versions":["ansible-engine 2.9.6"]}],"affected":[{"ecosystem":"PyPI","package":"ansible","vulnerableRanges":["<2.9.6"],"patched":["2.9.6"],"from":["GHSA-r6h7-5pq2-j77h","PYSEC-2021-105"],"provenance":"source"}],"summary":{"text":"A weakness in Ansible (the Ansible Engine automation tool) involves insufficiently random values produced by its password lookup, where two password lookups of the same length can yield the same value because the template caching action does not re-evaluate them for the same file. An attacker who can obtain or observe the generated output may be able to expose all passwords for that file at once.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T22:18:12Z"},"euvd":{"id":"EUVD-2021-0005","exploited":false,"provenance":"source"},"lineage":{"familyId":"fam-unknown-ansible-cve-2016-9587","parents":[{"from":"CVE-2017-7466","to":"CVE-2020-10729","relation":"related","confidence":"medium","kind":"lineage","evidence":[{"kind":"same-code","provenance":"machine","files":["lib/ansible/template/__init__.py"],"commits":["https://github.com/ansible/ansible/commit/0d418789a298561fded9bce977d34babc9097079","https://github.com/ansible/ansible/commit/7ff9fa52cfcef2065f0db80d85dd94b9b754839c","https://github.com/ansible/ansible/commit/c520d70bf4748c8ee6718a7d0d0254051ba1c2e9"],"basis":"shared function","functions":["template"]}]},{"from":"CVE-2019-10156","to":"CVE-2020-10729","relation":"related","confidence":"medium","kind":"lineage","evidence":[{"kind":"same-code","provenance":"machine","files":["lib/ansible/template/__init__.py"],"commits":["https://github.com/ansible/ansible/commit/04e94274fb92e116e9082cc9b86b1fd05c836922","https://github.com/ansible/ansible/commit/3ff6505e8ff0e4655bab008886983476ef903375","https://github.com/ansible/ansible/commit/c520d70bf4748c8ee6718a7d0d0254051ba1c2e9"],"basis":"shared function","functions":["template"]}]}]}}