medium5.2
CVE-2020-10691
Path Traversal in Ansible
Impact
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 packages
| Ecosystem | Package | Affected | Fixed in |
|---|---|---|---|
| pip | ansible | >= 2.9.0a1, < 2.9.7 | 2.9.7 |
Affected products
| Vendor | Product | Affected versions |
|---|---|---|
| Redhat | Ansible Engine | from 2.9.0 before 2.9.7 |
| Redhat | Ansible Tower | Version 3.0 |
Weakness classification
References
- NVD record
- CVE.org record
- GitHub advisory
- https://bugzilla.redhat.com/show_bug.cgi?id=CVE-2020-10691
- https://github.com/ansible/ansible/pull/68596
- https://github.com/advisories/GHSA-3c67-gc48-983w
- https://nvd.nist.gov/vuln/detail/CVE-2020-10691
- https://github.com/ansible/ansible/commit/b2551bb6943eec078066aa3a923e0bb3ed85abe8
- https://github.com/pypa/advisory-database/tree/main/vulns/ansible/PYSEC-2020-2.yaml