{"id":"CVE-2026-31246","aliases":["PYSEC-2026-2501"],"url":"https://o3.security/vulnerability/CVE-2026-31246","summary":"GPT-Pilot contains a command injection vulnerability in the Executor.run() method","details":"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.","published":"2026-05-11T18:31:43Z","modified":"2026-07-13T16:43:31.619320137Z","cvss":{"score":6.5,"severity":"MEDIUM","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:N"},"epss":{"score":0.00704,"percentile":0.49891,"asOf":"2026-08-09"},"cisaKev":null,"exploitsKnown":0,"affectedPackages":[{"ecosystem":"PyPI","name":"gpt-pilot","fixedVersion":null}],"fix":null,"references":[{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-31246"},{"type":"PACKAGE","url":"https://github.com/Pythagora-io/gpt-pilot"},{"type":"WEB","url":"https://www.notion.so/CVE-2026-31246-35d1e1393188812ea3c6c88ad28d3d57"}],"provenance":{"sources":["OSV.dev","FIRST.org (EPSS)"],"lastVerified":"2026-07-13T16:43:31.619320137Z"}}