PT-2020-6582 · Unknown+3 · Ansible Engine+3

Samdoran

·

Published

2020-03-16

·

Updated

2025-11-21

·

CVE-2020-1740

CVSS v4.0

5.7

Medium

VectorAV:L/AC:L/AT:P/PR:L/UI:N/VC:H/VI:N/VA:N/SC:N/SI:N/SA:N
Name of the Vulnerable Software and Affected Versions Ansible Engine versions 2.7.x through 2.9.x
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 write data method is called to write the existing secret in the file. This method will delete the file before recreating it insecurely.
Recommendations For versions 2.7.x, 2.8.x, and 2.9.x, consider disabling the write data method until a patch is available to prevent insecure file recreation. Restrict access to the temporary files created by Ansible Vault to minimize the risk of exploitation. Avoid using the ansible-vault edit command until the issue is resolved. At the moment, there is no information about a newer version that contains a fix for this vulnerability.

Information Disclosure

Weakness Enumeration

Related Identifiers

ALT-PU-2020-2050
ALT-PU-2020-2069
BDU:2022-00285
CVE-2020-1740
DLA-2202-1
DSA-4950-1
GHSA-VCG8-98Q8-G7MJ
MGASA-2020-0217
OESA-2021-1349
OESA-2022-1950
OPENSUSE-SU-2022:0081-1
OPENSUSE-SU-2024:10615-1
OPENSUSE-SU-2024:14244-1
OPENSUSE-SU-2024:14536-1
OPENSUSE-SU-2025:15605-1
OPENSUSE-SU-2025:15753-1
PYSEC-2020-12
RHSA-2020:1541
RHSA-2020:1542
RHSA-2020:1543
RHSA-2020:1544
SUSE-SU-2020:3309-1

Affected Products

Alt Linux
Ansible-Core
Ansible Engine
Astra Linux