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",…
- Published
- Updated
- Reserved
- Assigned by
- redhat
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.
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.36% · top 70% of all CVEs (6 Nov 2026)
The list uses the assigner's score when there is one, then CISA's, then NVD's: Low 3.9.
Weakness
Affected products
Affected packages
From reviewed advisories of the GitHub Advisory Database.
- PyPIansibleGHSA-vcg8-98q8-g7mj (opens in a new tab)
References (8)
- 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)
- 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://trackcve.app/cve/CVE-2020-1740)Record last updated .