Skip to main content

GPT-Pilot CVE-2026-31246

| EUVDEUVD-2026-29054 MEDIUM
OS Command Injection (CWE-78)
2026-05-11 mitre GHSA-m85w-whwh-qvfx
6.5
CVSS 3.1 · NVD
Share

Severity by source

NVD PRIMARY
6.5 MEDIUM
AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:N
vuln.today AI
7.8 HIGH

AV:L reflects typical local CLI deployment; UI:R reflects the mandatory confirmation prompt; C/I/A:H reflects full arbitrary shell execution potential.

3.1 AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H
4.0 AV:L/AC:L/AT:N/PR:N/UI:A/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N

Primary rating from NVD.

CVSS VectorNVD

Attack Vector
Network
Attack Complexity
Low
Privileges Required
None
User Interaction
None
Scope
Unchanged
Confidentiality
Low
Integrity
Low
Availability
None

Lifecycle Timeline

4
Analysis Generated
Jul 24, 2026 - 00:04 vuln.today
CVSS changed
May 12, 2026 - 19:22 NVD
6.5 (MEDIUM)
CVE Published
May 11, 2026 - 00:00 nvd
MEDIUM 6.5
CVE Published
May 11, 2026 - 00:00 nvd
UNKNOWN (no severity yet)

DescriptionCVE.org

GPT-Pilot thru commit 0819827ce20346ef5f25b3fe29293cb448840565 (2025-09-03) contains a command injection vulnerability (CWE-78) in the Executor.run() method. During project execution, when the system prompts the user to confirm or modify a command to be run, it accepts free-text input without proper validation. The user-supplied input is directly passed to asyncio.create_subprocess_shell() for execution. This allows an attacker to replace the intended command with arbitrary shell commands, leading to remote code execution with the privileges of the GPT-Pilot process.

AnalysisAI

Command injection in GPT-Pilot's Executor.run() method enables arbitrary shell command execution through the interactive command confirmation workflow, affecting all versions through commit 0819827ce20346ef5f25b3fe29293cb448840565 (2025-09-03). An actor with access to the confirmation prompt - locally or via a network-exposed deployment - can substitute malicious shell commands that are passed unsanitized to asyncio.create_subprocess_shell(), executing with the full privileges of the GPT-Pilot process. No active exploitation has been confirmed (not in CISA KEV), and EPSS at 0.14% (33rd percentile) reflects low current exploitation activity, though the RCE impact class warrants attention in multi-user or network-exposed deployments.

Technical ContextAI

GPT-Pilot is a Python-based AI software development assistant that autonomously generates and executes shell commands to build software. The vulnerable Executor.run() method uses Python's asyncio.create_subprocess_shell() - the async equivalent of subprocess.Popen(shell=True) - to run AI-generated commands. The shell=True mode passes the command string to /bin/sh, which interprets metacharacters (;, &&, |, $(), backticks) as control operators. The interactive confirmation step was designed as a safety gate allowing users to review or modify commands before execution, but because free-text input is concatenated directly into the shell command string without stripping special characters, it becomes the injection vector rather than a safeguard. This matches CWE-78 (Improper Neutralization of Special Elements used in an OS Command) exactly. CPE data in NVD is populated as n/a, so no automated CPE-based version detection is possible; the affected version boundary is defined only by the specific git commit hash.

RemediationAI

The primary fix is to update GPT-Pilot to any commit beyond 0819827ce20346ef5f25b3fe29293cb448840565, once a patched version is confirmed via the repository at https://github.com/Pythagora-io/gpt-pilot or the vendor advisory at https://www.notion.so/CVE-2026-31246-35d1e1393188812ea3c6c88ad28d3d57. No specific patched version or release tag has been confirmed from the available data. If a patch is not yet available, the root fix at the code level is to replace asyncio.create_subprocess_shell() with asyncio.create_subprocess_exec() using pre-tokenized argument lists, which bypasses shell interpretation entirely and eliminates the injection surface. As a compensating control in multi-user or shared deployments, restrict interactive access to the GPT-Pilot process to trusted users only, or disable the free-text command modification feature in the confirmation workflow until patched. Disabling shell=True equivalents eliminates the injection path but requires refactoring command construction logic throughout Executor.run().

More in N A

View all
CVE-2024-51092 CRITICAL POC
9.1 May 08

LibreNMS before 24.10.0 allows a remote attacker to execute arbitrary code via OS command injection involving AboutContr

CVE-2025-15684 MEDIUM POC
5.5 Aug 12

Reachable assertion in Open5GS up to version 2.7.6 allows remote unauthenticated attackers to crash the Diameter CER han

CVE-2024-45257 HIGH POC
7.3 May 08

A Command Injection issue in the payload build page in BYOB (Build Your Own Botnet) 2.0 allows attackers to execute arbi

CVE-2025-15687 LOW POC
2.1 Aug 12

Denial of service in Open5GS 2.7.6 and earlier allows network-adjacent attackers with low-privilege Diameter Gx peer acc

CVE-2025-15686 LOW POC
2.1 Aug 12

Denial of service in Open5GS HSS (Home Subscriber Server) versions 2.7.0 through 2.7.6 is triggered remotely by manipula

CVE-2025-67888 HIGH POC
7.3 May 08

Remote command injection in Control Web Panel allows unauthenticated attackers to execute arbitrary OS commands as root

CVE-2024-53326 HIGH POC
7.3 May 08

LINQPad before 5.52.01 Pro edition is vulnerable to Unsafe Deserialization in LINQPad.AutoRefManager::PopulateFromCache(

CVE-2026-38360 CRITICAL POC
9.8 May 08

Remote code execution in dash-uploader (Python package for Plotly Dash) versions 0.1.0 through 0.7.0a2 allows unauthenti

CVE-2026-30623 CRITICAL POC
9.8 Jul 15

Command injection in LiteLLM 1.18.10 lets attackers who can configure MCP (Model Context Protocol) servers supply arbitr

CVE-2026-67917 CRITICAL POC
9.8 Aug 17

SQL injection in AzuraCast's backup restore flow (versions up to and including 0.23.7) lets an attacker achieve privileg

CVE-2026-75337 CRITICAL POC
9.8 Aug 27

Arbitrary file read in Yu AI Code Mother v4.3 lets anonymous, remote attackers retrieve files outside the intended previ

CVE-2026-31072 CRITICAL POC
9.8 May 19

Remote code execution in APScheduler (all versions through 3.10.x and 4.0.0a5) is achievable when applications deseriali

Share

CVE-2026-31246 vulnerability details – vuln.today

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy