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

Published Aug 24, 2023
·
Updated

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.

Other sources

A vulnerability was found in the galaxy importer of Ansible Automation Hub. The tarball extraction code is open to abuse in several ways (relative paths in the middle of a path, as well as symlinks that target arbitrary paths). If used to extract user-provided tarballs, this flaw could lead to arbitrary file overwrite.

Red Hat

Affected Software

3 affected components
pip/galaxy-importer<=0.4.16
redhat Ansible Automation Platform=2.0
redhat Satellite=6.0

Event History

Aug 24, 2023
Data Sourced
via Red Hat·09:23 AM
DescriptionSeverityAffected Software
Nov 14, 2023
CVE Published
via MITRE·10:57 PM
Data Sourced
via MITRE·10:57 PM
DescriptionSeverityWeakness
Nov 15, 2023
Advisory Published
via GitHub·12:31 AM
Free Weekly Intel

Don't miss critical vulnerabilities

Join thousands of security professionals who receive our weekly digest of trending CVEs, zero-days, and exploited vulnerabilities.

No spam. Unsubscribe anytime.

Frequently Asked Questions

1

What is CVE-2023-5189?

CVE-2023-5189 is a path traversal vulnerability that exists in Ansible when extracting tarballs.

2

How does CVE-2023-5189 affect Ansible Automation Hub?

When using the galaxy importer of Ansible Automation Hub, a symlink could be dropped on the disk, resulting in files being overwritten.

3

What is the severity of CVE-2023-5189?

CVE-2023-5189 has a severity rating of medium with a CVSS score of 6.3.

4

Which software packages are affected by CVE-2023-5189?

The affected software includes the galaxy-importer package (version up to and inclusive 0.4.16), Redhat Ansible Automation Platform (version 2.0), and Redhat Satellite (version 6.0).

5

How can I fix CVE-2023-5189?

To fix CVE-2023-5189, update to a version of the affected software that includes the necessary security patch.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203