PT-2020-6582

CVE-2020-1740

·

Published

2020-03-16

·

Updated

2026-11-06

Description by

CVSS 4.0
5.7
Medium
MetricsAV: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.
Impacts
Researchers
Vendors
Affected products
Related identifiers
GHSA-VCG8-98Q8-G7MJ
ALT-PU-2020-2050
ALT-PU-2020-2069
DLA-2202-1
DSA-4950-1
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
OPENSUSE-SU-2026:10944-1
OPENSUSE-SU-2026:12447-1
PYSEC-2020-12
RHSA-2020:1541
RHSA-2020:1542
RHSA-2020:1543
RHSA-2020:1544
SUSE-SU-2020:3309-1
Found an issue in the description? Have something to add? Feel free to write us 👾