PatchSiren cyber security CVE debrief
CVE-2026-12398 Red Hat CVE debrief
CVE-2026-12398 is a HIGH severity vulnerability with a CVSS score of 7.5. 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.
- Vendor
- Red Hat
- Product
- Red Hat Ansible Automation Platform 2
- CVSS
- HIGH 7.5
- CISA KEV
- Not listed in stored evidence
- Original CVE published
- 2026-06-16
- Original CVE updated
- 2026-06-29
- Advisory published
- 2026-06-16
- Advisory updated
- 2026-06-29
Who should care
Users of galaxy_ng, particularly those who have GALAXY_ENABLE_LEGACY_ROLES set to True, should be aware of this vulnerability and take steps to mitigate it.
Technical summary
The do_git_checkout() function in the legacy role import API (v1) of galaxy_ng is vulnerable to command injection. An authenticated user can create a branch or tag with shell metacharacters in the name to achieve remote code execution on the pulp worker.
Defensive priority
HIGH
Recommended defensive actions
- Update galaxy_ng to a version that fixes the command injection vulnerability.
- Disable the legacy role import API (v1) if not needed.
- Set GALAXY_ENABLE_LEGACY_ROLES to False if possible.
Evidence notes
The CVE-2026-12398 record was obtained from the NVD database. Additional information was obtained from Red Hat's security advisory (see resourceLinkAnnotations).
Sources and references
Verified primary and authoritative sources
-
CVE-2026-12398 CVE Program record
Publisher, destination, and source semantics verified
URL: https://www.cve.org/CVERecord?id=CVE-2026-12398
CVE Program - Official CVE Program record with source-provided CVE metadata.
-
CVE-2026-12398 NVD vulnerability detail
Publisher, destination, and source semantics verified
URL: https://nvd.nist.gov/vuln/detail/CVE-2026-12398
NIST National Vulnerability Database - Official NIST NVD detail page and source-specific vulnerability assessment.
Supplemental references
-
Source reference
Unverified legacy reference
URL: https://access.redhat.com/security/cve/CVE-2026-12398
Methodology and review provenance
AI-assisted synthesis based on stored public vulnerability evidence. System validation, approval state, and publication status do not by themselves establish human review of this revision. PatchSiren helps prioritize defensive review and does not prove exposure or remediation on any system.