CVE-2020-1740

Aliases:GHSA-vcg8-98q8-g7mjPYSEC-2020-12
Advisory lineage Upstream: 0 Downstream: 17
Modified
Published: 16 Mar 2020, 15:07
Last modified:04 Aug 2024, 06:46

Vulnerability Summary

Overall Risk (default)
low
19/100
CVSS Score
4.7 MEDIUM
v3.1 (nvd)
EPSS Score
0.14% LOW
0% probability +0.12%
KEV
Not listed
Ransomware
No reports
Public exploits
None found
Dark Web
Not detected

Timeline

16 Mar 2020, 15:07
Published
Vulnerability first disclosed
04 Aug 2024, 06:46
Last Modified
Vulnerability information updated

Description

A flaw was found in Ansible Engine when using Ansible Vault for editing encrypted files. When a user executes "ansible-vault edit", another user on the same computer can read the old and new secret, as it is created in a temporary file with mkstemp and the returned file descriptor is closed and the method write_data is called to write the existing secret in the file. This method will delete the file before recreating it insecurely. All versions in 2.7.x, 2.8.x and 2.9.x branches are believed to be vulnerable.

CVSS Metrics

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

EPSS Trends

Current EPSS score: 0.14% Percentile: 35%

Techniques & Countermeasures

  • CWE-200Exposure of Sensitive Information to an Unauthorized Actor

    The product exposes sensitive information to an actor that is not explicitly authorized to have access to that information.

  • 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.x, 2.8.x, 2.9.x

  • redhatansible

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

  • 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 (22)