Skip to main content
Press slash or control plus K to focus the search. Use the arrow keys to navigate results and press enter to open a threat.
Reconnecting to live updates…

CVE-2023-5189: Relative Path Traversal in Red Hat Red Hat Ansible Automation Platform 2.4 for RHEL 8

0
Medium
VulnerabilityCVE-2023-5189cvecve-2023-5189
Published: Tue Nov 14 2023 (11/14/2023, 22:57:00 UTC)
Source: CVE Database V5
Vendor/Project: Red Hat
Product: Red Hat Ansible Automation Platform 2.4 for RHEL 8

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.

AI-Powered Analysis

AILast updated: 11/20/2025, 17:45:13 UTC

Technical Analysis

CVE-2023-5189 is a relative path traversal vulnerability identified in Red Hat Ansible Automation Platform 2.4 running on RHEL 8. The issue arises during the extraction process of tarballs by the galaxy importer component of the Ansible Automation Hub. An attacker can craft a malicious tarball containing symbolic links that, when extracted, can overwrite arbitrary files on the host filesystem. This occurs because the tarball extraction does not properly sanitize or restrict file paths, allowing traversal outside the intended extraction directory. The vulnerability requires the attacker to have network access to the Ansible Automation Hub and some level of privileges (PR:L), as well as user interaction (UI:R) to trigger the import process. The CVSS v3.1 base score is 6.3, indicating a medium severity level. The impact primarily affects the integrity of the system by enabling unauthorized modification of files, which could lead to altered configurations or compromised automation workflows. Confidentiality impact is limited, and availability is not affected. No public exploits or active exploitation campaigns have been reported to date. This vulnerability highlights the risks associated with improper input validation and path sanitization in automation platforms that handle external content. Given the widespread use of Ansible in enterprise and cloud environments, exploitation could facilitate further attacks or persistence if leveraged by threat actors.

Potential Impact

For European organizations, the primary impact of CVE-2023-5189 lies in the potential unauthorized modification of critical configuration and operational files managed by Ansible Automation Platform. This can disrupt automation workflows, cause misconfigurations, or introduce malicious changes that may be leveraged for lateral movement or privilege escalation. Since Ansible is widely used in IT infrastructure automation, compromised integrity could affect multiple systems and services, leading to operational disruptions or security breaches. The vulnerability does not directly impact availability or confidentiality but can indirectly facilitate further attacks. Organizations in sectors with high automation reliance, such as finance, telecommunications, manufacturing, and government, are at greater risk. The requirement for some privileges and user interaction reduces the likelihood of widespread automated exploitation but does not eliminate targeted attacks. The absence of known exploits in the wild currently limits immediate risk, but proactive mitigation is essential to prevent future exploitation.

Mitigation Recommendations

1. Apply official patches or updates from Red Hat as soon as they are released to address CVE-2023-5189. 2. Restrict filesystem permissions on directories used by the galaxy importer to prevent unauthorized write or symlink creation. 3. Implement strict validation and sanitization of tarball contents before extraction, including rejecting tarballs with suspicious or absolute paths and symbolic links. 4. Limit user privileges required to import content into Ansible Automation Hub to trusted administrators only. 5. Monitor logs and file integrity of directories involved in automation workflows for unexpected changes or symlink creations. 6. Consider isolating the Ansible Automation Hub environment using containerization or sandboxing to limit the impact of potential exploitation. 7. Educate administrators on the risks of importing untrusted content and enforce policies to only use verified sources for automation content. 8. Employ network segmentation and access controls to restrict exposure of the Ansible Automation Hub to untrusted networks or users.

Need more detailed analysis?Get Pro

Technical Details

Data Version
5.1
Assigner Short Name
redhat
Date Reserved
2023-09-26T05:27:24.004Z
Cvss Version
3.1
State
PUBLISHED

Threat ID: 68e84755ba0e608b4faf9c0e

Added to database: 10/9/2025, 11:37:57 PM

Last enriched: 11/20/2025, 5:45:13 PM

Last updated: 12/4/2025, 12:18:52 PM

Views: 56

Community Reviews

0 reviews

Crowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.

Sort by
Loading community insights…

Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.

Actions

PRO

Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.

Please log in to the Console to use AI analysis features.

Need enhanced features?

Contact root@offseq.com for Pro access with improved analysis and higher rate limits.

Latest Threats