Advisory Database
  • Advisories
  • Dependency Scanning
  1. pypi
  2. ›
  3. galaxy-ng
  4. ›
  5. CVE-2026-12398

CVE-2026-12398: Galaxy NG: command injection vulnerability

June 16, 2026 (updated June 19, 2026)

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.

References

  • access.redhat.com/security/cve/CVE-2026-12398
  • bugzilla.redhat.com/show_bug.cgi?id=2489180
  • github.com/advisories/GHSA-6hw7-j4jw-wpff
  • nvd.nist.gov/vuln/detail/CVE-2026-12398

Code Behaviors & Features

Detect and mitigate CVE-2026-12398 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Dependency Scanning using SBOM also detects vulnerabilities from proprietary advisories that this site does not include. Learn more about Dependency Scanning using SBOM →

Affected versions

All versions up to 4.9.2

Solution

Unfortunately, there is no solution available yet.

Impact 7.5 HIGH

CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H

Learn more about CVSS

Weakness

  • CWE-78: Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection')

Source file

pypi/galaxy-ng/CVE-2026-12398.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Sun, 08 Nov 2026 00:16:33 +0000.