Skip to main content
VulnerabilityPublished Updated

CVE-2026-12398: Red Hat Ansible Automation Platform 2 · OS Command Injection

Affects Red Hat Ansible Automation Platform 2Source CVE Database V5

0
Compare

Not known to be exploited · CVSS 7.5 High.

Data as of 30 Oct 2026, 20:25 UTC

CVSS 3.1 base score
7.5High
How severe the flaw is on the 0–10 CVSS scale.
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:H

Exploitation evidence

  1. Disclosed: evidence found.

    CVE published 16 Jun 2026

  2. Detectable: no evidence on record.

    No public nuclei template indexed

  3. Weaponized: no evidence on record.

    No public exploit code indexed in Metasploit or Exploit-DB

  4. Exploited in the wild: no evidence on record.

    Not in CISA KEV and no source reports exploitation

  5. Observed by OffSeq 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

ProductAffectedFixed in
Red HatRed Hat Ansible Automation Platform 2Affected–Fixed in–
Red HatRed Hat Ansible Automation Platform 2Affected–Fixed in–
Red HatRed Hat Ansible Automation Platform 2Affected–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.

References

Community reviews

Loading reviews…