GitHub Advisoryadvisory · PyPI

GHSA-g4mq-6fp5-qwcf Ansible vulnerable to Exposure of Resource to Wrong Sphere and Insecure Temporary File

LOW Published 2021-04-20 Modified 2024-11-18 Official page ↗
Aliases
CVE-2020-1733
Ecosystem
PyPI
Packages
ansible
Severity
Low
CVSS vector
CVSS:3.1/AV:L/AC:H/PR:L/UI:R/S:C/C:L/I:L/A:L
Weaknesses
CWE-362, CWE-377, CWE-668
Reviewed
2021-04-05

Affected packages

• PyPI ansible: < 2.7.17 → fixed in 2.7.17 • PyPI ansible: >= 2.8.0a1, < 2.8.11 → fixed in 2.8.11 • PyPI ansible: >= 2.9.0a1, < 2.9.7 → fixed in 2.9.7

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 "; 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//cmdline'.

Related

Weakness · not in database (1)

Alias · CVE (1)

  • CVE-2020-1733 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… vulnerability

Weakness · CWE (2)

  • CWE-362 Concurrent Execution using Shared Resource with Improper Synchronization weakness
  • CWE-668 Exposure of Resource to Wrong Sphere weakness

References