CVE-2020-1740A flaw was found in Ansible Engine when using Ansible Vault for editing encrypted files. When a user executes "ansible-vault edit",…
- 3.9LowCVSS base score
- 0.35%Exploitation in 30 daysEPSS · top 71% of all CVEs
- NoKnown exploitednot in CISA's KEV catalog
- NonePublic exploitsnone known yet
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.
Timeline
ID reserved
By redhat
- 4 months later
· 4 months later
Published
- 4 years later
· 4 years later
Record updated
Changes after publication (a new score, a public exploit, EPSS crossing 1, 10 or 50 %, leaving KEV) are kept since November 2026; earlier ones are not known.
Scores
| Scored by | CVSS | Score | Vector |
|---|---|---|---|
| redhatCNA (assigner) | 3.1 | Low3.9 | CVSS:3.1/AV:L/AC:H/PR:L/UI:R/S:C/C:L/I:L/A:N |
| NVDNVD · Modified | 3.1 | Medium4.7 | CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:H/I:N/A:N |
- EPSS (exploitation in 30 days)
- 0.35% · top 71% of all CVEs (14 Nov 2026)
The list uses the assigner's score when there is one, then CISA's, then NVD's: Low 3.9.
Affected products
Affected packages
From reviewed advisories of the GitHub Advisory Database.
- PyPIansibleGHSA-vcg8-98q8-g7mj (opens in a new tab)
References
References8
- https://bugzilla.redhat.com/show_bug.cgi?id=CVE-2020-1740 (opens in a new tab)x_refsource_CONFIRMx_transferred
- https://github.com/ansible/ansible/issues/67798 (opens in a new tab)x_refsource_CONFIRMx_transferred
- FEDORA-2020-1b6ce91e37 (opens in a new tab)vendor-advisoryx_refsource_FEDORAx_transferred
- FEDORA-2020-3990f03ba3 (opens in a new tab)vendor-advisoryx_refsource_FEDORAx_transferred
- FEDORA-2020-f80154b5b4 (opens in a new tab)vendor-advisoryx_refsource_FEDORAx_transferred
- [debian-lts-announce] 20200505 [SECURITY] [DLA 2202-1] ansible security update (opens in a new tab)mailing-listx_refsource_MLISTx_transferred
- GLSA-202006-11 (opens in a new tab)vendor-advisoryx_refsource_GENTOOx_transferred
- DSA-4950 (opens in a new tab)vendor-advisoryx_refsource_DEBIANx_transferred
Sources
The same CVE in the primary databases and aggregators, to check against.
- CVE.org record (opens in a new tab)
- CVE List JSON (GitHub) (opens in a new tab)
- NVD (opens in a new tab)
- FIRST EPSS (opens in a new tab)
- EUVD EUVD-2020-0005 (opens in a new tab)
- OSV.dev (opens in a new tab)
- GitHub Advisory GHSA-vcg8-98q8-g7mj (opens in a new tab)
- CIRCL Vulnerability-Lookup (opens in a new tab)
Badge for a README or a ticket
[](https://cveledger.app/cve/CVE-2020-1740)Record last updated .