RunAdHocCommand.build_args() appends limit as bare ...
Low severity
Unreviewed
Published
Sep 23, 2026
to the GitHub Advisory Database
•
Updated Sep 24, 2026
Description
Published by the National Vulnerability Database
Sep 23, 2026
Published to the GitHub Advisory Database
Sep 23, 2026
Last updated
Sep 24, 2026
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.
References