VDB

CVE-2020-1740

CVE-2020-1740 PUBLISHED CVSS 3.9 LOW

Reported by redhat · Published March 16, 2020

ansible is fixed in 2.9.7, 2.8.11 and 2.7.17 (PyPI)

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.

Fixed versions

Upgrade to a fixed version or later. Language registries are listed first, then Linux distributions, then vendor products.

PackageEcosystemFixed in
ansiblePyPI2.9.7, 2.8.11, 2.7.17
ansibleredhat2.9.7, 2.8.11, 2.7.17
ansible_towerredhat3.6.3, 3.5.5, 3.4.5, 3.3.4

Risk scores

CVSS 3.1
3.9
CVSS:3.1/AV:L/AC:H/PR:L/UI:R/S:C/C:L/I:L/A:N

Affected products

VendorProductVersions
Red Hatansible2.7.x, 2.8.x, 2.9.x
Red Hatansible2.7.x, 2.8.x, 2.9.x
alpineansible-base0
alpineansible0, 0, 0
PyPIansible0, 2.8.0, 2.9.0

Timeline

  • Mar 16, 2020 CVE Published
  • Apr 14, 2021 EPSS Score (30 in total, the first dated here)
  • Mar 9, 2026 Security Advisory (16 in total, the first dated here)
  • Mar 17, 2026 Distribution Patch (6 in total, the first dated here)
  • Sep 3, 2026 Coalition ESS Score

Query this with the API

The same record, from the CLI:

vulnetix vdb vuln CVE-2020-1740
vulnetix vdb fixes CVE-2020-1740

Or with curl, using the org id and key from your account page:

curl -s -H "Authorization: ApiKey ${VULNETIX_ORG_ID}:${VULNETIX_API_KEY}" \
  "https://api.vdb.vulnetix.com/v2/vuln/CVE-2020-1740/fixes/registry"

The Community plan is free and allows 50 queries a day. Get a free API key · API quickstart

References

Look up in the Resolve Platform →
$ Lookup Community · 50/day Open Lookup ›