CVE-2020-1733

Aliases:GHSA-g4mq-6fp5-qwcfPYSEC-2020-5
Advisory lineage Upstream: 0 Downstream: 19
Modified
Published: 11 Mar 2020, 18:47
Last modified:04 Aug 2024, 06:46

Vulnerability Summary

Overall Risk (default)
medium
30/100
CVSS Score
5 MEDIUM
v3.1 (cve.org)
EPSS Score
0.03% LOW
0% probability 0.00%
KEV
Not listed
Ransomware
No reports
Public exploits
1 found
Dark Web
Not detected

Timeline

11 Mar 2020, 18:47
Published
Vulnerability first disclosed
04 Aug 2024, 06:46
Last Modified
Vulnerability information updated

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

CVSS Metrics

  • v4.0LOWScore: 1CVSS:4.0/AV:L/AC:L/AT:P/PR:L/UI:P/VC:L/VI:L/VA:L/SC:L/SI:L/SA:L
  • v3.1MEDIUMScore: 5CVSS:3.1/AV:L/AC:H/PR:L/UI:R/S:C/C:L/I:L/A:L
  • v2.0LOWScore: 3.7AV:L/AC:H/Au:N/C:P/I:P/A:P

EPSS Trends

Current EPSS score: 0.03% Percentile: 8%

Techniques & Countermeasures

  • CWE-362Concurrent Execution using Shared Resource with Improper Synchronization ('Race Condition')

    The product contains a concurrent code sequence that requires temporary, exclusive access to a shared resource, but a timing window exists in which the shared resource can be modified by another code sequence operating concurrently.

  • CWE-377Insecure Temporary File

    Creating and using insecure temporary files can leave application and system data vulnerable to attack.

Affected Systems

  • debiandebian_linux

    8.0 | 10.0

  • fedoraprojectfedora

    30 | 31 | 32

  • PyPIansible

    < 2.7.17 | ≥ 2.8.0a1, < 2.8.11 | ≥ 2.9.0a1, < 2.9.7 | ≥ 2.9.0, < 2.9.6

  • red hatansible

    2.7.17 and prior | 2.8.9 and prior | 2.9.6 and prior

  • redhatansible

    ≤ 2.7.16 | ≥ 2.8.0, < 2.8.8 | ≥ 2.9.0, ≤ 2.9.5

  • redhatansible_tower

    ≤ 3.3.4 | ≥ 3.3.5, ≤ 3.4.5 | ≥ 3.5.0, ≤ 3.5.5 | ≥ 3.6.0, ≤ 3.6.3

  • redhatcloudforms_management_engine

    5.0

  • redhatopenstack

    13

References (21)