CVE-2020-10744: Insecure Temporary File in Ansible

ansible Updated 02 Oct 2025

Summary

09/02/2022
Yes i
Low
5.0

CVE-2020-10744: Exposure of Resource to Wrong Sphere and Insecure Temporary File in Ansible. Affects ansible across 2 version ranges.

< 2.9.12 >= 2.10.0a1, < 2.10.0rc1

Fixed in 2.9.12 or 2.10.0rc1, depending on the release line you run. How to fix ↓

Also tracked for

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.

Free scan

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.

Check my app free

No signup required · Results in about 60 seconds

Sponsored Devnack Your last release was probably never penetration tested Manual testing by engineers who build software, not an auditor's checklist. Trusted by teams at Swift and Google Talk to Devnack

Background

Ansible is an open-source automation tool that allows users to automate IT tasks such as configuration management, application deployment, and orchestration. It is widely used in the industry due to its simplicity and flexibility. However, Ansible is vulnerable to an insecure temporary file issue, which can lead to unauthorized access and potential data leakage.

Vulnerability Detail

The vulnerability, identified as CVE-2020-10744, stems from an incomplete fix for a previous flaw (CVE-2020-1733) related to Ansible's insecure temporary directory when running the 'become_user' command from the 'become' directive. The provided fix is insufficient to prevent a race condition on systems using ACLs and FUSE filesystems. This vulnerability affects Ansible Engine versions 2.7.18, 2.8.12, and 2.9.9, as well as previous versions. Additionally, Ansible Tower versions 3.4.5, 3.5.6, and 3.6.4, along with previous versions, are also affected.

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.9.12 2.9.12
    pip install --upgrade "ansible==2.9.12"
  • >= 2.10.0a1, < 2.10.0rc1 2.10.0rc1
    pip install --upgrade "ansible==2.10.0rc1"

Tip — Not sure which release line you're on? Vulert can find the fix for the version you are using. Scan free →

Workaround

As a temporary workaround, users can manually set the permissions of the temporary directory used by Ansible to restrict access. This can be achieved by modifying the ACLs or permissions of the directory to ensure that only authorized users have read and write access. However, this workaround may not provide complete protection and should be considered a temporary solution until the software is updated.

Conclusion

In conclusion, the CVE-2020-10744 vulnerability in Ansible exposes a resource to the wrong sphere and includes an insecure temporary file issue. It is crucial to update Ansible to the recommended versions to mitigate the risk of unauthorized access and potential data leakage. For further support and assistance in vulnerability remediation, please contact DevNack.com.

See every vulnerability recorded for ansible →

Share this vulnerability

FAQ

Ansible is an open-source automation tool used for configuration management, application deployment, and orchestration.

This vulnerability can lead to unauthorized access and potential data leakage due to the insecure handling of temporary files in Ansible.

Ansible Engine versions 2.7.18, 2.8.12, and 2.9.9, as well as previous versions, are affected. Ansible Tower versions 3.4.5, 3.5.6, and 3.6.4, along with previous versions, are also affected.

To fix this vulnerability, update Ansible to version 2.9.10 or later for Ansible Engine, or version 3.7.0 or later for Ansible Tower.

Yes, users can manually set the permissions of the temporary directory used by Ansible to restrict access. However, this should be considered a temporary solution until the software is updated.

Related vulnerabilities

Recent vulnerabilities recorded for ansible.

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.9.12 2.9.12
    pip install --upgrade "ansible==2.9.12"
  • >= 2.10.0a1, < 2.10.0rc1 2.10.0rc1
    pip install --upgrade "ansible==2.10.0rc1"

Tip — Not sure which release line you're on? Vulert can find the fix for the version you are using. Scan free →

Subscribe to Vulert on Telegram
Daily digest of new CVEs, critical and high severity, affected packages and fixes — plus a weekly roundup.
Join the channel →
Help improve this record
Report an issue or send feedback