CVEBrief

Home / Red Hat / ansible / CVE-2020-1740

CVE-2020-1740: is it exploited, and which versions of Red Hat ansible are affected and fixed?

CVE-2020-1740 is an insecure temporary file vulnerability in Red Hat ansible. It is not known to be exploited: it is not in CISA's Known Exploited Vulnerabilities catalog (catalog 2026.11.30, read December 3, 2026, 12:38 UTC). Affected: ansible before 2.7.17, ansible from 2.8.0a1 before 2.8.11 and ansible from 2.9.0a1 before 2.9.7 (GitHub advisory GHSA-vcg8-98q8-g7mj). Fixed in 2.7.17, 2.8.11 and 2.9.7 (GitHub advisory GHSA-vcg8-98q8-g7mj). Severity: Low (3.9, CVSS 3.1, from redhat).

Data checked December 3, 2026: last read CISA KEV December 3, 2026, 12:38 UTC, CVE record November 19, 2026, 07:16 UTC and NVD November 19, 2026, 08:12 UTC.

Exploited in the wild
Not in CISA KEV
KEV read December 3, 2026, 12:38 UTC
Affected
ansible before 2.7.17, ansible from 2.8.0a1 before 2.8.11 and ansible from 2.9.0a1 before 2.9.7
GitHub advisory GHSA-vcg8-98q8-g7mj
Fixed in
2.7.17, 2.8.11 and 2.9.7
GitHub advisory GHSA-vcg8-98q8-g7mj
Severity
Low 3.9
CVSS 3.1 from redhat
Exploit odds (EPSS)
0.35% in 30 days
higher than 31% of CVEs; FIRST, December 2, 2026

What is CVE-2020-1740?

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.

From the CVE record by redhat, last updated August 4, 2024, 06:46 UTC.

Which versions are affected, and which fix it?

VendorProductAffectedFixed or not affected from
Red Hatansible2.7.x, 2.8.x, 2.9.x

As the CVE record by redhat states it, last updated August 4, 2024. Version ranges are the CNA's; a version the record calls not affected is usually the fix.

Which packages are affected, and in which version is each fixed?

EcosystemPackageAffectedFixed inAdvisory
PyPIansible< 2.7.172.7.17GHSA-vcg8-98q8-g7mj
PyPIansible>= 2.8.0a1, < 2.8.112.8.11GHSA-vcg8-98q8-g7mj
PyPIansible>= 2.9.0a1, < 2.9.72.9.7GHSA-vcg8-98q8-g7mj

GitHub Advisory Database, reviewed advisories (CC BY 4.0); advisory updated September 4, 2024. Summary: Exposure of Sensitive Information to an Unauthorized Actor and Insecure Temporary File in Ansible.

Which products and versions does the NVD list as affected?

VendorProductVersionsType
redhatansiblebefore 2.7.17application
redhatansiblefrom 2.8.0 before 2.8.11application
redhatansiblefrom 2.9.0 before 2.9.7application
redhatansible towerthrough 3.3.4application
redhatansible towerfrom 3.3.5 through 3.4.5application
redhatansible towerfrom 3.5.0 through 3.5.5application
redhatansible towerfrom 3.6.0 through 3.6.3application
redhatcloudforms management engine5.0application
redhatopenstack13application
debiandebian linux8.0operating system
debiandebian linux10.0operating system
fedoraprojectfedora30operating system
fedoraprojectfedora31operating system
fedoraprojectfedora32operating system

NVD analysis (status Modified), last modified June 17, 2026, 03:02 UTC.

How severe is CVE-2020-1740?

ScoreVersionVectorSource
Low 3.9CVSS 3.1CVSS:3.1/AV:L/AC:H/PR:L/UI:R/S:C/C:L/I:L/A:Nredhat
Medium 4.7CVSS 3.1CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:H/I:N/A:NNVD
Low 1.9CVSS 2.0AV:L/AC:M/Au:N/C:P/I:N/A:NNVD

Each score is shown as its source gave it: the CNA that wrote the record, CISA's ADP (vulnrichment) and the NVD. They can differ.

What the ratings mean: in CVSS 3 and 4, scores run from 0 to 10, with Low 0.1 to 3.9, Medium 4.0 to 6.9, High 7.0 to 8.9 and Critical 9.0 to 10.0. CVSS 2 has no Critical band: its High runs from 7.0 to 10.0. The vector lists how the flaw is reached (network, local), what an attacker needs (privileges, a user's click) and what it can harm.

Is CVE-2020-1740 exploited in the wild?

CISA KEV
Not listed (catalog 2026.11.30)
EPSS
0.35% probability of exploitation activity in the next 30 days, percentile 30.8 (FIRST EPSS, scores of December 2, 2026)

What kind of flaw is it?

Where are the vendor advisories and references?

When was it published, and where is the official record?

Reserved
November 27, 2019
Published
March 16, 2020, 15:07 UTC
CVE record updated
August 4, 2024, 06:46 UTC by redhat
NVD
Modified, last modified June 17, 2026, 03:02 UTC
Last checked
CVE list November 19, 2026, 07:16 UTC; NVD November 19, 2026, 08:12 UTC; KEV December 3, 2026, 12:38 UTC; EPSS December 2, 2026
Official record
cve.org · NVD

What other CVEs affect ansible?

Every CVE in ansible

Questions about CVE-2020-1740

Is CVE-2020-1740 exploited in the wild?

Not as far as CISA knows: it is not in the Known Exploited Vulnerabilities catalog, read December 3, 2026, 12:38 UTC. FIRST's EPSS gives it a 0.35% chance of exploitation activity in the next 30 days (scores of December 2, 2026).

Which versions of Red Hat ansible are affected by CVE-2020-1740?

ansible before 2.7.17, ansible from 2.8.0a1 before 2.8.11 and ansible from 2.9.0a1 before 2.9.7, per the GitHub advisory GHSA-vcg8-98q8-g7mj. The tables above give every range the sources list.

Which version fixes CVE-2020-1740?

2.7.17, 2.8.11 and 2.9.7, per the GitHub advisory GHSA-vcg8-98q8-g7mj. Check the vendor's advisory before you rely on it.

How severe is CVE-2020-1740?

Low (3.9, CVSS 3.1, from redhat). The severity table above shows each score with its source.

Where is the official record of CVE-2020-1740?

The CVE Program's record is at cve.org and the NVD's at nvd.nist.gov. For a fix, the vendor's own advisory is the one to follow.