CVE-2026-12398 json
Galaxy_ng: shell injection in legacy role import via unsanitized git ref names
published 2026-06-16 4 mo ago modified 2026-11-05 3 d ago also GHSA-6hw7-j4jw-wpff , PYSEC-2026-2486 , EUVD-2026-37124
- cvss
- 7.5
- version 3.1, CNA
- cisa kev
- Not listed
- not in CISA's catalog
- epss
- 0.9%
- EPSS 0.9% chance of exploitation in 30 days, percentile 59%
- public exploits
- 0
- none known
Summary
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.
Vendor advisories
What the vendors themselves say about their products: affected, fixed or not affected, and what to do.
red hat product security vex CVE-2026-12398 updated cvss 7.5
galaxy_ng: shell injection in legacy role import via unsanitized git ref names
-
Red Hat Ansible Automation Platform 2 automation-hub, ansible-automation-platform-25/hub-rhel8, ansible-automation-platform-26/hub-rhel9, ansible-automation-platform-27/hub-rhel9affected: workaround, no fix available
-
Red Hat Ansible Automation Platform 2 python-galaxy-ng, python3x-galaxy-ng, python3.11-galaxy-ng, python3.12-galaxy-ngunder investigation
-
Red Hat Ansible Automation Platform 2 ansible-automation-platform-24/hub-rhel8not affected: vulnerable code not present
Red Hat CSAF VEX © Red Hat, Inc., from https://security.access.redhat.com/data/csaf/v2/vex/; changed: reduced to product statuses and remediations. CC BY 4.0 · csaf
CISA SSVC
- Exploitation
- none
- Automatable
- no
- Technical impact
- total
- Assessed
- 4 mo ago
Exploit prediction
0.89% chance of exploitation in the next 30 days, higher than 59% of all scored CVEs (FIRST EPSS, 2026-11-08).
CVSS scores
| assigned by | version | score | vector |
|---|---|---|---|
| CNA | 3.1 | 7.5 | CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H |
| GitHub | 3.1 | 7.5 | CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H |
| OSV | 3.1 | 7.5 | CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H |
Affected packages
| ecosystem | package | affected | fixed in |
|---|---|---|---|
| pypi | galaxy-ng | <=4.9.2 |
no fix listed |
Affected products
- Red Hat Red Hat Ansible Automation Platform 2
Classification
- Weakness
-
- CWE-78 Improper Neutralization of Special Elements used in an OS Command
References
-
access.redhat.com
/security/cve/CVE-2026-12398
vdb-entry, web
-
bugzilla.redhat.com
/show_bug.cgi?id=2489180
issue-tracking, web
-
nvd.nist.gov
/vuln/detail/CVE-2026-12398
advisory
-
github.com
/ansible/galaxy_ng
package
-
pypi.org
/project/galaxy-ng
package
-
github.com
/advisories/GHSA-6hw7-j4jw-wpff
advisory
Sources
- CVE List CVE-2026-12398
- GitHub Advisory GHSA-6hw7-j4jw-wpff
- NVD CVE-2026-12398
- OSV PYSEC-2026-2486
Fencer Vulns keeps one entry per vulnerability: the CVE id wins, then GHSA, and records that alias each other are merged, except that two CVEs always keep separate entries. The same data is available as JSON.