CVE-2020-1740
Last modified
CVE-2020-1740 is a medium-severity vulnerability rated 4.7/10 on the CVSS scale. 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. EPSS estimates a 0.37% chance of exploitation in the next 30 days.
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.
Metrics
CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:H/I:N/A:N
Weakness Enumeration
Affected Software
| Vendor | Product | Versions |
|---|---|---|
| Redhat | Ansible | < 2.7.17 |
| Redhat | Ansible | >= 2.8.0, < 2.8.11 |
| Redhat | Ansible | >= 2.9.0, < 2.9.7 |
| Redhat | Ansible Tower | <= 3.3.4 |
| Redhat | Ansible Tower | >= 3.3.5, <= 3.4.5 |
| Redhat | Ansible Tower | >= 3.5.0, <= 3.5.5 |
| Redhat | Ansible Tower | >= 3.6.0, <= 3.6.3 |
| Redhat | Cloudforms Management Engine | 5.0 |
| Redhat | Openstack | 13 |
| Debian | Debian Linux | 8.0 |
| Debian | Debian Linux | 10.0 |
| Fedoraproject | Fedora | 30 |
| Fedoraproject | Fedora | 31 |
| Fedoraproject | Fedora | 32 |
References
- https://bugzilla.redhat.com/show_bug.cgi?id=CVE-2020-1740Issue Tracking, Vendor Advisory
- https://github.com/ansible/ansible/issues/67798Issue Tracking, Third Party Advisory
- https://lists.debian.org/debian-lts-announce/2020/05/msg00005.htmlMailing List, Third Party Advisory
- https://security.gentoo.org/glsa/202006-11Third Party Advisory
- https://www.debian.org/security/2021/dsa-4950Third Party Advisory
- https://bugzilla.redhat.com/show_bug.cgi?id=CVE-2020-1740Issue Tracking, Vendor Advisory
- https://github.com/ansible/ansible/issues/67798Issue Tracking, Third Party Advisory
- https://lists.debian.org/debian-lts-announce/2020/05/msg00005.htmlMailing List, Third Party Advisory
- https://security.gentoo.org/glsa/202006-11Third Party Advisory
- https://www.debian.org/security/2021/dsa-4950Third Party Advisory
Timeline
- Published
- Last Modified
- Status
- Modified
Frequently Asked Questions
What is CVE-2020-1740?
How severe is CVE-2020-1740?
How do I fix CVE-2020-1740?
Are you affected by CVE-2020-1740?
Run a free Strix scan to check your systems for this vulnerability.
Scan your code nowSource: NVD / NIST
