CVE-2026-12398
Galaxy_ng: shell injection in legacy role import via unsanitized git ref names
CVSS Score
7.5
EPSS Score
0.0%
EPSS Percentile
0th
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.
| CWE | CWE-78 |
| Vendor | red hat |
| Product | red hat ansible automation platform 2 |
| Published | Jun 16, 2026 |
| Last Updated | Jun 16, 2026 |
Stay Ahead of the Next One
Get instant alerts for red hat red hat ansible automation platform 2
Be the first to know when new high vulnerabilities affecting red hat red hat ansible automation platform 2 are published โ delivered to Slack, Telegram or Discord.
Get Free Alerts โ
Free ยท No credit card ยท 60 sec setup
CVSS v3 Breakdown
CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H Attack Vector
Network
Attack Complexity
High
Privileges Required
Low
User Interaction
None
Scope
Unchanged
Confidentiality
High
Integrity
High
Availability
High
Affected Versions
Red Hat / Red Hat Ansible Automation Platform 2
All versions affected Red Hat / Red Hat Ansible Automation Platform 2
All versions affected Red Hat / Red Hat Ansible Automation Platform 2
All versions affected Red Hat / Red Hat Ansible Automation Platform 2
All versions affected Red Hat / Red Hat Ansible Automation Platform 2
All versions affected References
Credits
This issue was discovered by Chris Meyers (Red Hat).