CVE-2026-5302: Insecure Format Shell Command

OS command injection vulnerability detected. The code interpolates variables directly into a shell command template using `format!`. If user-controlled data is injected without proper sanitization, it can execute arbitrary commands on the host. Sanitize the inputs before interpolating, or use a safe command execution API that accepts an array of arguments ra

Provally CuratedPublic repositoryHighMedium confidenceVerifiedApache-2.0Rustβ
greprules fetch cve-2026-5302-insecure-format-shell-command --engine opengrep

Description

OS command injection vulnerability detected. The code interpolates variables directly into a shell command template using `format!`. If user-controlled data is injected without proper sanitization, it can execute arbitrary commands on the host. Sanitize the inputs before interpolating, or use a safe command execution API that accepts an array of arguments ra