Red Hat Ansible

CVE-2020-1733
MEDIUM 5.0

At a glance

Source
NVD
EPSS
EPSS 0.40 % · percentile 35 ()
State
PUBLISHED
Published
Updated
Assigner
redhat
NVD status
Modified

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

Weaknesses (CWE)

  • CWE-377 — DEPRECATED: Insecure Temporary File
  • CWE-362 — Concurrent Execution using Shared Resource with Improper Synchronization

References

Scores

VersionScoreVectorScored by
CVSS 3.1MEDIUM 5.0CVSS:3.1/AV:L/AC:H/PR:L/UI:R/S:C/C:L/I:L/A:Lredhat
CVSS 3.1MEDIUM 5.0CVSS:3.1/AV:L/AC:H/PR:L/UI:R/S:C/C:L/I:L/A:LNVD · secalert@redhat.com (Secondary)
CVSS 3.1MEDIUM 5.0CVSS:3.1/AV:L/AC:H/PR:L/UI:R/S:C/C:L/I:L/A:LNVD · nvd@nist.gov (Primary)
CVSS 2.0LOW 3.7AV:L/AC:H/Au:N/C:P/I:P/A:PNVD · nvd@nist.gov (Primary)

Advisories

European references

Affected configurations (NVD CPE)

Affected products

ProductVersions
Red Hat · Ansibleaffected 2.7.17 and prior ; affected 2.8.9 and prior ; affected 2.9.6 and prior

Sources

SourceLicence
CVE List (CVEProject cvelistV5)CVE Program Terms of Use
EPSS (FIRST.org)FIRST — attribution requested
ENISA EUVDENISA — reproduction authorised, source acknowledged
NVD (NIST) via fkie-cad/nvd-json-data-feedsPublic domain — this product uses data from the NVD API but is not endorsed or certified by the NVD