patchminder
No public exploit found CVE-2020-1733

Vulnerabilityin Red Hat Ansible.

Published 11 Mar 2020 · Updated 4 Aug 2024 · Every fact sourced

JSONCite
Is it exploited?
Not confirmed

No public exploit found; not on exploited lists.

Severity
Medium 5.0
CVSSA severity score from 0 to 10. 9 and higher is critical. 3.1
Attack likelihood
Low
EPSSA daily score from FIRST: the chance a hole is attacked in the next 30 days. 0.4% chance in 30 days · 4 Dec 2026
Fix
Available
Fixed versions listed below
In plain words

A race condition flaw was found in Ansible Engine 2.7.17 and prior, 2.8.9 and prior, 2.9.6 and prior when running a playbook with an unprivileged become user. When Ansible needs to run a module with become user, the temporary directory is created in /var/tmp. This directory is created with "umask 77 && mkdir -p <dir>"; this operation does not fail if the directory already exists and is owned by another user. An attacker could take advantage to gain control of the become user as the target directory can be retrieved by iterating '/proc/<pid>/cmdline'.

What to do now
  • Upgrade ansible (PyPI) to 2.7.17, 2.8.8, 2.8.11, 2.9.6, 2.9.7 or later, whichever matches your release line.
Versions

Affected and fixed versions

Product or package
Affected
Fixed in
Source
Ansible
2.7.17 and earlier
Not confirmed
CVE record
Ansible
2.8.9 and earlier
Not confirmed
CVE record
Ansible
2.9.6 and earlier
Not confirmed
CVE record
ansible (PyPI)
before 2.7.17
2.7.17
GitHub advisory
ansible (PyPI)
2.8.0a1 to before 2.8.11
2.8.11
GitHub advisory
ansible (PyPI)
2.9.0a1 to before 2.9.7
2.9.7
GitHub advisory
ansible (PyPI)
2.8.0 to before 2.8.8
2.8.8
GitHub advisory
ansible (PyPI)
2.9.0 to before 2.9.6
2.9.6
GitHub advisory

From the CVE record, NVD and package advisories. When no source has versions yet, this table says "not confirmed" instead of guessing.

Timeline

From first report to first attacks

  1. 27 Nov 2019
    CVE ID reserved by redhat.
  2. 11 Mar 2020
    Published in the CVE List.
  3. 4 Aug 2024
    CVE record last updated.
Exploit code

Attack code anyone can find

Exploit maturity: No public exploit found.

Metasploit module
None known
Nuclei scan template
None known
Exploit-DB
None known
GitHub proof of concepts
None known

Listed so defenders can judge how urgent this is and test systems they are authorised to test. Patchminder does not host exploit code; links open the source page. Labels for GitHub repositories come from their public details and are never a promise about the code. Run anything only in an isolated lab.

Related

Other Ansible vulnerabilities

Same weakness: Insecure temporary file

All CWE-377 vulnerabilities

References
Cite this page

Patchminder. CVE-2020-1733: Vulnerability in Red Hat Ansible. https://patchminder.com/cve/cve-2020-1733/ (accessed 5 December 2026).