Bug 2486729 (CVE-2026-52902) - CVE-2026-52902 awxkit: path traversal via YAML !include directive
Summary: CVE-2026-52902 awxkit: path traversal via YAML !include directive
Keywords:
Status: NEW
Alias: CVE-2026-52902
Product: Security Response
Classification: Other
Component: vulnerability
Version: unspecified
Hardware: All
OS: Linux
medium
medium
Target Milestone: ---
Assignee: Product Security DevOps Team
QA Contact:
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2026-06-09 07:19 UTC by OSIDB Bzimport
Modified: 2026-06-22 18:50 UTC (History)
22 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed:
Embargoed:


Attachments (Terms of Use)

Description OSIDB Bzimport 2026-06-09 07:19:23 UTC
A path traversal vulnerability was found in awxkit's YAML !include directive. The extractFile() function in awxkit/yaml_file.py constructs file paths using os.path.join() with unsanitized user-controlled input from !include tags, without any path containment check. An attacker who can convince a user to import a malicious YAML file via "awx --conf.format yaml import" can read arbitrary YAML-formatted files from the user's filesystem. The included file contents are populated into AWX resource fields and become accessible via the AWX API/UI.

Upstream: https://github.com/ansible/awx/tree/devel/awxkit
Affected file: awxkit/awxkit/yaml_file.py

Limited surface attack factors:
 - Client-side only (awxkit is a CLI tool)
 - Requires user to download and execute a malicious YAML file
 - Only YAML-formatted files can be read (not plaintext/binary)
 - JSON is the default import format; only --conf.format yaml affected
 - API field validations constrain exfiltration


Note You need to log in before you can comment on or make changes to this bug.