Red Hat ansible-core.: code execution
A flaw was found in ansible-core. When installing a collection with
ansible-galaxy collection install, the archive extractor validates member
paths using lexical path normalisation (os.path.abspath) instead of resolving
symbolic links (os.path.realpath), and it performs no containment check on
symlink-typed directory members before creating them. A crafted collection
tarball can chain symlink directory entries so that a subsequent file member is
written outside the intended destination directory. This allows an attacker who
can get a victim to install a malicious collection to overwrite arbitrary files
with the privileges of the user running ansible-galaxy, leading to code
execution on the control node. This is a bypass of the fix for CVE-2020-10691.
Affected versions
| Package | Affected | Fixed in |
|---|---|---|
| Migration Toolkit for Applications 8 Product | all versions | No fix yet |
| Migration Toolkit for Virtualization Product | all versions | No fix yet |
| OpenShift Service Mesh 3 Product | all versions | No fix yet |
| Red Hat Advanced Cluster Management for Kubernetes 2 Product | all versions | No fix yet |
| all versions | No fix yet | |
| Red Hat Ansible Automation Platform 2 Product | all versions | No fix yet |
| all versions | No fix yet | |
| all versions | No fix yet | |
| all versions | No fix yet | |
| all versions | No fix yet | |
| all versions | No fix yet | |
| all versions | No fix yet |
Details and references
- CVSS 3.1
- CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H
- Severity from
- the vendor (its own CVE record or advisory)
- Weakness
- CWE-59