Description
By providing a command-line argument starting with a semi-colon ; to an API endpoint created by the EnhancedCommandExecutor class of the HexStrike AI MCP server, the resultant composed command is executed directly in the context of the MCP server’s normal privilege; typically, this is root. There is no attempt to sanitize these arguments in the default configuration of this MCP server at the affected version (as of commit 2f3a5512 in September of 2025).
Problem types
CWE-78 Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection')
Product status
33267047667b9accfbf0fdac1c1c7ff12f3a5512 (commit-hash)
Credits
jippen of AHA!
todb of AHA!
References
takeonme.org/...00000000000000000000000000000000000000000011
github.com/0x4m4/hexstrike-ai/issues/115