CVE-2020-1740
published low CVSS 3.1 · 3.9ansible: secrets readable after ansible-vault edit
Package status and fixes
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| Red Hat | — | ansible2.7.x, 2.8.x, 2.9.x | Affected | Not stated | redhat |
| Amazon Linux | AL2 | Release evaluationALAS2ANSIBLE2-2023-008 | Fixed | Not stated | Amazon Linux assessment |
| Amazon Linux | AL2023 | Release evaluation | Not Affected | Not required | Amazon Linux assessment |
| Alpine Linux | v3.10 | ansible | Fixed | 2.8.11-r0 | Package fix record |
| Debian | buster | ansible | Advisory build | 2.7.7+dfsg-1+deb10u1 | DSA-4950-1 |
| SUSE / openSUSE | openSUSE-Leap-15.3 | ansiblenoarch | Advisory build | 2.9.21-bp153.2.3.1 | OPENSUSE-SU-2022:0081-1 |
| Amazon Linux | AL2 | ansiblenoarch | Listed in advisory | Not stated | ALAS2ANSIBLE2-2023-008 |
| Alpine Linux | v3.11 | ansible | Fixed | 2.9.7-r0 | Package fix record |
Show 45 more entries
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| Alpine Linux | v3.12 | ansible | Fixed | 2.9.7-r0 | Package fix record |
| Alpine Linux | v3.9 | ansible | Fixed | 2.7.17-r0 | Package fix record |
| Debian | jessie | ansible | Advisory build | 1.7.2+dfsg-2+deb8u3 | DLA-2202-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | ansibleaarch64 | Advisory build | 2.9.24-1.2 | OPENSUSE-SU-2024:10615-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | ansibleppc64le | Advisory build | 2.9.24-1.2 | OPENSUSE-SU-2024:10615-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | ansibles390x | Advisory build | 2.9.24-1.2 | OPENSUSE-SU-2024:10615-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | ansiblex86_64 | Advisory build | 2.9.24-1.2 | OPENSUSE-SU-2024:10615-1 |
| Alpine Linux | v3.13 | ansible-base | Fixed | 2.9.7-r0 | Package fix record |
| Alpine Linux | v3.14 | ansible-base | Fixed | 2.9.7-r0 | Package fix record |
| Alpine Linux | v3.15 | ansible-base | Fixed | 2.9.7-r0 | Package fix record |
| SUSE / openSUSE | openSUSE-Leap-15.3 | ansible-docnoarch | Advisory build | 2.9.21-bp153.2.3.1 | OPENSUSE-SU-2022:0081-1 |
| SUSE / openSUSE | openSUSE-Leap-15.3 | ansible-testnoarch | Advisory build | 2.9.21-bp153.2.3.1 | OPENSUSE-SU-2022:0081-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | ansible-10aarch64 | Advisory build | 10.6.0-1.1 | OPENSUSE-SU-2024:14536-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | ansible-10ppc64le | Advisory build | 10.6.0-1.1 | OPENSUSE-SU-2024:14536-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | ansible-10s390x | Advisory build | 10.6.0-1.1 | OPENSUSE-SU-2024:14536-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | ansible-10x86_64 | Advisory build | 10.6.0-1.1 | OPENSUSE-SU-2024:14536-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | ansible-11aarch64 | Advisory build | 11.11.0-1.1 | OPENSUSE-SU-2025:15605-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | ansible-11ppc64le | Advisory build | 11.11.0-1.1 | OPENSUSE-SU-2025:15605-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | ansible-11s390x | Advisory build | 11.11.0-1.1 | OPENSUSE-SU-2025:15605-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | ansible-11x86_64 | Advisory build | 11.11.0-1.1 | OPENSUSE-SU-2025:15605-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | ansible-12aarch64 | Advisory build | 12.2.0-1.1 | OPENSUSE-SU-2025:15753-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | ansible-12ppc64le | Advisory build | 12.2.0-1.1 | OPENSUSE-SU-2025:15753-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | ansible-12s390x | Advisory build | 12.2.0-1.1 | OPENSUSE-SU-2025:15753-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | ansible-12x86_64 | Advisory build | 12.2.0-1.1 | OPENSUSE-SU-2025:15753-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | ansible-13aarch64 | Advisory build | 13.7.0-1.1 | OPENSUSE-SU-2026:10944-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | ansible-13ppc64le | Advisory build | 13.7.0-1.1 | OPENSUSE-SU-2026:10944-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | ansible-13s390x | Advisory build | 13.7.0-1.1 | OPENSUSE-SU-2026:10944-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | ansible-13x86_64 | Advisory build | 13.7.0-1.1 | OPENSUSE-SU-2026:10944-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | ansible-14aarch64 | Advisory build | 14.6.0-1.1 | OPENSUSE-SU-2026:12447-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | ansible-14ppc64le | Advisory build | 14.6.0-1.1 | OPENSUSE-SU-2026:12447-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | ansible-14s390x | Advisory build | 14.6.0-1.1 | OPENSUSE-SU-2026:12447-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | ansible-14x86_64 | Advisory build | 14.6.0-1.1 | OPENSUSE-SU-2026:12447-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | ansible-9aarch64 | Advisory build | 9.8.0-1.1 | OPENSUSE-SU-2024:14244-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | ansible-9ppc64le | Advisory build | 9.8.0-1.1 | OPENSUSE-SU-2024:14244-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | ansible-9s390x | Advisory build | 9.8.0-1.1 | OPENSUSE-SU-2024:14244-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | ansible-9x86_64 | Advisory build | 9.8.0-1.1 | OPENSUSE-SU-2024:14244-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | ansible-docaarch64 | Advisory build | 2.9.24-1.2 | OPENSUSE-SU-2024:10615-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | ansible-docppc64le | Advisory build | 2.9.24-1.2 | OPENSUSE-SU-2024:10615-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | ansible-docs390x | Advisory build | 2.9.24-1.2 | OPENSUSE-SU-2024:10615-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | ansible-docx86_64 | Advisory build | 2.9.24-1.2 | OPENSUSE-SU-2024:10615-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | ansible-testaarch64 | Advisory build | 2.9.24-1.2 | OPENSUSE-SU-2024:10615-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | ansible-testppc64le | Advisory build | 2.9.24-1.2 | OPENSUSE-SU-2024:10615-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | ansible-tests390x | Advisory build | 2.9.24-1.2 | OPENSUSE-SU-2024:10615-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | ansible-testx86_64 | Advisory build | 2.9.24-1.2 | OPENSUSE-SU-2024:10615-1 |
| Amazon Linux | AL2 | ansiblesrc | Listed in advisory | Not stated | ALAS2ANSIBLE2-2023-008 |
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.
Related advisories
Vendor advisories explicitly linked to this CVE.
Assessment
CVSS risk assessment and additional context for this vulnerability.
- CVSS version
- 3.1
- Base score
- 3.9 / 10
- Severity
- low
- Provider
- redhat · cna
- Vector string
- CVSS:3.1/AV:L/AC:H/PR:L/UI:R/S:C/C:L/I:L/A:N
Publisher product statements
Version ranges and default statuses as reported by each provider.
| Vendor | Product | Version status | Source |
|---|---|---|---|
| Red Hat | ansible | 2.7.x, 2.8.x, 2.9.x (affected) | redhat · cna |
Weaknesses
1- CWE-377
References
8- https://bugzilla.redhat.com/show_bug.cgi?id=CVE-2020-1740
- https://github.com/ansible/ansible/issues/67798
- [debian-lts-announce] 20200505 [SECURITY] [DLA 2202-1] ansible security update https://lists.debian.org/debian-lts-announce/2020/05/msg00005.html
- FEDORA-2020-3990f03ba3 https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/DKPA4KC3OJSUFASUYMG66HKJE7ADNGFW/
- FEDORA-2020-f80154b5b4 https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/MRRYUU5ZBLPBXCYG6CFP35D64NP2UB2S/
- FEDORA-2020-1b6ce91e37 https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/WQVOQD4VAIXXTVQAJKTN7NUGTJFE2PCB/
- GLSA-202006-11 https://security.gentoo.org/glsa/202006-11
- DSA-4950 https://www.debian.org/security/2021/dsa-4950
Provider assertions
2redhat · cna
CVE · adp
CVE Program Container
Provenance
- Schema
- 5.1
- Searchable
- yes
- Content hash
- daa1212eb1acd4c01ed415b0a267083da5af207934d51307cc507669013548c8
- Ingested
- 23 Sep 2026, 07:49:17 UTC
- Source record
- Official CVE record