{"cve":"CVE-2026-12398","nvd":{"published":"2026-06-16T15:16:36.103","modified":"2026-10-25T23:10:00.167","status":"Awaiting Analysis","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.","cvss_v4":null,"cvss_v3":{"version":"3.1","vector":"CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H","score":7.5},"cwes":["CWE-78"],"references":["https://access.redhat.com/security/cve/CVE-2026-12398","https://bugzilla.redhat.com/show_bug.cgi?id=2489180"],"products":[],"source":"nvd","synced_at":"2026-10-25T23:44:33.281319194+00:00"},"epss":{"cve":"CVE-2026-12398","score":0.00889,"percentile":0.59074,"date":"2026-10-25"},"kev":null,"osv":[{"id":"GHSA-6hw7-j4jw-wpff","url":"https://osv.dev/vulnerability/GHSA-6hw7-j4jw-wpff","summary":"Galaxy NG: command injection vulnerability","modified":"2026-07-13T16:42:52.586766713Z","packages":[{"ecosystem":"PyPI","name":"galaxy-ng","purl":"pkg:pypi/galaxy-ng","ranges":["<=4.9.2"],"fixed":[]}]},{"id":"PYSEC-2026-2486","url":"https://osv.dev/vulnerability/PYSEC-2026-2486","summary":"Galaxy NG: command injection vulnerability","modified":"2026-07-13T16:32:37.446342238Z","packages":[{"ecosystem":"PyPI","name":"galaxy-ng","purl":"pkg:pypi/galaxy-ng","ranges":["<=4.9.2"],"fixed":[]}]}],"attribution":["This product uses the NVD API but is not endorsed or certified by the NVD.","EPSS scores: FIRST Exploit Prediction Scoring System, https://www.first.org/epss","Known exploited vulnerabilities: CISA Known Exploited Vulnerabilities Catalog, https://www.cisa.gov/known-exploited-vulnerabilities-catalog","Package advisories: OSV (https://osv.dev), from the GitHub Advisory Database, PyPA, Go, RustSec and other ecosystem databases, under CC-BY 4.0 or CC0","CVE records: the CVE Program's CVE List (https://www.cve.org), under its terms of use (https://www.cve.org/Legal/TermsOfUse). CVE is a registered trademark of The MITRE Corporation; this product is not affiliated with the CVE Program."]}