5.2medium
Path Traversal in Ansible
- Severity
- 5.2medium CVSS:3.1 by redhat
- Exploit likelihood
- 0.30% (higher than 24% of CVEs; EPSS, by FIRST)
- Published
- Last changed
- Assigned by
- redhat
- Also known as
- GHSA-3c67-gc48-983wPYSEC-2020-2
Description
An archive traversal flaw was found in all ansible-engine versions 2.9.x prior to 2.9.7, when running ansible-galaxy collection install. When extracting a collection .tar.gz file, the directory is created without sanitizing the filename. An attacker could take advantage to overwrite any file within the system.
Affected
| Product or package | Versions | Reported by |
|---|---|---|
| Red Hat Ansible | all ansible-engine versions 2.9.x prior to 2.9.7 | CVE List |
| ansible (PyPI) | from 2.9.0a1 before 2.9.7, from 2.9.0 before 2.9.7 | GitHub Advisory Database, PyPA Advisory Database |
| redhat ansible_engine | from 2.9.0 before 2.9.7 | NVD |
| redhat ansible_tower | 3.0 | NVD |
All scores
| redhat | 5.2medium CVSS:3.1 | CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:C/C:N/I:L/A:L |
| GitHub | 5.2medium CVSS:3.1 | CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:C/C:N/I:L/A:L |
| GitHub | medium CVSS:4.0 | CVSS:4.0/AV:L/AC:L/AT:N/PR:L/UI:N/VC:N/VI:L/VA:L/SC:N/SI:N/SA:N |
| NVD | 5.2medium CVSS:3.1 | CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:C/C:N/I:L/A:L |
| NVD | 3.6low CVSS:2.0 | AV:L/AC:L/Au:N/C:N/I:P/A:P |
Classification
What each source says
CVE List
An archive traversal flaw was found in all ansible-engine versions 2.9.x prior to 2.9.7, when running ansible-galaxy collection install. When extracting a collection .tar.gz file, the directory is created without sanitizing the filename. An attacker could take advantage to overwrite any file within the system.
GitHub Advisory Database
An archive traversal flaw was found in all ansible-engine versions 2.9.x prior to 2.9.7, when running ansible-galaxy collection install. When extracting a collection .tar.gz file, the directory is created without sanitizing the filename. An attacker could take advantage to overwrite any file within the system.
NVD (es)
Se ha detectado un fallo de salto de archivo en todas las versiones de ansible-engine 2.9.x anteriores a 2.9.7, cuando se ejecuta una instalación de una colección ansible-galaxy. Al extraer un archivo .tar.gz de la colección, el directorio es creado sin sanear el nombre del archivo. Un atacante podría aprovechar para sobrescribir cualquier archivo dentro del sistema.
References
| https://bugzilla.redhat.com/show_bug.cgi?id=CVE-2020-10691 | issue-tracking, mitigation, report, vendor-advisory, web | |
| https://github.com/ansible/ansible/pull/68596 | patch, third-party-advisory, web | |
| https://nvd.nist.gov/vuln/detail/CVE-2020-10691 | advisory | |
| https://github.com/ansible/ansible/commit/b2551bb6943eec078066aa3a923e0bb3ed85abe8 | web | |
| https://github.com/advisories/GHSA-3c67-gc48-983w | advisory | |
| https://github.com/ansible/ansible | package | |
| https://github.com/pypa/advisory-database/tree/main/vulns/ansible/PYSEC-2020-2.yaml | web | |
Sources
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2020-10691 changed 2024-08-04 | CVE Terms of Use |
| GitHub Advisory Database | GHSA-3c67-gc48-983w changed 2024-09-04 | CC-BY-4.0 |
| NVD | CVE-2020-10691 changed 2026-06-17 | Public domain |
| PyPA Advisory Database | PYSEC-2020-2 changed 2023-11-08 | CC-BY-4.0 |