Ansible-core: ansible-core: ansible-galaxy collection install symlink path escape allows arbitrary file write / code execution
- Published
- Last modified
- Where the record stands: published, rejected by its publisher, or superseded by another id.What do these mean? →
- published
- Whether CISA lists it in its Known Exploited Vulnerabilities catalog: proof that attackers are using it.What do these mean? →
- Not listed in CISA KEV
- Whether working attack code is public (Exploit-DB, Metasploit, Nuclei or GitHub). Public code makes attacks easier.What do these mean? →
- None on Exploit-DB, Metasploit or GitHub
- Exploitation: none
- Automatable: no
- Technical impact: total
Summary
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.
Timeline
- CVE published
- CISA SSVC assessment
Exploitation: none · Automatable: no · Technical impact: total
- Record last updated
Affected versions
- mta/mta-rhel9-operator
Version range not reported
- migration-toolkit-virtualization/mtv-rhel9-operator
Version range not reported
- openshift-service-mesh/kiali-rhel9-operator
Version range not reported
- rhacm2/volsync-operator-bundle
Version range not reported
- rhacm2/volsync-rhel9
Version range not reported
- ansible-automation-platform-24/de-minimal-rhel8
Version range not reported
- ansible-automation-platform-24/de-minimal-rhel9
Version range not reported
- ansible-automation-platform-24/ee-minimal-rhel8
Version range not reported
- ansible-automation-platform-24/ee-minimal-rhel9
Version range not reported
- ansible-automation-platform-24/hub-rhel8
Version range not reported
- ansible-automation-platform-24/lightspeed-rhel8
Version range not reported
- ansible-automation-platform-25/ansible-dev-tools-rhel8
Version range not reported
- ansible-automation-platform-25/de-minimal-rhel8
Version range not reported
- ansible-automation-platform-25/de-minimal-rhel9
Version range not reported
- ansible-automation-platform-25/eda-controller-rhel8
Version range not reported
- ansible-automation-platform-25/ee-minimal-rhel8
Version range not reported
- ansible-automation-platform-25/ee-minimal-rhel9
Version range not reported
- ansible-automation-platform-25/hub-rhel8
Version range not reported
- ansible-automation-platform-25/lightspeed-rhel8
Version range not reported
- ansible-automation-platform-26/ansible-dev-tools-rhel9
Version range not reported
- ansible-automation-platform-26/controller-rhel9-operator
Version range not reported
- ansible-automation-platform-26/de-minimal-rhel9
Version range not reported
- ansible-automation-platform-26/de-supported-rhel9
Version range not reported
- ansible-automation-platform-26/eda-controller-rhel9
Version range not reported
- ansible-automation-platform-26/eda-controller-rhel9-operator
Version range not reported
- ansible-automation-platform-26/ee-minimal-rhel9
Version range not reported
- ansible-automation-platform-26/ee-supported-rhel9
Version range not reported
- ansible-automation-platform-26/gateway-rhel9-operator
Version range not reported
- ansible-automation-platform-26/hub-rhel9
Version range not reported
- ansible-automation-platform-26/hub-rhel9-operator
Version range not reported
- ansible-automation-platform-26/lightspeed-rhel9
Version range not reported
- ansible-automation-platform-26/lightspeed-rhel9-operator
Version range not reported
- ansible-automation-platform-26/platform-resource-rhel9-operator
Version range not reported
- ansible-automation-platform-26/platform-resource-runner-rhel9
Version range not reported
- ansible-automation-platform-27/aap-cloud-billing-operator-rhel9
Version range not reported
- ansible-automation-platform-27/ansible-devspaces-rhel9
Version range not reported
- ansible-automation-platform-27/ansible-dev-tools-rhel9
Version range not reported
- ansible-automation-platform-27/controller-rhel9-operator
Version range not reported
- ansible-automation-platform-27/de-minimal-rhel9
Version range not reported
- ansible-automation-platform-27/de-supported-rhel9
Version range not reported
- ansible-automation-platform-27/eda-controller-rhel9
Version range not reported
- ansible-automation-platform-27/eda-controller-rhel9-operator
Version range not reported
- ansible-automation-platform-27/ee-minimal-rhel9
Version range not reported
- ansible-automation-platform-27/ee-supported-rhel9
Version range not reported
- ansible-automation-platform-27/gateway-rhel9-operator
Version range not reported
- ansible-automation-platform-27/hub-rhel9
Version range not reported
- ansible-automation-platform-27/hub-rhel9-operator
Version range not reported
- ansible-automation-platform-27/lightspeed-rhel9
Version range not reported
- ansible-automation-platform-27/lightspeed-rhel9-operator
Version range not reported
- ansible-automation-platform-27/metrics-service-rhel9-operator
Version range not reported
- ansible-automation-platform-27/platform-resource-rhel9-operator
Version range not reported
- ansible-automation-platform-27/platform-resource-runner-rhel9
Version range not reported
- ansible-automation-platform-tech-preview/ansible-devspaces-rhel9
Version range not reported
- ansible-automation-platform-tech-preview/metrics-service-rhel9-operator
Version range not reported
- ansible-core
Version range not reported
- ansible-automation-platform/ee-minimal-rhel8
Version range not reported
- ansible-automation-platform/ee-minimal-rhel9
Version range not reported
- ansible-automation-platform-tech-preview/ee-minimal-rhel8
Version range not reported
- ansible-automation-platform-tech-preview/ee-minimal-rhel9
Version range not reported
- rhcertification/redhat-certification-system-ai
Version range not reported
- discovery/discovery-server-rhel9
Version range not reported
- ansible-core
Version range not reported
- ansible-core
Version range not reported
- ansible-core
Version range not reported
- openshift4/ose-ansible-rhel9-operator
Version range not reported
- openstack-ansible-core
Version range not reported
- rhoso-operators/ee-openstack-ansible-ee-rhel9
Version range not reported
- ansible-core
Version range not reported
- rhui5/installer-rhel9
Version range not reported
- rhui5/installer-tp-rhel9
Version range not reported
- rhui5/rhua-rhel9
Version range not reported
- rhui5/rhua-tp-rhel9
Version range not reported
- ansible-automation-platform/bootc-automation-portal-rhel9
Version range not reported