CVE-2020-10729: Insufficiently random values in Ansible
5
CVSS Score
3.1
Basic Information
CVE ID
GHSA ID
EPSS Score
0.17447%
CWE
Published
6/15/2021
Updated
9/10/2024
KEV Status
No
Technology
Python
Technical Details
CVSS Vector
CVSS:3.1/AV:L/AC:L/PR:L/UI:R/S:U/C:H/I:N/A:N
Package Name | Ecosystem | Vulnerable Versions | First Patched Version |
---|---|---|---|
ansible | pip | < 2.9.6 | 2.9.6 |
Vulnerability Intelligence
Miggo AI
Root Cause Analysis
The vulnerability stemmed from improper caching logic in the template engine. The commit diff shows the caching condition was modified from 'if cache:' to 'if cache and only_one:'. The original code allowed caching of multi-variable/dynamic expressions (like password lookups), while the 'only_one' check ensures caching only happens for single static variables. The template() function in init.py was the point where this flawed caching occurred.