{"id":"CVE-2026-12398","aliases":["PYSEC-2026-2486"],"url":"https://o3.security/vulnerability/CVE-2026-12398","summary":"Galaxy NG: command injection vulnerability","details":"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.","published":"2026-06-16T15:33:51Z","modified":"2026-07-13T16:42:52.586766713Z","cvss":{"score":7.5,"severity":"HIGH","vector":"CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H"},"epss":{"score":0.00889,"percentile":0.55965,"asOf":"2026-08-10"},"cisaKev":null,"exploitsKnown":0,"affectedPackages":[{"ecosystem":"PyPI","name":"galaxy-ng","fixedVersion":null}],"fix":null,"references":[{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-12398"},{"type":"WEB","url":"https://access.redhat.com/security/cve/CVE-2026-12398"},{"type":"WEB","url":"https://bugzilla.redhat.com/show_bug.cgi?id=2489180"},{"type":"PACKAGE","url":"https://github.com/ansible/galaxy_ng"}],"provenance":{"sources":["OSV.dev","FIRST.org (EPSS)"],"lastVerified":"2026-07-13T16:42:52.586766713Z"}}