CVE-2026-12398: Galaxy_ng - Command Injection
- Cve: CVE-2026-12398
- Name: Galaxy_ng - Command Injection
- 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.
- Impact: Authenticated users controlling a git repository can execute arbitrary code on the pulp worker, leading to full system compromise.
- Remediation: Disable GALAXY_ENABLE_LEGACY_ROLES or update to a version that sanitizes git ref names properly.
- Vulnerability type: command_injection
- Vulnerability impact: remote_code_execution
- Requirement type: logged_in
- Requirements: GALAXY_ENABLE_LEGACY_ROLES must be set to True and attacker must be authenticated with git repository control
- Labels source: projectdiscovery
- Severity: high
- Cvss score: 7.5
- Cvss vector: CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H
- Epss score: 0.00889
- Epss percentile: 0.60076
- Assignee: [email protected]
- Published at: 2026-06-16T15:16:36Z
- Age in days: 161
- Modified at: 2026-10-25T23:10:00Z
- References total: 2
- Products total: 1
- Oss: yes
- Projects total: 1
- Advisory url: https://nvd.nist.gov/vuln/detail/CVE-2026-12398
- Nvd status: awaiting_analysis
- Checked, none or zero: patch available, known exploited entries, nuclei templates, public exploits total, public exploits capped, public exploits, rejected by nvd
- Not known: hackerone
Cwe
| Id | Name |
|---|---|
| CWE-78 | Improper Neutralization of Special Elements used in an OS Command |
References
| Url | Source | Tags |
|---|---|---|
| https://access.redhat.com/security/cve/CVE-2026-12398 | nvd | |
| https://bugzilla.redhat.com/show_bug.cgi?id=2489180 | nvd |
Products
| Product | Affected | Platform bound | Sources | Url |
|---|---|---|---|---|
| redhat:ansible_automation_platform | all versions | no | cna_alias | /v1/products/redhat/ansible_automation_platform |
Projects
| Repository | Link kinds | Indexed | Url |
|---|---|---|---|
| ansible/galaxy_ng | package | yes | /v1/repositories/ansible/galaxy_ng |
Index
- Checked, none or zero: repositories, repositories high signal, packages
Exploitation
- Remote: yes
- Authentication required: yes
- Checked, none or zero: known exploited, known exploited by, exploitation seen, public exploit, public exploit count, initial access
- Not known: known exploited since, vulncheck known exploited since, public exploit first date, nuclei template, initial access since, hackerone reports, exposed hosts