PT-2026-39616 · Gpt-Pilot · Gpt-Pilot

CVE-2026-31246

·

Published

2026-05-11

·

Updated

2026-07-13

CVSS v3.1

6.5

Medium

VectorAV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:N
Name of the Vulnerable Software and Affected Versions GPT-Pilot versions prior to commit 0819827ce20346ef5f25b3fe29293cb448840565
Description Command injection occurs in the Executor.run() method. During project execution, the system accepts free-text input for confirming or modifying commands without proper validation. This input is passed directly to asyncio.create subprocess shell(), allowing an attacker to execute arbitrary shell commands with the privileges of the GPT-Pilot process.
Recommendations Update to a version beyond commit 0819827ce20346ef5f25b3fe29293cb448840565. As a temporary workaround, restrict the use of the Executor.run() method to trusted users only.

Fix

OS Command Injection

Found an issue in the description? Have something to add? Feel free to write us 👾

Weakness Enumeration

Related Identifiers

CVE-2026-31246
GHSA-M85W-WHWH-QVFX
PYSEC-2026-2501

Affected Products

Gpt-Pilot