Command Injection Vulnerability in Galaxy_ng by Red Hat
CVE-2026-12398
7.5HIGH
What is CVE-2026-12398?
A command injection vulnerability exists in galaxy_ng, specifically within the do_git_checkout() function of the legacy role import API (v1). This flaw allows an authenticated user with access to a git repository to craft branch or tag names containing shell metacharacters. When these unsanitized names are used, they can be interpolated into shell commands executed through subprocess.run() with shell=True. This can potentially lead to remote code execution on the pulp worker, particularly if the GALAXY_ENABLE_LEGACY_ROLES setting has been enabled, which is not the default configuration.
References
CVSS V3.1
Score:
7.5
Severity:
HIGH
Confidentiality:
High
Integrity:
High
Availability:
High
Attack Vector:
Network
Attack Complexity:
High
Privileges Required:
Low
User Interaction:
None
Scope:
Unchanged
Timeline
Vulnerability published
Vulnerability Reserved
Credit
This issue was discovered by Chris Meyers (Red Hat).