CVE-2026-6942: R2mcp Incomplete Shell Metachar Filter Cve 2026 6942

Incomplete shell metacharacter denylist used to sanitize an r2/shell command string. The filter either (a) looks for the literal "$ (" (with a stray space) instead of "$(", so command-substitution payloads slip past, or (b) only neutralizes the first byte when it equals '!', allowing bypass via ';', '&', or newline followed by '!cmd' (e.g. "?V;!id"). Filtere

Provally CuratedPublic repositoryHighHigh confidenceVerifiedApache-2.0C
greprules fetch cve-2026-6942-r2mcp-incomplete-shell-metachar-filter-cve-2026-6942 --engine opengrep

Description

Incomplete shell metacharacter denylist used to sanitize an r2/shell command string. The filter either (a) looks for the literal "$ (" (with a stray space) instead of "$(", so command-substitution payloads slip past, or (b) only neutralizes the first byte when it equals '!', allowing bypass via ';', '&', or newline followed by '!cmd' (e.g. "?V;!id"). Filtere