Ansible-core ansible-galaxy path traversal lets role installs write files outside the roles directory
CVE-2026-105929
A tampered Ansible role can overwrite or delete your other files.
- CVE
- CVE-2026-105929 (opens in a new tab)
- Score
- CVSS 8.1
- Public date
- 2026-11-17
- First seen
Mitigation
No source names a fixed version yet. Install roles only from trusted sources, and before installing check meta/requirements.yml, including transitive dependencies, for any name containing '../' or an absolute path. Do not use --force on untrusted content.
Summary
ansible-galaxy in ansible-core does not check role names for '../' or absolute paths, so installing a malicious role can write files outside the roles directory, and with --force can delete directories there. Damage is limited to what the installing user can change.
Affected when
Installing an untrusted role with ansible-galaxy
Incidents by product: Migration Toolkit for Applications 8 · Migration Toolkit for Virtualization · OpenShift Service Mesh 3 · Red Hat Advanced Cluster Management for Kubernetes 2 · Red Hat Ansible Automation Platform 2
Other recent Incidents of Migration Toolkit for Applications 8
Distribution packages (7) (every link below opens in a new tab)
- Debian 13 (trixie)ansible-core · not fixed yet
- Debian 12 (bookworm)ansible-core · not fixed yet
- RHEL 10ansible-core · not fixed yet
- RHEL 9ansible-core · not fixed yet
- RHEL 8ansible-core · not fixed yet
- openSUSE Tumbleweedansible · fixed in 2.21.6-1.1
- openSUSE Tumbleweedansible-core · fixed in 2.21.6-1.1
Sources: Debian Security Tracker · Red Hat Security Data (CC BY 4.0) · SUSE CSAF VEX (CC BY 4.0)
Read the CVE record · cve.org (opens in a new tab)
- CVE record: cve.org (opens in a new tab)