CVE-2020-1733
Ansible vulnerable to Exposure of Resource to Wrong Sphere and Insecure Temporary File
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'.
How to fix CVE-2020-1733
To remediate CVE-2020-1733, upgrade the affected package to a fixed version below.
- —upgrade to 2.8.11-r0 or later
- —upgrade to 2.9.7-r0 or later
- —upgrade to 2.9.7+dfsg-1 or later
- —upgrade to 2.7.17 or later
- —upgrade to 2.7.17 or later
Is CVE-2020-1733 being exploited?
Low — EPSS is 0.0%, meaning exploitation activity has not been observed at scale.
Affected packages (5)
- from 0, < 2.8.11-r0
- from 0, < 2.9.7-r0
- from 0, < 2.9.7+dfsg-1
- from 0, < 2.7.17
- from 0, < 2.7.17, >= 2.8.0, < 2.8.8, >= 2.9.0, < 2.9.6
CVSS scores
| Source | Version | Severity | Vector |
|---|---|---|---|
| osv | CVSS 4.0 | — | CVSS:4.0/AV:L/AC:L/AT:P/PR:L/UI:P/VC:L/VI:L/VA:L/SC:L/SI:L/SA:L |
| osv | CVSS 3.1 | MEDIUM5.0 | CVSS:3.1/AV:L/AC:H/PR:L/UI:R/S:C/C:L/I:L/A:L |