PT-2026-49716 · Red Hat · Red Hat Ansible Automation Platform 2

Chris Meyers

·

Published

2026-06-16

·

Updated

2026-06-16

·

CVE-2026-12398

CVSS v3.1

7.5

High

VectorAV:N/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H
A command injection vulnerability was found in galaxy ng. The do git checkout() function in the legacy role import API (v1) interpolates unsanitized git ref names (branch/tag names) into shell commands executed via subprocess.run() with shell=True. An authenticated user who controls a git repository can create a branch or tag with shell metacharacters in the name to achieve remote code execution on the pulp worker. The vulnerable endpoint is only reachable when GALAXY ENABLE LEGACY ROLES is set to True, which is not the default configuration.

Fix

OS Command Injection

Weakness Enumeration

Related Identifiers

CVE-2026-12398

Affected Products

Red Hat Ansible Automation Platform 2