CVE-2026-12398Red Hat Ansible Automation Platform 2
High 7.5
Follow: this CVE · Red Hat · Red Hat Ansible Automation Platform 2 We alert you by email or Slack (account required).
- Priority
- 45
- CVSS 3.1
- 7.5
- EPSS
- —
- Auth required
- Yes
- Published
- Jun 16, 2026
- Updated
- Oct 25, 2026
- Category
- Application · Cross-platform
- Weakness (CWE)
- CWE-78
- SSVC (CISA)
- Exploitation: none · Automatable: no · Technical impact: total
- Vector
CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H
What happens
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.
What to do
- Apply the vendor's security update for Red Hat Ansible Automation Platform 2.
Affected packages
| Ecosystem | Package | Affected versions | Fixed in | How to upgrade |
|---|---|---|---|---|
| PyPI | galaxy-ng |
≤ 4.9.2 |
no fixed version | — |
| PyPI | galaxy-ng |
≤ 4.9.2 |
no fixed version | — |
Per OSV / GitHub Advisories (GHSA-6hw7-j4jw-wpff, PYSEC-2026-2486). Check the version in your lockfile before upgrading.
Affected products
- Red Hat · Red Hat Ansible Automation Platform 2
As reported by the CNA that published the CVE. NVD has not added CPEs with versions yet.
Official sources
References
Links published by the sources. Open them with care.