CVE-2026-71465

Description

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.

Statement

A low severity command-line argument injection flaw was found in the automation-controller component of Red Hat Ansible Automation Platform. When building the command line for an ad-hoc command, RunAdHocCommand.build_args() appends the user-supplied limit field as a bare positional argument instead of passing it with the -l flag prefix as RunJob does. An authenticated attacker with privileges to launch ad-hoc commands can supply a limit value beginning with a dash, which is then parsed as an option by the ansible executable. The currently achievable impact is limited to short-circuit options such as --version and --help, because the injected element displaces the required pattern positional argument; the issue would only escalate if ansible-core were ever to make the pattern argument optional. This is consistent with the Red Hat and upstream severity assessment of low (CVSS 3.1, AV:N/AC:H/PR:L/UI:N/S:U/C:N/I:L/A:N). All affected automation-controller streams in Red Hat Ansible Automation Platform are handled through a delegated resolution, with fixes pursued for the affected streams; for the Ansible Automation Platform 2.4 stream the fix has been deferred, and the residual risk there is limited to the low-impact short-circuit behavior described above.

Mitigation

Mitigation for this issue is either not available or the currently available options do not meet the Red Hat Product Security criteria comprising ease of use and deployment, applicability to widespread installation base, or stability.

Common Vulnerability Scoring System (CVSS) Score Details

Info alert:Important note

CVSS scores for open source components depend on vendor-specific factors (e.g. version or build chain). Therefore, Red Hat's score and impact rating can be different from NVD and other vendors. Red Hat remains the authoritative CVE Naming Authority (CNA) source for its products and services (see Red Hat classifications).

CVSS v3 Score Breakdown

Red HatNVDcve.org
Base Score3.1N/A3.1
Attack VectorNetworkN/ANetwork
Attack ComplexityHighN/AHigh
Privileges RequiredLowN/ALow
User InteractionNoneN/ANone
ScopeUnchangedN/AUnchanged
ConfidentialityNoneN/ANone
Integrity ImpactLowN/ALow
Availability ImpactNoneN/ANone

Vector

Red Hat: CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:N/I:L/A:N

cve.org: CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:N/I:L/A:N

Understanding the Weakness (CWE)

Confidentiality,Integrity,Availability,Other

Technical Impact: Execute Unauthorized Code or Commands; Alter Execution Logic; Read Application Data; Modify Application Data

If an attacker can provide an untrusted input that contains argument-separating delimiters, then the resulting command will have more arguments than intended by the developer, potentially changing the expected behavior of the command. Depending on the functionality supported by the extraneous arguments, this may have security-relevant consequences. The attacker could include arguments that allow unintended commands or code to be executed, allow sensitive data to be read or modified, or cause other unintended behavior.

Acknowledgements

This issue was discovered by Chris Meyers (Red Hat).

Frequently Asked Questions

Want to get errata notifications? Sign up here.