CVE-2026-88046: Go Unix Shell Escape Without Shell Type

Using a Unix-only regex backslash escaping routine for shell command arguments fails to neutralize metacharacters when the command runs on Windows shells (such as PowerShell or cmd.exe). This can allow command or argument injection. Use shell-specific quoting and escaping based on the target shell environment.

Provally CuratedPublic repositoryMediumMedium confidenceVerifiedApache-2.0Go
greprules fetch cve-2026-88046-go-unix-shell-escape-without-shell-type --engine opengrep

Description

Using a Unix-only regex backslash escaping routine for shell command arguments fails to neutralize metacharacters when the command runs on Windows shells (such as PowerShell or cmd.exe). This can allow command or argument injection. Use shell-specific quoting and escaping based on the target shell environment.