VDB

CVE-2020-1733

CVE-2020-1733 PUBLISHED CVSS 5 MEDIUM

Ansible vulnerable to Exposure of Resource to Wrong Sphere and Insecure Temporary File

Reported by redhat · Published March 11, 2020

ansible is fixed in 2.9.7, 2.9.6, 2.8.11 and 2 more (PyPI)

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

Fixed versions

Upgrade to a fixed version or later. Language registries are listed first, then Linux distributions, then vendor products.

PackageEcosystemFixed in
ansiblePyPI2.9.7, 2.9.6, 2.8.11, 2.8.8, 2.7.17
ansibleAlpine2.9.7-r0, 2.8.11-r0, 2.7.17-r0
ansibleredhat2.9.5, 2.8.8, 2.7.16
ansibleUbuntu:Pro:18.04:LTS2.5.1+dfsg-1ubuntu0.1+esm1
ansibleUbuntu:Pro:20.04:LTS2.9.6+dfsg-1ubuntu0.1~esm1
ansibleUbuntu:Pro:16.04:LTS2.0.0.2-2ubuntu1.3+esm1
ansible_towerredhat3.6.3, 3.5.5, 3.4.5, 3.3.4

Risk scores

CVSS 3.1
5
CVSS:3.1/AV:L/AC:H/PR:L/UI:R/S:C/C:L/I:L/A:L

Affected products

VendorProductVersions
Red HatAnsible2.7.17 and prior, 2.8.9 and prior, 2.9.6 and prior
alpineansible0, 0, 0
PyPIansible2.9.0a1, 0, 2.8.0a1
Red HatAnsible2.9.6, 2.7.17, 2.8.9
alpineansible-base0

Timeline

  • Mar 11, 2020 CVE Published
  • Apr 14, 2021 EPSS Score (30 in total, the first dated here)
  • Nov 18, 2024 CVE Updated
  • Mar 6, 2026 Distribution Patch (6 in total, the first dated here)
  • Mar 6, 2026 Security Advisory (12 in total, the first dated here)
  • Sep 3, 2026 Coalition ESS Score

Query this with the API

The same record, from the CLI:

vulnetix vdb vuln CVE-2020-1733
vulnetix vdb fixes CVE-2020-1733

Or with curl, using the org id and key from your account page:

curl -s -H "Authorization: ApiKey ${VULNETIX_ORG_ID}:${VULNETIX_API_KEY}" \
  "https://api.vdb.vulnetix.com/v2/vuln/CVE-2020-1733/fixes/registry"

The Community plan is free and allows 50 queries a day. Get a free API key · API quickstart

Look up in the Resolve Platform →
$ Lookup Community · 50/day Open Lookup ›