CVE-2020-1733
lowpriority · track · 20EPSS 0.004 · 34 %ileDEEURUUSEPSS · scored 2026-10-27
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'.
cvss
Technical severity, 0–10. One row per scoring source.
base score 0–10 · higher = more severe · hover a vector to decode⚠ sources disagree · low–medium · 3.7–5
weaknesses
The CWE weakness classes this flaw belongs to.
affected products (48)
Products and version ranges known to be affected.
advisories (3)
Vendor and ecosystem advisories describing this.
- WID-SEC-W-2023-2479Ansible: Schwachstelle ermöglicht Unsicheres Erzeugen von temporären DateienDeutsch2020-03-11csaf · cert_bundDE
Ein lokaler Angreifer kann eine Schwachstelle in Ansible ausnutzen, um temporäre Dateien zu erzeugen.
- GHSA-g4mq-6fp5-qwcfAnsible vulnerable to Exposure of Resource to Wrong Sphere and Insecure Temporary File2021-04-20ghsa · osvUS
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'.
- PYSEC-2020-52020-03-11vendor · osvUS
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'.
also known as (7)
Other names and identifiers for this entity.
sources
Which sources assert this record, and when.
references (33)
External citations — patches, advisories, analysis.
- https://access.redhat.com/security/cve/cve-2020-1733cnnvd
- https://bugzilla.redhat.com/show_bug.cgi?id=CVE-2020-1733cnnvd
- https://github.com/ansible/ansible/issues/67791cnnvd
- https://lists.debian.org/debian-lts-announce/2020/05/msg00005.htmlcnnvd
- https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/DKPA4KC3OJSUFASUYMG66HKJE7ADNGFW/cnnvd
- https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/MRRYUU5ZBLPBXCYG6CFP35D64NP2UB2S/cnnvd
- https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/WQVOQD4VAIXXTVQAJKTN7NUGTJFE2PCB/cnnvd
- https://nvd.nist.gov/vuln/detail/CVE-2020-1733cnnvd
Attackers weaponise vulnerabilities like this against internet-exposed services. See what is exposed on your perimeter with a free passive scan.
Free scan