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-08-24 16:27 UTC (History)
22 users (show)

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


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHSA-2026:59135 0 None None None 2026-08-24 16:25:50 UTC
Red Hat Product Errata RHSA-2026:59136 0 None None None 2026-08-24 16:27:27 UTC
Red Hat Product Errata RHSA-2026:59137 0 None None None 2026-08-24 16:24:33 UTC

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

Comment 7 errata-xmlrpc 2026-08-24 16:24:31 UTC
This issue has been addressed in the following products:

  Red Hat Ansible Automation Platform 2.7 for RHEL 10
  Red Hat Ansible Automation Platform 2.7 for RHEL 9

Via RHSA-2026:59137 https://access.redhat.com/errata/RHSA-2026:59137

Comment 8 errata-xmlrpc 2026-08-24 16:25:48 UTC
This issue has been addressed in the following products:

  Red Hat Ansible Automation Platform 2.5 for RHEL 9
  Red Hat Ansible Automation Platform 2.5 for RHEL 8

Via RHSA-2026:59135 https://access.redhat.com/errata/RHSA-2026:59135

Comment 9 errata-xmlrpc 2026-08-24 16:27:25 UTC
This issue has been addressed in the following products:

  Red Hat Ansible Automation Platform 2.6 for RHEL 9
  Red Hat Ansible Automation Platform 2.6 for RHEL 10

Via RHSA-2026:59136 https://access.redhat.com/errata/RHSA-2026:59136


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