Vulnerability · Published Mar 11, 2020 · Assigned by redhat
CVE-2020-1733
Medium 5.0
In plain English
A medium-severity security flaw in Ansible from Red Hat. There are no confirmed reports of exploitation so far. The chance it is exploited in the next 30 days is estimated at 0.4% (higher than 34% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.
Official 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'.
Affected packages & fixed versions
| Ecosystem | Package | Fixed in | Advisory |
|---|---|---|---|
| Debian:12 | ansible | 2.9.7+dfsg-1 | DEBIAN-CVE-2020-1733 |
| Debian:13 | ansible | 2.9.7+dfsg-1 | DEBIAN-CVE-2020-1733 |
| Debian:14 | ansible | 2.9.7+dfsg-1 | DEBIAN-CVE-2020-1733 |
| PyPI | ansible | 2.7.17 | GHSA-g4mq-6fp5-qwcf |
| PyPI | ansible | 2.7.17, 2.8.8, 2.9.6 | PYSEC-2020-5 |
| PyPI | ansible | 2.8.11 | GHSA-g4mq-6fp5-qwcf |
| PyPI | ansible | 2.9.7 | GHSA-g4mq-6fp5-qwcf |
Affected products (as reported)
Weakness: CWE-377 · Vector: CVSS:3.1/AV:L/AC:H/PR:L/UI:R/S:C/C:L/I:L/A:L
References
- https://bugzilla.redhat.com/show_bug.cgi?id=CVE-2020-1733 x_refsource_CONFIRM
- https://github.com/ansible/ansible/issues/67791 x_refsource_MISC
- FEDORA-2020-1b6ce91e37 vendor-advisory, x_refsource_FEDORA
- FEDORA-2020-3990f03ba3 vendor-advisory, x_refsource_FEDORA
- FEDORA-2020-f80154b5b4 vendor-advisory, x_refsource_FEDORA
- [debian-lts-announce] 20200505 [SECURITY] [DLA 2202-1] ansible security update mailing-list, x_refsource_MLIST
- GLSA-202006-11 vendor-advisory, x_refsource_GENTOO
- DSA-4950 vendor-advisory, x_refsource_DEBIAN