CVEvulnerability

CVE-2020-1740

4.7 MEDIUM Published 2020-03-16 Modified 2026-06-17 Official page ↗
Status
Modified
Published
2020-03-16
Last modified
2026-06-17
Assigner
[email protected]
CVSS 3.1 ([email protected])
3.9 LOW — CVSS:3.1/AV:L/AC:H/PR:L/UI:R/S:C/C:L/I:L/A:N
CVSS 3.1 ([email protected])
4.7 MEDIUM — CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:H/I:N/A:N
CVSS 2.0 ([email protected])
1.9 LOW — AV:L/AC:M/Au:N/C:P/I:N/A:N
Weaknesses
CWE-200, CWE-377

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.

Affected configurations

• redhat ansible (< 2.7.17) • redhat ansible (>= 2.8.0 < 2.8.11) • redhat ansible (>= 2.9.0 < 2.9.7) • redhat ansible tower (<= 3.3.4) • redhat ansible tower (>= 3.3.5 <= 3.4.5) • redhat ansible tower (>= 3.5.0 <= 3.5.5) • redhat ansible tower (>= 3.6.0 <= 3.6.3) • redhat cloudforms management engine 5.0 • redhat openstack 13 • debian debian linux 8.0 • debian debian linux 10.0 • fedoraproject fedora 30 • fedoraproject fedora 31 • fedoraproject fedora 32

Related

Weakness · not in database (1)

Weakness · CWE (1)

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

References