CVE-2020-1733

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'.
Race Condition
ProviderTypeBase ScoreAtk. VectorAtk. ComplexityPriv. RequiredVector
NISTNIST
5 MEDIUM
LOCAL
HIGH
LOW
CVSS:3.1/AV:L/AC:H/PR:L/UI:R/S:C/C:L/I:L/A:L
redhatCNA
5 MEDIUM
LOCAL
HIGH
LOW
CVSS:3.1/AV:L/AC:H/PR:L/UI:R/S:C/C:L/I:L/A:L
CVEADP
---
---
Base Score
CVSS 3.x
EPSS Score
Percentile: 8%
VendorProductVersion
redhatansible
𝑥
≤ 2.7.16
redhatansible
2.8.0 ≤
𝑥
< 2.8.8
redhatansible
2.9.0 ≤
𝑥
≤ 2.9.5
redhatansible_tower
𝑥
≤ 3.3.4
redhatansible_tower
3.3.5 ≤
𝑥
≤ 3.4.5
redhatansible_tower
3.5.0 ≤
𝑥
≤ 3.5.5
redhatansible_tower
3.6.0 ≤
𝑥
≤ 3.6.3
redhatcloudforms_management_engine
5.0
debiandebian_linux
8.0
debiandebian_linux
10.0
𝑥
= Vulnerable software versions
Debian logo
Debian Releases
Debian Product
Codename
ansible
bullseye
2.10.7+merged+base+2.10.17+dfsg-0+deb11u1
fixed
bookworm
7.7.0+dfsg-3+deb12u1
fixed
sid
10.5.0+dfsg-2
fixed
trixie
10.5.0+dfsg-2
fixed
Ubuntu logo
Ubuntu Releases
Ubuntu Product
Codename
ansible
noble
not-affected
mantic
not-affected
lunar
not-affected
kinetic
not-affected
jammy
not-affected
impish
not-affected
hirsute
not-affected
groovy
not-affected
focal
Fixed 2.9.6+dfsg-1ubuntu0.1~esm1
released
eoan
ignored
bionic
Fixed 2.5.1+dfsg-1ubuntu0.1+esm1
released
xenial
Fixed 2.0.0.2-2ubuntu1.3+esm1
released
trusty
needed