CVE-2026-47269: Python Shell Command Injection Via String Formatting

Unsanitized variables interpolated into a command string and passed to a shell execution function (like os.system or subprocess methods with shell=True) bypass validation and lead to OS command injection. Structure the command as a list of independent arguments and pass it to subprocess.run(..., shell=False).

Provally CuratedPublic repositoryHighMedium confidenceVerifiedApache-2.0Python
greprules fetch cve-2026-47269-python-shell-command-injection-via-string-formatting --engine opengrep

Description

Unsanitized variables interpolated into a command string and passed to a shell execution function (like os.system or subprocess methods with shell=True) bypass validation and lead to OS command injection. Structure the command as a list of independent arguments and pass it to subprocess.run(..., shell=False).