Ansible-core: ansible-core: ansible-galaxy collection install symlink path escape allows arbitrary file write / code execution
- CVE-2026-89091
- GHSA-4jhw-j7jr-j479
- EUVD-2026-95346
Description
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.
Text from the CVE.org record.
Affected
Red Hat Migration Toolkit for Applications 8
- No versions listed
Red Hat Migration Toolkit for Virtualization
- No versions listed
Red Hat OpenShift Service Mesh 3
- No versions listed
Red Hat Red Hat Advanced Cluster Management for Kubernetes 2
- No versions listed
Red Hat Red Hat Ansible Automation Platform 2
- No versions listed
Red Hat Red Hat Ansible Automation Platform Ansible Core 2
- No versions listed
Red Hat Red Hat Certification Program for Red Hat Enterprise Linux 9
- No versions listed
Red Hat Red Hat Discovery 2
- No versions listed
Red Hat Red Hat Enterprise Linux 10
- No versions listed
Red Hat Red Hat Enterprise Linux 8
- No versions listed
Red Hat Red Hat Enterprise Linux 9
- No versions listed
Red Hat Red Hat OpenShift Container Platform 4
- No versions listed
Red Hat Red Hat OpenShift Container Platform 5
- No versions listed
Red Hat Red Hat OpenStack Platform 17.1
- No versions listed
Red Hat Red Hat OpenStack Platform 18.0
- No versions listed
Red Hat Red Hat Satellite 6
- No versions listed
Red Hat Red Hat Update Infrastructure 5
- No versions listed
Red Hat Self-service automation portal 2
- No versions listed
Timeline
- Published
Related news
No article from the followed outlets names this vulnerability.