Path traversal in Ansible galaxy importer



Published: 2023-12-14
Risk Medium
Patch available YES
Number of vulnerabilities 1
CVE-ID CVE-2023-5189
CWE-ID CWE-22
Exploitation vector Network
Public exploit N/A
Vulnerable software
Subscribe
galaxy-importer
Universal components / Libraries / Libraries used by multiple products

Vendor Ansible

Security Bulletin

This security bulletin contains one medium risk vulnerability.

1) Path traversal

EUVDB-ID: #VU84432

Risk: Medium

CVSSv3.1: 5.7 [CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:H/A:N/E:U/RL:O/RC:C]

CVE-ID: CVE-2023-5189

CWE-ID: CWE-22 - Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal')

Exploit availability: No

Description

The vulnerability allows a remote attacker to perform directory traversal attacks.

The vulnerability exists due to input validation error when processing directory traversal sequences in symbolic link filename within the _extract_archive() function in galaxy-importer/collection.py. A remote attacker can trick the victim to use a specially crafted archive and overwrite arbitrary files on the system.

Mitigation

Install update from vendor's website.

Vulnerable software versions

galaxy-importer: 0.2.6 - 0.4.16

External links

http://access.redhat.com/security/cve/CVE-2023-5189
http://bugzilla.redhat.com/show_bug.cgi?id=2234387
http://access.redhat.com/errata/RHSA-2023:7773


Q & A

Can this vulnerability be exploited remotely?

Yes. This vulnerability can be exploited by a remote non-authenticated attacker via the Internet.

Is there known malware, which exploits this vulnerability?

No. We are not aware of malware exploiting this vulnerability.



###SIDEBAR###