CVE Catalog

CVE-2026-71465

LowCVSS 3.1
Published: Updated: Translated: NVD NIST

Exploitation Probability (EPSS)

Low risk
0.21%

10th percentile - higher than 10% of all known CVEs

Summary

RunAdHocCommand.build_args() appends limit as a 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 the injected element displaces the required pattern positional. Would escalate if ansible-core ever defaults pattern.

Risk Assessment

The vulnerability may allow injection of ansible CLI options via the limit parameter, which currently has limited impact but could escalate to a more serious issue in the future. The risk applies to environments using ad-hoc ansible commands with untrusted limit values.

Recommendation

Upgrade the software to a version containing the fix that uses args.extend(['-l', limit]). Until then, avoid passing untrusted values in the limit parameter.

Other vulnerabilities in ansible-core

See all
Original NVD description (English source)

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.

Vulnerability data from NVD (NIST) · CISA KEV · EPSS