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 Hat | NVD | cve.org | |
|---|---|---|---|
| Base Score | 3.1 | N/A | 3.1 |
| Attack Vector | Network | N/A | Network |
| Attack Complexity | High | N/A | High |
| Privileges Required | Low | N/A | Low |
| User Interaction | None | N/A | None |
| Scope | Unchanged | N/A | Unchanged |
| Confidentiality | None | N/A | None |
| Integrity Impact | Low | N/A | Low |
| Availability Impact | None | N/A | None |
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
Not sure what something means? Check out our Security Glossary.
Want to get errata notifications? Sign up here.