MEDIUM6.3
PYSEC-2026-1401
Ansible galaxy-importer Path Traversal vulnerability
Details
A path traversal vulnerability exists in Ansible when extracting tarballs. An attacker could craft a malicious tarball so that when using the galaxy importer of Ansible Automation Hub, a symlink could be dropped on the disk, resulting in files being overwritten.
Are you affected?
Enter the version of the package you're using.
Affected packages
PyPI/galaxy-importer
Introduced in:
0No fixed version published yet for galaxy-importer (pip). Pin to a known-safe version or switch to an alternative.
References
- https://nvd.nist.gov/vuln/detail/CVE-2023-5189[ADVISORY]
- https://access.redhat.com/errata/RHSA-2023:7773[WEB]
- https://access.redhat.com/errata/RHSA-2024:1536[WEB]
- https://access.redhat.com/errata/RHSA-2024:2010[WEB]
- https://access.redhat.com/security/cve/CVE-2023-5189[WEB]
- https://bugzilla.redhat.com/show_bug.cgi?id=2234387[WEB]
- https://github.com/ansible/galaxy-importer[PACKAGE]
- https://github.com/ansible/galaxy-importer/blob/2c5c7c05fdfb0835878234b36de32902c703616d/galaxy_importer/collection.py#L160-L165[WEB]
- https://pypi.org/project/galaxy-importer[PACKAGE]
- https://github.com/advisories/GHSA-55g2-vm3q-7w52[ADVISORY]