Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.
Sources: National Vulnerability Database, CISA KEV, Exploit-DB
CVE-2026-79535 Overview
CVE-2026-79535 is an OS command injection vulnerability affecting mbailey VoiceMode versions <= 8.10.1. The update_config Model Context Protocol (MCP) tool and the voicemode config set command-line interface write caller-supplied values into ~/.voicemode/voicemode.env without shell-safe escaping. Downstream startup scripts then source this file, causing bash to evaluate command substitutions embedded in configuration values. An attacker who can influence configuration input can execute arbitrary shell commands as the service user whenever VoiceMode starts. The maintainer released a fix in version 8.10.2 tracked under advisory GHSA-h97v-r3jw-cf6f.
Critical Impact
Arbitrary OS command execution as the VoiceMode service user through malicious values persisted in voicemode.env and later evaluated by startup scripts.
Affected Products
- mbailey VoiceMode versions <= 8.10.1
- The update_config MCP tool exposed by VoiceMode
- The voicemode config set CLI command
Discovery Timeline
- 2026-09-29 - CVE-2026-79535 published to the National Vulnerability Database
- 2026-09-29 - Last updated in NVD database
Technical Details for CVE-2026-79535
Vulnerability Analysis
VoiceMode persists configuration values into ~/.voicemode/voicemode.env using the update_config MCP tool or the voicemode config set CLI. Values are written to the file without quoting or escaping shell metacharacters. Startup scripts such as start-voicemode-serve.sh and start-whisper-server.sh load this file with the bash source builtin. Bash performs command substitution inside double-quoted strings, so any $(...) or backtick sequence in a value is executed. The result is arbitrary command execution as the account running VoiceMode on every service start.
Root Cause
The root cause is unsafe handling of untrusted configuration data across two boundaries. First, the writer stores raw caller input into an env-style file without escaping. Second, the reader uses source, which evaluates the file as shell code rather than parsing it as inert KEY=VALUE data. Either boundary alone would be sufficient to prevent execution; both being unsafe produces the command injection.
Attack Vector
An attacker who can call update_config through the MCP interface, or supply values consumed by voicemode config set, can plant a payload such as VOICEMODE_VOICES='x$(rm -rf ~)' into voicemode.env. When the VoiceMode service is next started or restarted, the shell substitution runs under the service user's identity and privileges.
# Sanitized illustration derived from the upstream patch commit message
# A value like the one below, once written to voicemode.env, is executed
# by `source` in the startup scripts.
VOICEMODE_VOICES='x$(rm -rf ~)'
Source: GitHub Voicemode Commit c1cef85
Stop Remote Code Execution Before It Runs
Singularity™ Endpoint detects and blocks exploit attempts at machine speed, including zero-days and novel attack techniques.
Stop Exploit AttemptsDetection Methods for CVE-2026-79535
Indicators of Compromise
- Presence of shell metacharacters such as $(, backticks, or ; inside values in ~/.voicemode/voicemode.env.
- Unexpected child processes spawned by start-voicemode-serve.sh or start-whisper-server.sh at service start.
- Modifications to voicemode.env timestamps that do not correlate with legitimate administrative changes.
- Outbound network connections initiated by the VoiceMode service user shortly after a restart.
Detection Strategies
- Audit ~/.voicemode/voicemode.env on all hosts running VoiceMode and flag values containing shell substitution syntax.
- Enable process-lineage logging for the VoiceMode service and alert when startup scripts spawn shells, curl, wget, nc, or interpreters.
- Monitor calls to the MCP update_config tool and correlate configuration writes with subsequent service restarts.
Monitoring Recommendations
- Ingest shell and systemd unit logs to a central data lake and hunt for anomalous command execution from VoiceMode startup scripts.
- Track file integrity for voicemode.env and alert on writes not associated with an approved change window.
- Review MCP tool invocation audit trails for unusual update_config activity from remote or untrusted callers.
How to Mitigate CVE-2026-79535
Immediate Actions Required
- Upgrade VoiceMode to version 8.10.2 or later, which introduces voicemode_load_env_file as a safe replacement for source.
- Inspect ~/.voicemode/voicemode.env for values containing $(...), backticks, or other shell metacharacters and remove or sanitize them before restarting the service.
- Restrict access to the update_config MCP tool and the voicemode config set CLI to trusted operators only.
Patch Information
The fix is committed in GitHub Voicemode Commit c1cef85 and shipped in GitHub Voicemode Release v8.10.2. The patch replaces source with a voicemode_load_env_file bash function that parses KEY=VALUE pairs as inert data, validates keys against a shell-identifier pattern, and strips one layer of surrounding quotes without expanding the contents. Additional details are documented in the Traceforce Security Advisory CVE-2026-79535.
Workarounds
- If patching is not immediately possible, replace source "$VOICEMODE_ENV" in the startup scripts with the safe voicemode_load_env_file reader from the upstream patch.
- Set filesystem permissions on ~/.voicemode/voicemode.env so that only the intended administrator can write to it.
- Disable or firewall the MCP update_config tool if it is not required in the deployment.
# Safe env loader from the upstream fix (GHSA-h97v-r3jw-cf6f)
voicemode_load_env_file() {
local file="$1" line key val
[ -f "$file" ] || return 0
while IFS= read -r line || [ -n "$line" ]; do
line="${line#"${line%%[![:space:]]*}"}"
if [ -z "$line" ]; then continue; fi
case "$line" in '#'*) continue ;; esac
case "$line" in [A-Za-z_]*=*) : ;; *) continue ;; esac
key="${line%%=*}"
case "$key" in *[!A-Za-z0-9_]*) continue ;; esac
val="${line#*=}"
case "$val" in
\"*\") val="${val#\"}"; val="${val%\"}" ;;
\'*\') val="${val#\'}"; val="${val%\'}" ;;
esac
export "$key=$val"
done < "$file"
}
Source: GitHub Voicemode Commit c1cef85
Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.
Sources: National Vulnerability Database, CISA KEV, Exploit-DB

