What’s Vulnerable › Vulnerabilities
CVE-2026-12398: Galaxy_ng: shell injection in legacy role import via unsanitized git ref names
- Severity: high (CVSS 7.5 v3.1)
- Exploited in the wild: not listed in CISA KEV
- EPSS: 0.9% probability of exploitation in the next 30 days
- Public exploit or detection template: none known
- Published: 2026-06-16 · updated 2026-10-25
- Weakness: CWE-78
Description
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.
Affected products
- Red Hat Ansible Automation Platform 2: all versions
References
- https://access.redhat.com/security/cve/CVE-2026-12398
- https://bugzilla.redhat.com/show_bug.cgi?id=2489180
Get alerted when CVE-2026-12398 or the next vulnerability affects your stack