---
id: CVE-2026-71465
title: |-
  RunAdHocCommand.build_args() appends limit as bare
                positional (args.append(limit)) instead of using
                args.extend(['-l', limit]) like RunJob
summary: |-
  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 op…
severity: low
cvss: 3.1
cvssVector: 'CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:N/I:L/A:N'
cwe:
  - CWE-88
vendor: Red Hat
product: automation-controller
affected:
  - automation-controller (all versions)
  - automation-controller (all versions)
  - automation-controller (all versions)
  - ansible-automation-platform-26/controller-rhel9 (all versions)
  - ansible-automation-platform-27/controller-rhel9 (all versions)
patched:
  - ansible_automation_platform_2_5_for_rhel 8
  - ansible_automation_platform_2_5_for_rhel 9
  - ansible_automation_platform_2_6_for_rhel 9
  - ansible_automation_platform 2.6
  - ansible_automation_platform 2.7
published: '2026-09-23'
updated: '2026-09-24'
sourceUpdated: '2026-09-24T14:51:56.593'
source: NVD
sourceUrl: 'https://nvd.nist.gov/vuln/detail/CVE-2026-71465'
references:
  - url: 'https://access.redhat.com/errata/RHSA-2026:71113'
    label: secalert@redhat.com
  - url: 'https://access.redhat.com/errata/RHSA-2026:71114'
    label: secalert@redhat.com
  - url: 'https://access.redhat.com/errata/RHSA-2026:71177'
    label: secalert@redhat.com
  - url: 'https://access.redhat.com/errata/RHSA-2026:71179'
    label: secalert@redhat.com
  - url: 'https://access.redhat.com/security/cve/CVE-2026-71465'
    label: secalert@redhat.com
  - url: 'https://bugzilla.redhat.com/show_bug.cgi?id=2512375'
    label: secalert@redhat.com
  - url: >-
      https://security.access.redhat.com/data/csaf/v2/vex/2026/cve-2026-71465.json
  - url: 'https://www.cve.org/CVERecord?id=CVE-2026-71465'
  - url: 'https://nvd.nist.gov/vuln/detail/CVE-2026-71465'
tags:
  - nvd
  - cve.org
  - csaf
  - vex
  - red-hat
ssvc:
  exploitation: none
  automatable: 'no'
  technicalImpact: partial
  timestamp: '2026-09-23T19:04:48.678853Z'
ingestedAt: '2026-09-23T19:31:04.464Z'
epss: 0.0021
epssPercentile: 0.09936
---

## Overview

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.

## Remediation

Refer to the linked advisories for vendor-supplied fixes and affected version ranges.

## Vendor advisories

- **RHSA-2026:71114** · Red Hat · fixed in: Red Hat Ansible Automation Platform 2.5 for RHEL 8, Red Hat Ansible Automation Platform 2.5 for RHEL 9 · released 2026-09-23 · [advisory](https://access.redhat.com/errata/RHSA-2026:71114)
- **RHSA-2026:71113** · Red Hat · fixed in: Red Hat Ansible Automation Platform 2.6 for RHEL 9 · released 2026-09-23 · [advisory](https://access.redhat.com/errata/RHSA-2026:71113)
- **RHSA-2026:71179** · Red Hat · fixed in: Red Hat Ansible Automation Platform 2.6 · released 2026-09-23 · [advisory](https://access.redhat.com/errata/RHSA-2026:71179)
- **RHSA-2026:71177** · Red Hat · fixed in: Red Hat Ansible Automation Platform 2.7 · released 2026-09-23 · [advisory](https://access.redhat.com/errata/RHSA-2026:71177)
