ansible/galaxy-importer · Security
Ansible galaxy-importer Path Traversal vulnerability
- GHSA ID
- GHSA-55g2-vm3q-7w52
- CVE ID
- CVE-2023-5189
- Severity
- medium
- Published
- Updated
- CVSS
- 6.3 · CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:U/C:L/I:H/A:N
- CVSS v3
- 6.3 · CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:U/C:L/I:H/A:N
Description
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.
CWEs
- CWE-22 · Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal')
- CWE-23 · Relative Path Traversal
References
- https://nvd.nist.gov/vuln/detail/CVE-2023-5189 ↗
- https://access.redhat.com/security/cve/CVE-2023-5189 ↗
- https://bugzilla.redhat.com/show_bug.cgi?id=2234387 ↗
- https://github.com/ansible/galaxy-importer/blob/2c5c7c05fdfb0835878234b36de32902c703616d/galaxy_importer/collection.py#L160-L165 ↗
- https://access.redhat.com/errata/RHSA-2023:7773 ↗
- https://access.redhat.com/errata/RHSA-2024:1536 ↗
- https://access.redhat.com/errata/RHSA-2024:2010 ↗
- https://github.com/advisories/GHSA-55g2-vm3q-7w52 ↗