# CVE-2023-5189: Hub: insecure galaxy-importer tarfile extraction

- Severity: Medium 6.3 (CVSS:3.1, scored by redhat) `CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:U/C:L/I:H/A:N`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.98%, higher than 63% of CVEs (2026-12-01)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2023-11-14T22:57:00.584Z
- Modified: 2026-07-07T17:56:36.437Z
- Also known as: GHSA-55g2-vm3q-7w52, PYSEC-2026-1401
- Weaknesses: CWE-22, CWE-23
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial
- Assigned by: redhat

## 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.

(As written by CVE List.)

## Affected

- python3x-galaxy-importer: no versions given (not affected: from 0:0.4.18-1.el8ap before *)
- python-galaxy-importer: no versions given (not affected: from 0:0.4.18-1.el9ap before *; from 0:0.4.18-2.el8pc before *; from 0:0.4.19-2.el8pc before *)
- galaxy-importer (PyPI): up to 0.4.16
- redhat ansible_automation_platform: 2.0
- redhat satellite: 6.0

## Every score

- redhat: CVSS:3.1 6.3 Medium `CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:U/C:L/I:H/A:N`
- GitHub: CVSS:3.1 6.3 Medium `CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:U/C:L/I:H/A:N`
- NVD: CVSS:3.1 6.5 Medium `CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:H/A:N`
- PyPA Advisory Database: CVSS:3.1 6.3 Medium `CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:U/C:L/I:H/A:N`

## References

- <https://bugzilla.redhat.com/show_bug.cgi?id=2234387> (exploit, issue-tracking, vendor-advisory, web)
- <https://access.redhat.com/errata/RHSA-2023:7773> (vendor-advisory, web)
- <https://access.redhat.com/errata/RHSA-2024:1536> (vendor-advisory, web)
- <https://access.redhat.com/errata/RHSA-2024:2010> (vendor-advisory, web)
- <https://access.redhat.com/security/cve/CVE-2023-5189> (vdb-entry, vendor-advisory, web)
- <https://nvd.nist.gov/vuln/detail/CVE-2023-5189> (advisory)
- <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)

## Sources

- CVE List: [CVE-2023-5189](https://www.cve.org/CVERecord?id=CVE-2023-5189), CVE Terms of Use, modified 2025-11-20
- GitHub Advisory Database: [GHSA-55g2-vm3q-7w52](https://github.com/advisories/GHSA-55g2-vm3q-7w52), CC-BY-4.0, modified 2026-07-07
- NVD: [CVE-2023-5189](https://nvd.nist.gov/vuln/detail/CVE-2023-5189), Public domain, modified 2026-06-17
- PyPA Advisory Database: [PYSEC-2026-1401](https://osv.dev/vulnerability/PYSEC-2026-1401), CC-BY-4.0, modified 2026-07-07

---

Page: https://cve.day/CVE-2023-5189 · Whole record: https://cve.day/CVE-2023-5189.json · Rebuilt by cve.day 2026-11-25T22:58:30.493Z
