Red Hat Ansible
At a glance
- Source
- NVD
- EPSS
- EPSS 0.33 % · percentile 27 ()
- State
- PUBLISHED
- Published
- Updated
- Assigner
- redhat
- NVD status
- Modified
Description
A flaw was found in Ansible Engine, all versions 2.7.x, 2.8.x and 2.9.x prior to 2.7.17, 2.8.9 and 2.9.6 respectively, when using ansible_facts as a subkey of itself and promoting it to a variable when inject is enabled, overwriting the ansible_facts after the clean. An attacker could take advantage of this by altering the ansible_facts, such as ansible_hosts, users and any other key data which would lead into privilege escalation or code injection.
Weaknesses (CWE)
- CWE-94 — Improper Control of Generation of Code
- CWE-862 — Missing Authorization
- CWE-362 — Concurrent Execution using Shared Resource with Improper Synchronization
References
- 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://security.gentoo.org/glsa/202006-11
- https://www.debian.org/security/2021/dsa-4950
- https://bugzilla.redhat.com/show_bug.cgi?id=CVE-2020-10684
Scores
| Version | Score | Vector | Scored by |
|---|---|---|---|
| CVSS 3.1 | HIGH 7.9 | CVSS:3.1/AV:L/AC:L/PR:L/UI:R/S:C/C:N/I:H/A:H | redhat |
| CVSS 3.1 | HIGH 7.9 | CVSS:3.1/AV:L/AC:L/PR:L/UI:R/S:C/C:N/I:H/A:H | NVD · secalert@redhat.com (Secondary) |
| CVSS 3.1 | HIGH 7.1 | CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:H/A:H | NVD · nvd@nist.gov (Primary) |
| CVSS 2.0 | LOW 3.6 | AV:L/AC:L/Au:N/C:N/I:P/A:P | NVD · nvd@nist.gov (Primary) |
Advisories
- GHSA-p62g-jhg6-v3rq — Code Injection, Race Condition, and Execution with Unnecessary Privileges in Ansible
- PYSEC-2020-207 — A flaw was found in Ansible Engine, all versions 2.7.x, 2.8.x and 2.9.x prior to 2.7.17, 2.8.9 and 2.9.6 respectively, when using ansible_facts as a subkey of i
European references
- ENISA EUVD · EUVD-2020-0019
- GCVE · GCVE-0-2020-10684
Affected configurations (NVD CPE)
cpe:2.3:a:redhat:ansible:*:*:*:*:*:*:*:*≥ 2.7.0 < 2.7.17cpe:2.3:a:redhat:ansible:*:*:*:*:*:*:*:*≥ 2.8.0 < 2.8.9cpe:2.3:a:redhat:ansible:*:*:*:*:*:*:*:*≥ 2.9.0 < 2.9.6cpe:2.3:a:redhat:ansible_tower:*:*:*:*:*:*:*:*≤ 3.3.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:openstack:10:*:*:*:*:*:*:*cpe:2.3:a:redhat:openstack:13:*:*:*:*:*:*:*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 all Ansible 2.7.x versions prior to 2.7.17 ; affected all Ansible 2.8.x versions prior to 2.8.9 ; affected all Ansible 2.9.x versions prior to 2.9.6 |
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 |