CVE-2020-1733

unknown
Published 2021-04-20 · Modified 2023-11-08
CVSS v3
CVSS:3.1/AV:L/AC:H/PR:L/UI:R/S:C/C:L/I:L/A:L
CVSS v2
VIR risk

Description

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'.

Predictions

Exploit likelihood
20%
Patch ETA

Heuristic predictions, AS-IS, for prioritization only.

Mitigations

vendor Authored 2026-05-27

Vendor advisory: suse — https://www.suse.com/security/cve/CVE-2020-1733.html

vendor Authored 2026-05-27

Vendor advisory: debian — https://security-tracker.debian.org/tracker/CVE-2020-1733

OS impact

OSVersionStatusFixed in
debian debiansidfixed2.9.7+dfsg-1
debian debiantrixiefixed2.9.7+dfsg-1
debian debianbookwormfixed2.9.7+dfsg-1
debian debianbullseyefixed2.9.7+dfsg-1
debian debianforkyfixed2.9.7+dfsg-1
suse slesaffected

Package impact

EcosystemPackageVulnerableFixed
python PyPIansible<2.7.172.7.17
python PyPIansible>=2.8.0a1,<2.8.112.8.11
python PyPIansible>=2.9.0a1,<2.9.72.9.7
python PyPIansible>=2.9.0,<2.9.62.7.17

References

Verify integrity in audit chain (admin only). AS-IS.