AWX awxkit Path Traversal Vulnerability via YAML !include Directive

Vulnerability

A path traversal vulnerability exists in awxkit, the command-line interface (CLI) tool for AWX. The issue arises because the YAML !include directive does not properly sanitize file paths. This flaw allows an attacker to create a malicious YAML file that can read arbitrary YAML-formatted files from the local filesystem. The vulnerability is triggered when a user imports the crafted YAML file using the 'awx --conf.format yaml import' command. This is a client-side vulnerability that requires user interaction.

Impact

Exploitation of this vulnerability allows for unauthorized reading of files from the local filesystem, with the potential for the included file contents to be populated into AWX resource fields, making them accessible via the AWX API or user interface.

Reproduction

To reproduce this vulnerability, create a YAML file that includes a path traversal payload in the !include directive. Ensure that the file paths are not sanitized, allowing access to arbitrary YAML-formatted files on the local filesystem. Once the malicious YAML file is prepared, import it using the 'awx --conf.format yaml import' command. After the import, check the AWX resource fields to see if the contents of the traversed files have been populated.

Remediation

Users are advised to import YAML files only from trusted sources and to prioritize the default JSON import format instead of YAML.

Added: Jun 9, 2026, 10:26 AM
Updated: Jun 9, 2026, 10:26 AM

Vulnerability Rating

Custom Algorithm
spread
0.0
impact
0.6
exploitability
4.6
remediation
0.0
relevance
9.4
threat
1.6
urgency
2.9
incentive
0.0

Our algorithm analyzes dozens of metrics to generate these 8 key vulnerability categories, which are then combined to calculate the overall risk score.