CVE-2026-71465
Received Received - Intake

RunAdHocCommand Command Injection via Limit Parameter

Vulnerability report for CVE-2026-71465, including description, CVSS score, EPSS score, affected products, exploitability, helpful resources, and attack-flow context.

Publication date: 2026-09-23

Last updated on: 2026-09-23

Assigner: redhat-SADP

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.

CVSS Scores

EPSS Scores

Probability:
Percentile:

Meta Information

Published
2026-09-23
Last Modified
2026-09-23
Generated
2026-09-24
AI Q&A
2026-09-23
EPSS Evaluated
N/A
NVD
EUVD

Affected Vendors & Products

Showing 1 associated CPE
Vendor Product Version / Range
red_hat ansible_automation_platform 2.6

Helpful Resources

Exploitability

CWE
CWE Icon
KEV
KEV Icon
CWE ID Description
CWE-88 The product constructs a string for a command to be 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.

Attack-Flow Graph

AI Quick Actions

Instant insights powered by AI
Executive Summary

This vulnerability involves the RunAdHocCommand.build_args() function incorrectly appending the limit parameter as a bare positional argument instead of using the proper CLI syntax with -l flag. This allows a limit value starting with - to be misinterpreted as an Ansible CLI option, potentially leading to unintended command behavior.

Detection Guidance

This vulnerability involves improper handling of the 'limit' parameter in ansible commands, which could allow command injection if not properly sanitized. Detection requires reviewing ansible command usage in scripts or automation tools for instances where 'limit' is passed as a bare positional argument without proper flag handling.

Impact Analysis

An attacker with limited privileges could exploit this to manipulate command execution by injecting options that bypass intended restrictions. This could lead to unauthorized actions or information disclosure, though current impact is limited due to required conditions.

Mitigation Strategies

Immediately review and update any scripts or automation tools using ansible commands to ensure the 'limit' parameter is passed using the '-l' flag (e.g., ansible -l <limit> <hosts>). Avoid passing 'limit' as a bare positional argument. Monitor ansible-core updates for changes that may expose this issue further.

Chat Assistant

Ask questions about this CVE
Hi! I’m here to help you understand CVE-2026-71465. Ask me anything about the vulnerability, its impact, or mitigation strategies.
0/70

EPSS Chart