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 v4 NEW
โ€”
not yet in upstream
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

No mitigations published for this CVE yet.

The vendor-content worker queues fetches as references arrive (check back in a few minutes). Or โ€” if you've already worked around this in production โ€” publish your fix to the community-verified tier.

โœš Propose a mitigation on Community โ†’ Mitigations published via the community go through AI scoring + 2 human reviewers + 7-day silent objection window before landing here with source_tier=community-verified.

OS impact

suse SUSE Affected 1 release
VersionStatusFixed in
โ€” Affected โ€”
debian Debian Fixed 5 releases
VersionStatusFixed in
trixie Fixed 2.9.7+dfsg-1
sid Fixed 2.9.7+dfsg-1
forky Fixed 2.9.7+dfsg-1
bullseye Fixed 2.9.7+dfsg-1
bookworm Fixed 2.9.7+dfsg-1

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

Community-verified mitigations for this CVE will appear above when contributors publish them.

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