Live threats

All CVEs / Redhat

CVE-2020-1740Redhat Ansible

Medium 4.7

Priority
28
CVSS 3.1
4.7
EPSS
0.4%
probability of exploitation in 30 days · percentile 31
Auth required
Yes
Published
Mar 16, 2020
Updated
Jun 17, 2026
Category
Application · Cross-platform
Weakness (CWE)
CWE-377, CWE-200
Vector
CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:H/I:N/A:N

What happens

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.

Original NVD text.

What to do

  1. Apply the vendor's security update for Ansible.

Affected packages

EcosystemPackageAffected versionsFixed inHow to upgrade
PyPI ansible < 2.7.17 2.7.17 pip install "ansible>=2.7.17"
PyPI ansible ≥ 2.8.0a1 < 2.8.11 2.8.11 pip install "ansible>=2.8.11"
PyPI ansible ≥ 2.9.0a1 < 2.9.7 2.9.7 pip install "ansible>=2.9.7"
PyPI ansible < 2.7.17 2.7.17 pip install "ansible>=2.7.17"
PyPI ansible ≥ 2.8.0 < 2.8.9 2.8.9 pip install "ansible>=2.8.9"
PyPI ansible ≥ 2.9.0 < 2.9.6 2.9.6 pip install "ansible>=2.9.6"

Per OSV / GitHub Advisories (GHSA-vcg8-98q8-g7mj, PYSEC-2020-12). Check the version in your lockfile before upgrading.

Affected products (CPE)

VendorProductVersions
redhatansible< 2.7.17
redhatansible≥ 2.8.0 < 2.8.11
redhatansible≥ 2.9.0 < 2.9.7
redhatansible_tower≤ 3.3.4
redhatansible_tower≥ 3.3.5 ≤ 3.4.5
redhatansible_tower≥ 3.5.0 ≤ 3.5.5
redhatansible_tower≥ 3.6.0 ≤ 3.6.3
redhatcloudforms_management_engine5.0
redhatopenstack13
debiandebian_linux8.0
debiandebian_linux10.0
fedoraprojectfedora30
fedoraprojectfedora31
fedoraprojectfedora32

Official advisories

Vendor, CERT and distribution advisories that name this CVE. Original titles.

Official sources

References

Links published by the sources. Open them with care.