Skip to content

CVE-2026-16625 galaxy_ng: galaxy_ng: path traversal in legacy role import via unsanitized github_repo

MediumCVSS 5.4
Published
Updated
Unknown
Exploit status
No public exploit known
Technology
Red Hat

Description

A flaw was found in galaxy_ng's legacy role import functionality.
The LegacyImportSerializer accepts a github_repo value as a plain
character field without validating for path separators, ".."
sequences, or absolute paths. The import worker constructs the
checkout directory as os.path.join(tmp_path, github_repo) and
passes it to git clone. An authenticated namespace owner can
supply a github_repo value such as "../persistent-role" to cause
the repository to be cloned outside the intended temporary
directory. The escaped directory persists after temporary
directory cleanup. This vulnerability is only exploitable when
GALAXY_ENABLE_LEGACY_ROLES is enabled, which defaults to False
in Ansible Automation Platform.

Affected products

No affected product data has been published yet.

References