Red Hat ansible
At a glance
- Source
- NVD
- EPSS
- EPSS 0.36 % Β· percentile 30 ()
- State
- PUBLISHED
- Published
- Updated
- Assigner
- redhat
- NVD status
- Modified
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.
Weaknesses (CWE)
- CWE-377 β DEPRECATED: Insecure Temporary File
- CWE-200 β Exposure of Sensitive Information to an Unauthorized Actor
References
- https://bugzilla.redhat.com/show_bug.cgi?id=CVE-2020-1740
- https://github.com/ansible/ansible/issues/67798
- https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/WQVOQD4VAIXXTVQAJKTN7NUGTJFE2PCB/
- https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/DKPA4KC3OJSUFASUYMG66HKJE7ADNGFW/
- https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/MRRYUU5ZBLPBXCYG6CFP35D64NP2UB2S/
- https://lists.debian.org/debian-lts-announce/2020/05/msg00005.html
- https://security.gentoo.org/glsa/202006-11
- https://www.debian.org/security/2021/dsa-4950
Scores
| Version | Score | Vector | Scored by |
|---|---|---|---|
| CVSS 3.1 | LOW 3.9 | CVSS:3.1/AV:L/AC:H/PR:L/UI:R/S:C/C:L/I:L/A:N | redhat |
| CVSS 3.1 | LOW 3.9 | CVSS:3.1/AV:L/AC:H/PR:L/UI:R/S:C/C:L/I:L/A:N | NVD Β· secalert@redhat.com (Secondary) |
| CVSS 3.1 | MEDIUM 4.7 | CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:H/I:N/A:N | NVD Β· nvd@nist.gov (Primary) |
| CVSS 2.0 | LOW 1.9 | AV:L/AC:M/Au:N/C:P/I:N/A:N | NVD Β· nvd@nist.gov (Primary) |
Advisories
- GHSA-vcg8-98q8-g7mj β Exposure of Sensitive Information to an Unauthorized Actor and Insecure Temporary File in Ansible
- PYSEC-2020-12 β 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 com
European references
- ENISA EUVD Β· EUVD-2020-0005
- GCVE Β· GCVE-0-2020-1740
Affected configurations (NVD CPE)
cpe:2.3:a:redhat:ansible:*:*:*:*:*:*:*:*< 2.7.17cpe:2.3:a:redhat:ansible:*:*:*:*:*:*:*:*β₯ 2.8.0 < 2.8.11cpe:2.3:a:redhat:ansible:*:*:*:*:*:*:*:*β₯ 2.9.0 < 2.9.7cpe:2.3:a:redhat:ansible_tower:*:*:*:*:*:*:*:*β€ 3.3.4cpe:2.3:a:redhat:ansible_tower:*:*:*:*:*:*:*:*β₯ 3.3.5 β€ 3.4.5cpe:2.3:a:redhat:ansible_tower:*:*:*:*:*:*:*:*β₯ 3.5.0 β€ 3.5.5cpe:2.3:a:redhat:ansible_tower:*:*:*:*:*:*:*:*β₯ 3.6.0 β€ 3.6.3cpe:2.3:a:redhat:cloudforms_management_engine:5.0:*:*:*:*:*:*:*cpe:2.3:a:redhat:openstack:13:*:*:*:*:*:*:*cpe:2.3:o:debian:debian_linux:8.0:*:*:*:*:*:*:*cpe:2.3:o:debian:debian_linux:10.0:*:*:*:*:*:*:*cpe:2.3:o:fedoraproject:fedora:30:*:*:*:*:*:*:*cpe:2.3:o:fedoraproject:fedora:31:*:*:*:*:*:*:*cpe:2.3:o:fedoraproject:fedora:32:*:*:*:*:*:*:*
Affected products
| Product | Versions |
|---|---|
| Red Hat Β· ansible | affected 2.7.x, 2.8.x, 2.9.x |
Sources
| Source | Licence |
|---|---|
| CVE List (CVEProject cvelistV5) | CVE Program Terms of Use |
| EPSS (FIRST.org) | FIRST β attribution requested |
| ENISA EUVD | ENISA β reproduction authorised, source acknowledged |
| NVD (NIST) via fkie-cad/nvd-json-data-feeds | Public domain β this product uses data from the NVD API but is not endorsed or certified by the NVD |