CVE-2026-84724
Argument injection in Ansible AAP system-job launch lets superusers alter awx‑manage’s argv and PYTHONPATH.
- CVSS 6.6
- CWE-88
- Input Validation and Sanitization
- Local
An argument-injection flaw was found in the Ansible Automation Platform automation-controller system-job subsystem. The system-job template launch endpoint stores a user-supplied "days" variable without running the integer validation defined elsewhere for that field, and the dispatcher flattens the management-command argument list into a single string with spaces before the job runner re-splits it, so spaces in the value become additional command-line arguments. Because system jobs are executed in-process on the control node without the container isolation applied to all other job types, an authenticated user with superuser privileges can inject arbitrary arguments — including Python's path option — into the control-plane awx-manage process, controlling its argument vector and the first entry of its module search path. Full remote code execution requires an additional import gadget that is not present in the current management commands, so the demonstrated impact is argument injection with control of the process search path rather than confirmed code execution.
- CWE
- CWE-88
- CVSS base score
- 6.6
- Published
- 2026-09-23
- OWASP
- A03 Injection
- Orthogonal defect classification
- Checking
- Code defect classification
- Missing Check
- Category
- Input Validation and Sanitization
- Subcategory
- Command Injection
- Accessibility scope
- Local
- Impact
- Arbitrary Code Execution
- Affected component
- Python
Solution
Upgrade Ansible Automation Platform to version 2.4.4 or later, which includes the fix for this argument‑injection issue.
Vulnerable code sample
import subprocess
def launch_system_job(request):
# VULNERABLE: user‑supplied "days" is not validated and concatenated into a shell command
days = request.get('days', '')
# Build a command string that will be executed via the shell
cmd = "awx-manage runjob --days " + days
# The dispatcher later flattens arguments; using shell=True makes injection possible
subprocess.run(cmd, shell=True, check=False)Patched code sample
import subprocess
def launch_system_job(request):
# FIX: validate "days" as an integer and avoid shell string concatenation
try:
days = int(request.get('days', '0'))
except ValueError:
days = 0
# Build argument list and pass it directly to subprocess without a shell
cmd = ["awx-manage", "runjob", "--days", str(days)]
subprocess.run(cmd, check=False)Cite this entry
@misc{vaitp:cve202684724,
title = {{Argument injection in Ansible AAP system-job launch lets superusers alter awx‑manage’s argv and PYTHONPATH.}},
author = {Bogaerts, Fr\'ed\'eric and Ivaki, Naghmeh and Fonseca, Jos\'e},
year = {2026},
note = {VAITP Python Vulnerability Dataset, entry CVE-2026-84724},
howpublished = {\url{https://netpack.pt/vaitp/vulnerability/CVE-2026-84724/}}
}
Introducing the "VAITP dataset": a specialized repository of Python vulnerabilities and patches, meticulously compiled for the use of the security research community. As Python's prominence grows, understanding and addressing potential security vulnerabilities become crucial. Crafted by and for the cybersecurity community, this dataset offers a valuable resource for researchers, analysts, and developers to analyze and mitigate the security risks associated with Python. Through the comprehensive exploration of vulnerabilities and corresponding patches, the VAITP dataset fosters a safer and more resilient Python ecosystem, encouraging collaborative advancements in programming security.
The supreme art of war is to subdue the enemy without fighting.
Sun Tzu – “The Art of War”
:: Shaping the future through research and ingenuity ::
