{"id":"CVE-2023-5189","aliases":["CVE-2023-5189","GHSA-55g2-vm3q-7w52","PYSEC-2026-1401"],"related":[],"kind":"vulnerability","state":"published","title":"Hub: insecure galaxy-importer tarfile extraction","summary":"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.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"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.","source":"cvelist"},{"lang":"es","text":"Existe una vulnerabilidad de path traversal en Ansible al extraer archivos comprimidos. Un atacante podría crear un tarball malicioso para que, al utilizar el importador galaxy de Ansible Automation Hub, se pueda colocar un enlace simbólico en el disco, lo que provocaría la sobrescritura de los archivos.","source":"nvd"}],"published":"2023-11-14T22:57:00.584Z","modified":"2026-07-07T17:56:36.437Z","severity":{"scorer":"redhat","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:U/C:L/I:H/A:N","score":6.3,"rating":"MEDIUM"},"severities":[{"scorer":"redhat","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:U/C:L/I:H/A:N","score":6.3,"rating":"MEDIUM"},{"scorer":"GitHub","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:U/C:L/I:H/A:N","score":6.3,"rating":"MEDIUM"},{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:H/A:N","score":6.5,"rating":"MEDIUM"},{"scorer":"PyPA Advisory Database","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:U/C:L/I:H/A:N","score":6.3,"rating":"MEDIUM"}],"cwes":["CWE-22","CWE-23"],"affected":[{"ranges":[{"type":"rpm","introduced":"0:0.4.18-1.el8ap","fixed":"*","status":"unaffected"}],"vendor":"Red Hat","product":"Red Hat Ansible Automation Platform 2.4 for RHEL 8","package":"python3x-galaxy-importer","cpe":"cpe:/a:redhat:ansible_automation_platform:2.4::el8","source":"cvelist"},{"ranges":[{"type":"rpm","introduced":"0:0.4.18-1.el9ap","fixed":"*","status":"unaffected"}],"vendor":"Red Hat","product":"Red Hat Ansible Automation Platform 2.4 for RHEL 9","package":"python-galaxy-importer","cpe":"cpe:/a:redhat:ansible_automation_platform:2.4::el8","source":"cvelist"},{"ranges":[{"type":"rpm","introduced":"0:0.4.18-2.el8pc","fixed":"*","status":"unaffected"}],"vendor":"Red Hat","product":"Red Hat Satellite 6.14 for RHEL 8","package":"python-galaxy-importer","cpe":"cpe:/a:redhat:satellite:6.14::el8","source":"cvelist"},{"ranges":[{"type":"rpm","introduced":"0:0.4.18-2.el8pc","fixed":"*","status":"unaffected"}],"vendor":"Red Hat","product":"Red Hat Satellite 6.14 for RHEL 8","package":"python-galaxy-importer","cpe":"cpe:/a:redhat:satellite:6.14::el8","source":"cvelist"},{"ranges":[{"type":"rpm","introduced":"0:0.4.19-2.el8pc","fixed":"*","status":"unaffected"}],"vendor":"Red Hat","product":"Red Hat Satellite 6.15 for RHEL 8","package":"python-galaxy-importer","cpe":"cpe:/a:redhat:satellite_utils:6.15::el8","source":"cvelist"},{"ranges":[{"type":"rpm","introduced":"0:0.4.19-2.el8pc","fixed":"*","status":"unaffected"}],"vendor":"Red Hat","product":"Red Hat Satellite 6.15 for RHEL 8","package":"python-galaxy-importer","cpe":"cpe:/a:redhat:satellite_utils:6.15::el8","source":"cvelist"},{"ranges":[{"type":"ecosystem","introduced":"0","status":"affected","lastAffected":"0.4.16"}],"ecosystem":"PyPI","package":"galaxy-importer","purl":"pkg:pypi/galaxy-importer","source":"ghsa"},{"ranges":[{"status":"affected","version":"2.0"}],"vendor":"redhat","product":"ansible_automation_platform","cpe":"cpe:2.3:a:redhat:ansible_automation_platform:2.0:*:*:*:*:*:*:*","source":"nvd"},{"ranges":[{"status":"affected","version":"6.0"}],"vendor":"redhat","product":"satellite","cpe":"cpe:2.3:a:redhat:satellite:6.0:*:*:*:*:*:*:*","source":"nvd"},{"ranges":[{"type":"ecosystem","introduced":"0","status":"affected","lastAffected":"0.4.16"}],"ecosystem":"PyPI","package":"galaxy-importer","purl":"pkg:pypi/galaxy-importer","source":"pysec"}],"references":[{"url":"https://access.redhat.com/errata/RHSA-2023:7773","tags":["vendor-advisory","web","x-refsource-redhat","x-transferred"],"sources":["cvelist","ghsa","nvd","pysec"]},{"url":"https://access.redhat.com/errata/RHSA-2024:1536","tags":["vendor-advisory","web","x-refsource-redhat","x-transferred"],"sources":["cvelist","ghsa","nvd","pysec"]},{"url":"https://access.redhat.com/errata/RHSA-2024:2010","tags":["vendor-advisory","web","x-refsource-redhat","x-transferred"],"sources":["cvelist","ghsa","nvd","pysec"]},{"url":"https://access.redhat.com/security/cve/CVE-2023-5189","tags":["vdb-entry","vendor-advisory","web","x-refsource-redhat","x-transferred"],"sources":["cvelist","ghsa","nvd","pysec"]},{"url":"https://bugzilla.redhat.com/show_bug.cgi?id=2234387","tags":["exploit","issue-tracking","vendor-advisory","web","x-refsource-redhat","x-transferred"],"sources":["cvelist","ghsa","nvd","pysec"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2023-5189","tags":["advisory"],"sources":["ghsa","pysec"]},{"url":"https://github.com/ansible/galaxy-importer","tags":["package"],"sources":["ghsa","pysec"]},{"url":"https://github.com/ansible/galaxy-importer/blob/2c5c7c05fdfb0835878234b36de32902c703616d/galaxy_importer/collection.py#L160-L165","tags":["web"],"sources":["ghsa","pysec"]},{"url":"https://pypi.org/project/galaxy-importer","tags":["package"],"sources":["pysec"]},{"url":"https://github.com/advisories/GHSA-55g2-vm3q-7w52","tags":["advisory"],"sources":["pysec"]}],"credits":[],"assigner":"redhat","ssvc":{"scorer":"CISA-ADP","exploitation":"none","automatable":"no","technicalImpact":"partial","date":"2024-08-29T14:15:00.429Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2023-5189","url":"https://www.cve.org/CVERecord?id=CVE-2023-5189","licence":"CVE Terms of Use","modified":"2025-11-20T17:30:17.896Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-55g2-vm3q-7w52","url":"https://github.com/advisories/GHSA-55g2-vm3q-7w52","licence":"CC-BY-4.0","modified":"2026-07-07T17:56:36.437Z"},{"source":"nvd","name":"NVD","id":"CVE-2023-5189","url":"https://nvd.nist.gov/vuln/detail/CVE-2023-5189","licence":"Public domain","modified":"2026-06-17T06:47:45.507Z"},{"source":"pysec","name":"PyPA Advisory Database","id":"PYSEC-2026-1401","url":"https://osv.dev/vulnerability/PYSEC-2026-1401","licence":"CC-BY-4.0","modified":"2026-07-07T17:46:43.184Z"}],"updatedAt":"2026-11-25T22:58:30.493Z","epss":{"score":0.00982,"percentile":0.63285,"date":"2026-12-01T12:00:22.000Z"}}