CVE-2024-42029: Cpp Unquoted Std Format Command Injection

Construction of a shell command using `std::format` without single-quoting the formatting placeholders (`'{}'`). This may allow command injection if untrusted inputs contain shell substitution sequences like `$(...)` or backticks when evaluated by the shell.

Provally CuratedPublic repositoryMediumMedium confidenceVerifiedApache-2.0C++β
greprules fetch cve-2024-42029-cpp-unquoted-std-format-command-injection --engine opengrep

Description

Construction of a shell command using `std::format` without single-quoting the formatting placeholders (`'{}'`). This may allow command injection if untrusted inputs contain shell substitution sequences like `$(...)` or backticks when evaluated by the shell.