CVE-2020-10744: Insecure Temporary Directory in Ansible
Summary
CVE-2020-10744: An incomplete fix was found for the fix of the flaw CVE-2020-1733 ansible: insecure temporary directory when running become_user from become directive. Affects ansible across 3 version ranges.
>= 2.7.0, < 2.8.0a1
>= 2.8.0, < 2.8.13
>= 2.9.0, < 2.9.10
Fixed in 2.8.0a1, 2.8.13 or 2.9.10, depending on the release line you run. How to fix ↓
Also tracked for
- ansible · Debian:11
The same CVE-2020-10744 is tracked separately for each ecosystem and vendor. Its fix information is the same; the package and affected versions differ.
Check if this vulnerability affects your application
Upload a manifest or SBOM and we'll show whether you're affected, plus every other risky package in the same scan.
No signup required · Results in about 60 seconds
Background
Ansible is an open-source automation tool that allows users to automate tasks such as configuration management, application deployment, and orchestration. It is widely used in IT infrastructure automation and has a large community of contributors. However, a vulnerability has been discovered in Ansible that could potentially lead to unauthorized access and privilege escalation.
Vulnerability Detail
The vulnerability, identified as CVE-2020-10744, stems from an incomplete fix for a previously known flaw (CVE-2020-1733) in Ansible. The flaw involves the insecure use of temporary directories when running the 'become_user' command from the 'become' directive. The provided fix was found to be insufficient, particularly on systems using ACLs and FUSE filesystems. This race condition could be exploited by an attacker to gain unauthorized access or escalate privileges. The vulnerability affects Ansible Engine versions 2.7.18, 2.8.12, and 2.9.9, as well as previous versions, and Ansible Tower versions 3.4.5, 3.5.6, and 3.6.4, as well as previous versions.
How To Fix
Latest published version: 14.5.0 as of 22 Oct 2026
pip install --upgrade "ansible==14.5.0"
Upgrading to it may include breaking changes; the versions below are the minimum fixed release for this vulnerability.
If you can't move to the latest
The minimum fixed version depends on the release line you run.
-
>= 2.7.0, < 2.8.0a12.8.0a1pip install --upgrade "ansible==2.8.0a1" -
>= 2.8.0, < 2.8.132.8.13pip install --upgrade "ansible==2.8.13" -
>= 2.9.0, < 2.9.102.9.10pip install --upgrade "ansible==2.9.10"
Tip — Not sure which release line you're on? Vulert can find the fix for the version you are using. Scan free →
Workaround
There is no specific workaround provided for this vulnerability. However, users can mitigate the risk by ensuring that their systems do not use ACLs and FUSE filesystems. Additionally, implementing proper access controls and monitoring mechanisms can help detect and prevent unauthorized access attempts.
Conclusion
In conclusion, the CVE-2020-10744 vulnerability in Ansible exposes systems to potential unauthorized access and privilege escalation. It is crucial for users to update their Ansible installations to the latest fixed versions and regularly apply security patches. Implementing proper access controls and monitoring mechanisms can further enhance the security of Ansible deployments. For further support and assistance in vulnerability remediation, you can contact DevNack.com.
See every vulnerability recorded for ansible →
FAQ
The vulnerability could allow an attacker to gain unauthorized access to sensitive information or escalate their privileges on systems running vulnerable versions of Ansible.
No, only Ansible Engine versions 2.7.18, 2.8.12, and 2.9.9, as well as previous versions, and Ansible Tower versions 3.4.5, 3.5.6, and 3.6.4, as well as previous versions, are affected. It is recommended to update to the latest fixed version.
There is no known exploit publicly available at the time of this advisory. However, it is crucial to apply the necessary updates and security patches to mitigate the risk.
You can use the Vulert Playground (https://vulert.com/scanner) to check if your Ansible installation is affected by this vulnerability. Simply upload your Pipfile.lock and the tool will provide real-time alerts for any open-source vulnerabilities, including CVE-2020-10744.
For more detailed information about this vulnerability, you can refer to the official advisory on the PyPI Advisory Database: [link to advisory]
References
Related vulnerabilities
Recent vulnerabilities recorded for ansible.