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?
How Strix Helps
- How Strix found a critical auth bypass in etcdStrix autonomously discovered a critical authentication bypass in etcd, later designated CVE-2026-33413.
- Autonomous PentestingAI agents that find and validate exploitable vulnerabilities like this one across your applications.
- PR ReviewsPentest every pull request so vulnerable code is caught before it ships to production.
- AI Penetration TestingHow AI-driven penetration testing continuously covers your attack surface.
Related CVEs from 2020
- CVE-2020-17394This vulnerability allows local attackers to disclose sensit…6
- CVE-2020-17395This vulnerability allows local attackers to escalate privil…8.2
- CVE-2020-17396This vulnerability allows local attackers to escalate privil…8.8
- CVE-2020-17397This vulnerability allows local attackers to escalate privil…8.2
- CVE-2020-17398This vulnerability allows local attackers to disclose inform…6.5
- CVE-2020-17399This vulnerability allows local attackers to escalate privil…8.8
- CVE-2020-17400This vulnerability allows local attackers to escalate privil…8.8
- CVE-2020-17401This vulnerability allows local attackers to disclose sensit…6
- CVE-2020-17402This vulnerability allows local attackers to disclose sensit…6.5
- CVE-2020-17403This vulnerability allows remote attackers to execute arbitr…7.8
- CVE-2020-17404This vulnerability allows remote attackers to execute arbitr…7.8
- CVE-2020-17405This vulnerability allows network-adjacent attackers to exec…8.8
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
