CVE-2026-130644
Ansible-core: ansible-core: ansible-galaxy collection install path traversal via unvalidated artifact-derived collection name allows file writes and directory deletion outside the collections path
Description
A path traversal flaw was found in ansible-core. When installing a collection with ansible-galaxy collection install, the install destination directory is derived from the namespace and name fields declared inside the collection artifact's own metadata, which are not validated as well-formed collection identifiers or checked for path containment. A malicious collection artifact -- delivered as a local file, a remote URL, a source directory, a git repository, or as a dependency -- can use a crafted name value to redirect the install destination outside the configured collections path, causing ansible-galaxy to delete an existing directory writable by the invoking user and then write attacker-controlled files to that location.
Affected products and versions
| Product / package | Ecosystem / vendor | Versions | Fixed in | Source |
|---|---|---|---|---|
| migration toolkit for applications 8 | red hat | — | — | CVE.org |
| migration toolkit for virtualization | red hat | — | — | CVE.org |
| openshift service mesh 3 | red hat | — | — | CVE.org |
| red hat advanced cluster management for kubernetes 2 | red hat | — | — | CVE.org |
| red hat ansible automation platform 2 | red hat | — | — | CVE.org |
| red hat ansible automation platform ansible core 2 | red hat | — | — | CVE.org |
| red hat discovery 2 | red hat | — | — | CVE.org |
| 2 | discovery | — | — | CVE.org |
| red hat enterprise linux 10 | red hat | — | — | CVE.org |
| red hat enterprise linux 8 | red hat | — | — | CVE.org |
| red hat enterprise linux 9 | red hat | — | — | CVE.org |
| red hat enterprise linux command line assistant | red hat | — | — | CVE.org |
| red hat openshift container platform 4 | red hat | — | — | CVE.org |
| red hat openshift container platform 5 | red hat | — | — | CVE.org |
| red hat openstack platform 17.1 | red hat | — | — | CVE.org |
| red hat openstack platform 18.0 | red hat | — | — | CVE.org |
| red hat satellite 6 | red hat | — | — | CVE.org |
| red hat update infrastructure 5 | red hat | — | — | CVE.org |
| 5 | rhui | — | — | CVE.org |
| self-service automation portal 2 | red hat | — | — | CVE.org |
| service telemetry framework 1.5 | red hat | — | — | CVE.org |