CVE-2026-12398: Red Hat Ansible Automation Platform 2 · OS Command Injection
Affects Red Hat Ansible Automation Platform 2Source CVE Database V5
Not known to be exploited · CVSS 7.5 High.
Data as of 30 Oct 2026, 20:25 UTC
- EPSS
- 0.8% chance of exploitation in 30 days – higher than 59% of CVEsExploit Prediction Scoring System: the likelihood attackers will use this flaw soon.
CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:HExploitation evidence
Disclosed: evidence found.
CVE published 16 Jun 2026
Detectable: no evidence on record.
No public nuclei template indexed
Weaponized: no evidence on record.
No public exploit code indexed in Metasploit or Exploit-DB
Exploited in the wildExploited: no evidence on record.
Not in CISA KEV and no source reports exploitation
Observed by OffSeq MirageSeen by Mirage: no evidence on record.
No attack traffic recorded by OffSeq Mirage sensors
A missing step is not evidence of safety. Sources: cve.org (opens in a new tab), the Metasploit, Exploit-DB and nuclei-templates index as of 30 Oct 2026.
What to do
Affected software
| Product | Affected | Fixed in |
|---|---|---|
| Red HatRed Hat Ansible Automation Platform 2 | Affected– | Fixed in– |
| Red HatRed Hat Ansible Automation Platform 2 | Affected– | Fixed in– |
| Red HatRed Hat Ansible Automation Platform 2 | Affected– | Fixed in– |
AI-suggested
The vendor advisory does not explicitly state the availability of a patch or official fix at this time. Mitigation includes ensuring that the GALAXY_ENABLE_LEGACY_ROLES setting remains disabled (the default), which prevents access to the vulnerable endpoint. Avoid enabling legacy roles unless necessary and monitor vendor updates for patches or official fixes.
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.