{"document":{"category":"csaf_vex","csaf_version":"2.0","title":"CVE-2026-12398: Galaxy_ng: shell injection in legacy role import via unsanitized git ref names","publisher":{"category":"vendor","name":"HarborGuard Database","namespace":"https://database.harborguard.co"},"tracking":{"id":"CVE-2026-12398","status":"final","version":"1","initial_release_date":"2026-06-16T14:52:06.734Z","current_release_date":"2026-06-16T16:07:02.819Z","revision_history":[{"date":"2026-06-16T14:52:06.734Z","number":"1","summary":"Initial machine-readable export from HarborGuard."}]},"distribution":{"tlp":{"label":"WHITE"},"text":"Public CVE data; freely redistributable."},"notes":[{"category":"description","text":"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.","title":"CVE description"}],"references":[{"category":"self","summary":"CVE-2026-12398 on HarborGuard Database","url":"https://database.harborguard.co/cve/CVE-2026-12398"},{"category":"external","summary":"CVE Record","url":"https://www.cve.org/CVERecord?id=CVE-2026-12398"},{"category":"external","summary":"access.redhat.com","url":"https://access.redhat.com/security/cve/CVE-2026-12398"},{"category":"external","summary":"RHBZ#2489180","url":"https://bugzilla.redhat.com/show_bug.cgi?id=2489180"}]},"product_tree":{"branches":[{"category":"vendor","name":"Red Hat","branches":[{"category":"product_name","name":"Red Hat Ansible Automation Platform 2","branches":[{"category":"product_version","name":"*","product":{"name":"Red Hat Red Hat Ansible Automation Platform 2 *","product_id":"CSAFPID-1","product_identification_helper":{"cpe":"cpe:2.3:a:red_hat:red_hat_ansible_automation_platform_2:*:*:*:*:*:*:*:*"}}}]}]},{"category":"vendor","name":"Red Hat","branches":[{"category":"product_name","name":"Red Hat Ansible Automation Platform 2","branches":[{"category":"product_version","name":"*","product":{"name":"Red Hat Red Hat Ansible Automation Platform 2 *","product_id":"CSAFPID-2","product_identification_helper":{"cpe":"cpe:2.3:a:red_hat:red_hat_ansible_automation_platform_2:*:*:*:*:*:*:*:*"}}}]}]},{"category":"vendor","name":"Red Hat","branches":[{"category":"product_name","name":"Red Hat Ansible Automation Platform 2","branches":[{"category":"product_version","name":"*","product":{"name":"Red Hat Red Hat Ansible Automation Platform 2 *","product_id":"CSAFPID-3","product_identification_helper":{"cpe":"cpe:2.3:a:red_hat:red_hat_ansible_automation_platform_2:*:*:*:*:*:*:*:*"}}}]}]},{"category":"vendor","name":"Red Hat","branches":[{"category":"product_name","name":"Red Hat Ansible Automation Platform 2","branches":[{"category":"product_version","name":"*","product":{"name":"Red Hat Red Hat Ansible Automation Platform 2 *","product_id":"CSAFPID-4","product_identification_helper":{"cpe":"cpe:2.3:a:red_hat:red_hat_ansible_automation_platform_2:*:*:*:*:*:*:*:*"}}}]}]},{"category":"vendor","name":"Red Hat","branches":[{"category":"product_name","name":"Red Hat Ansible Automation Platform 2","branches":[{"category":"product_version","name":"*","product":{"name":"Red Hat Red Hat Ansible Automation Platform 2 *","product_id":"CSAFPID-5","product_identification_helper":{"cpe":"cpe:2.3:a:red_hat:red_hat_ansible_automation_platform_2:*:*:*:*:*:*:*:*"}}}]}]}]},"vulnerabilities":[{"cve":"CVE-2026-12398","title":"Galaxy_ng: shell injection in legacy role import via unsanitized git ref names","notes":[{"category":"description","text":"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.","title":"CVE description"}],"product_status":{"known_affected":["CSAFPID-1","CSAFPID-2","CSAFPID-3","CSAFPID-4","CSAFPID-5"]},"scores":[{"cvss_v3":{"version":"3.1","vectorString":"CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H","baseScore":7.5,"baseSeverity":"HIGH"},"products":["CSAFPID-1","CSAFPID-2","CSAFPID-3","CSAFPID-4","CSAFPID-5"]}],"remediations":[{"category":"none_available","details":"No fixed version is published yet. Monitor the upstream advisory.","product_ids":["CSAFPID-1","CSAFPID-2","CSAFPID-3","CSAFPID-4","CSAFPID-5"]}]}]}