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

Medium 6.3 Published Updated

Attackers can overwrite files via malicious tarballs in Ansible Automation Hub, requiring patches for Red Hat Ansible and Satellite.

Exploited in the wild
Not known
Login needed
Any signed-in user
Attackable
Over the internet
Victim action needed
A user has to click or open something
Fix
Available

What is CVE-2023-5189?

CVE-2023-5189 is a medium-severity path traversal vulnerability in Redhat Satellite, published on 14 Nov 2023. Any signed-in user can exploit it over the network, and only if a user opens a file or follows a link.

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

Weakness: CWE-22, CWE-23

Which versions are affected by CVE-2023-5189?

3 open source packages ship an affected version, including galaxy-importer. It affects 2 products.

PackageAffectedFixed in
galaxy-importer PyPIAll versions to 0.4.16None
galaxy-importer PyPIAll versions to 0.4.16None
galaxy-importer PyPIAll versions to 0.4.16None

Products include Redhat Ansible Automation Platform, Redhat Satellite.

How do I fix CVE-2023-5189?

Apply the vendor's patch.

Upgrade, and resolve every user-supplied path against an allowed base folder before opening it. More about Path traversal.

Is CVE-2023-5189 being exploited?

There is no known exploitation of CVE-2023-5189 in the wild and no public exploit code.

All Redhat Satellite vulnerabilities

Sources

Also known as GHSA-55g2-vm3q-7w52, PYSEC-2026-1401, UBUNTU-CVE-2023-5189.

Is CVE-2023-5189 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free