Skip to content
HighVulnerability

CVE-2026-31246: GPT-Pilot command injection in Executor.run() through user-confirmed commands

Identifier
CVE-2026-31246
Published
Record updated
View JSON
Affected
  • gpt-pilot <= 0.0.10
Fixed in
No fixed version was stated when the source was last read.
Known exploitation
Not listed in the CISA Known Exploited Vulnerabilities catalog at the last check.
EPSS
0.7%

Summary

GPT-Pilot, through commit 0819827ce20346ef5f25b3fe29293cb448840565 (2025-09-03), contains a command injection flaw (CWE-78) in the Executor.run() method. When the system asks the user to confirm or modify a command during project execution, it accepts free-text input without validation and passes it directly to asyncio.create_subprocess_shell(). An attacker can replace the intended command with arbitrary shell commands, gaining code execution with the privileges of the GPT-Pilot process.

Mitigation

The source does not state a fix yet. Check the original advisory for updates.