CVE-2020-1740

MEDIUM
4.7
CVSS Score
Published: March 16, 2020 at 03:07 PM UTC
Updated: June 17, 2026 at 03:02 AM UTC
6 products affected across 3 vendorsDebian LinuxFedoraOpenStack

Using ansible by Red Hat?

Get instant alerts when new vulnerabilities affect ansible - before attackers find them.

Real-time alertsTrack your software stackFree plan available
Severity
MEDIUM4.7
Exploit prediction
EPSS 0.4%

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

Our own answer: ranges merged, affected separated from platform-only, with confidence and review flags.

v < 2.7.172.8.0 ≤ v < 2.8.112.9.0 ≤ v < 2.9.72.7.x2.8.x2.9.x
Affected range stops below 2.7.17, so it looks safe — our inference, not a vendor statement
Affected range stops below 2.8.11, so it looks safe — our inference, not a vendor statement
Affected range stops below 2.9.7, so it looks safe — our inference, not a vendor statement
v ≤ 3.3.43.3.5 ≤ v ≤ 3.4.53.5.0 ≤ v ≤ 3.5.53.6.0 ≤ v ≤ 3.6.3

CVSS

Attack Vector
LOCAL
Complexity
HIGH
Privileges
LOW
User Interaction
NONE
Scope
UNCHANGED
Confidentiality
HIGH
Integrity
NONE
Availability
NONE
Vector?

Quick Info

StatusMODIFIED
CWE
CWE-377CWE-200

Get alerted

Stop reading CVE feeds looking for your own stack

Track the products you run and VulnTracker tells you when a new CVE affects them — with what is known about fixing it, and nothing about the rest.

Free plan, no card