CVE-2026-72718: Rust Git Command Untrusted Config

Direct invocation of `Command::new("git")` without overriding repository configuration options (e.g., `-c core.fsmonitor=false`) allows arbitrary code execution via malicious local `.git/config` files. Use a sanitized wrapper function or explicitly disable unsafe Git features such as `core.fsmonitor`.

Provally CuratedPublic repositoryHighMedium confidenceVerifiedApache-2.0Rust
greprules fetch cve-2026-72718-rust-git-command-untrusted-config --engine opengrep

Description

Direct invocation of `Command::new("git")` without overriding repository configuration options (e.g., `-c core.fsmonitor=false`) allows arbitrary code execution via malicious local `.git/config` files. Use a sanitized wrapper function or explicitly disable unsafe Git features such as `core.fsmonitor`.