{"id":80639,"date":"2026-06-16T18:46:36","date_gmt":"2026-06-16T15:16:36","guid":{"rendered":"https:\/\/afaghhosting.net\/blog\/cve-2026-12398-galaxy_ng-shell-injection-in-legacy-role-import-via-unsanitized-git-ref-names\/"},"modified":"2026-06-16T18:46:36","modified_gmt":"2026-06-16T15:16:36","slug":"cve-2026-12398-galaxy_ng-shell-injection-in-legacy-role-import-via-unsanitized-git-ref-names","status":"publish","type":"post","link":"https:\/\/afaghhosting.net\/blog\/cve-2026-12398-galaxy_ng-shell-injection-in-legacy-role-import-via-unsanitized-git-ref-names\/","title":{"rendered":"CVE-2026-12398 &#8211; Galaxy_ng: shell injection in legacy role import via unsanitized git ref names"},"content":{"rendered":"<p>CVE ID :CVE-2026-12398<\/p>\n<p>  Published : June 16, 2026, 3:16 p.m. | 25\u00a0minutes ago<\/p>\n<p>  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.<\/p>\n<p>  Severity: 7.5 | HIGH<\/p>\n<p>  Visit the link for more details, such as CVSS details, affected products, timeline, and more&#8230;\u00a0<\/p>\n","protected":false},"excerpt":{"rendered":"<p>CVE ID :CVE-2026-12398 Published : June 16, 2026, 3:16 p.m. | 25\u00a0minutes ago 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 &hellip;<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[26],"tags":[],"class_list":["post-80639","post","type-post","status-publish","format-standard","hentry","category-vulnerability"],"_links":{"self":[{"href":"https:\/\/afaghhosting.net\/blog\/wp-json\/wp\/v2\/posts\/80639","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/afaghhosting.net\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/afaghhosting.net\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/afaghhosting.net\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/afaghhosting.net\/blog\/wp-json\/wp\/v2\/comments?post=80639"}],"version-history":[{"count":0,"href":"https:\/\/afaghhosting.net\/blog\/wp-json\/wp\/v2\/posts\/80639\/revisions"}],"wp:attachment":[{"href":"https:\/\/afaghhosting.net\/blog\/wp-json\/wp\/v2\/media?parent=80639"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/afaghhosting.net\/blog\/wp-json\/wp\/v2\/categories?post=80639"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/afaghhosting.net\/blog\/wp-json\/wp\/v2\/tags?post=80639"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}