Ansible-Core RunAdHocCommand Improper Arg Handling Enables CLI Opt Injection
CVE-2026-71465 Published on September 23, 2026
Automation-controller: automation-controller-container: automation-controller: ad-hoc command limit field allows cli argument injection into ansible executable
RunAdHocCommand.build_args() appends limit as bare
positional (args.append(limit)) instead of using
args.extend(['-l', limit]) like RunJob. A limit beginning
with - is parsed as an ansible CLI option. Currently
limited to short-circuit flags (--version, --help) since
injected element displaces required pattern positional.
Would escalate if ansible-core ever defaults pattern.
Vulnerability Analysis
CVE-2026-71465 can be exploited with network access, and requires small amount of user privileges. This vulnerability is consided to have a high level of attack complexity. The potential impact of an exploit of this vulnerability is considered to have no impact on confidentiality, with no impact on integrity, and no impact on availability.
Timeline
Reported to Red Hat.
Made public. 31 days later.
Weakness Type
What is an Argument Injection Vulnerability?
The software constructs a string for a command to executed by a separate component in another control sphere, but it does not properly delimit the intended arguments, options, or switches within that command string.
CVE-2026-71465 has been classified to as an Argument Injection vulnerability or weakness.
Products Associated with CVE-2026-71465
Want to know whenever a new CVE is published for Red Hat products? stack.watch will email you.
Affected Versions
Red Hat Ansible Automation Platform 2.5 for RHEL 8:- Version 0:4.6.33-1.el8ap and below * is unaffected.
- Version 0:4.6.33-1.el9ap and below * is unaffected.
- Version 0:4.7.17-1.el9ap and below * is unaffected.
- Version 1789673739 and below * is unaffected.
- Version 1789580684 and below * is unaffected.