CVE-2026-12398
published high CVSS 3.1 · 7.5Galaxy_ng: shell injection in legacy role import via unsanitized git ref names
Package status and fixes
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| Red Hat | — | ansible-automation-platform-24/hub-rhel8Red Hat Ansible Automation Platform 2 | Unaffected | Not required | redhat |
| Red Hat | — | ansible-automation-platform-25/hub-rhel8Red Hat Ansible Automation Platform 2 | Affected | Not stated | redhat |
| Red Hat | — | ansible-automation-platform-26/hub-rhel9Red Hat Ansible Automation Platform 2 | Affected | Not stated | redhat |
| Red Hat | — | ansible-automation-platform-27/hub-rhel9Red Hat Ansible Automation Platform 2 | Affected | Not stated | redhat |
| Red Hat | — | automation-hubRed Hat Ansible Automation Platform 2 | Affected | Not stated | redhat |
| Red Hat | — | python3.11-galaxy-ngRed Hat Ansible Automation Platform 2 | Unknown | Not stated | redhat |
| Red Hat | — | python3.12-galaxy-ngRed Hat Ansible Automation Platform 2 | Unknown | Not stated | redhat |
| Red Hat | — | python3x-galaxy-ngRed Hat Ansible Automation Platform 2 | Unknown | Not stated | redhat |
Show 1 more entries
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| Red Hat | — | python-galaxy-ngRed Hat Ansible Automation Platform 2 | Unknown | Not stated | redhat |
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.
Related advisories
Vendor advisories explicitly linked to this CVE.
No linked advisories were found for this CVE.
Assessment
CVSS risk assessment and additional context for this vulnerability.
- CVSS version
- 3.1
- Base score
- 7.5 / 10
- Severity
- high
- Provider
- redhat · cna
- Vector string
- CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H
Publisher product statements
Version ranges and default statuses as reported by each provider.
| Vendor | Product | Version status | Source |
|---|---|---|---|
| Red Hat | Red Hat Ansible Automation Platform 2 | Default: unaffected | redhat · cna |
| Red Hat | Red Hat Ansible Automation Platform 2 | Default: affected | redhat · cna |
| Red Hat | Red Hat Ansible Automation Platform 2 | Default: affected | redhat · cna |
| Red Hat | Red Hat Ansible Automation Platform 2 | Default: affected | redhat · cna |
| Red Hat | Red Hat Ansible Automation Platform 2 | Default: affected | redhat · cna |
| Red Hat | Red Hat Ansible Automation Platform 2 | Default: unknown | redhat · cna |
| Red Hat | Red Hat Ansible Automation Platform 2 | Default: unknown | redhat · cna |
| Red Hat | Red Hat Ansible Automation Platform 2 | Default: unknown | redhat · cna |
| Red Hat | Red Hat Ansible Automation Platform 2 | Default: unknown | redhat · cna |
Weaknesses
1- CWE-78 Improper Neutralization of Special Elements used in an OS Command
References
2- https://access.redhat.com/security/cve/CVE-2026-12398
- RHBZ#2489180 https://bugzilla.redhat.com/show_bug.cgi?id=2489180
Provider assertions
2redhat · cna
Galaxy_ng: shell injection in legacy role import via unsanitized git ref names
CISA-ADP · adp
CISA ADP Vulnrichment
Provenance
- Schema
- 5.2
- Searchable
- yes
- Content hash
- 4aa9084fc6b38a4c979a65cf1d1e137d1142c3272f5b4a93c04b31f8875dfef5
- Ingested
- 07 Nov 2026, 23:41:07 UTC
- Source record
- Official CVE record