CVE-2026-31246: Command injection in GPT-Pilot Executor.run() enables RCE
GPT-Pilot, through commit 0819827 (2025-09-03), contains a command injection flaw (CWE-78) in Executor.run(): free-text user input at the command-confirmation prompt is passed directly to asyncio.create_subprocess_shell(). An attacker can substitute arbitrary shell commands, achieving remote code execution with the privileges of the GPT-Pilot process.
Disclosed 11 May 2026 · Record updated 13 September 2026
Impact
Arbitrary shell command execution (remote code execution) with the privileges of the GPT-Pilot process.
Our coverage
No articles linked to this incident yet.
Sources
- nvd.nist.govhttps://nvd.nist.gov/vuln/detail/CVE-2026-31246
