CVE-2026-31246
MEDIUM 6.5CVSS 3.1GPT-Pilot contains a command injection vulnerability in the Executor.run() method
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
- 11 May 2026
- Last modified
- 13 Jul 2026
- Assigned by
- cve@mitre.org
- NVD status
- Deferred
- Weakness
- CWE-78
- Also known as
- GHSA-m85w-whwh-qvfxPYSEC-2026-2501
- Sources
- NVDJSONOSV GHSA-m85w-whwh-qvfxJSONOSV PYSEC-2026-2501JSON
Scores
| Source | Scored by | Version | Score | Vector / decision |
|---|---|---|---|---|
| NVD | 134c704f-9b21-4f2e-91b3-4a467353bcc0 (Secondary) | CVSS 3.1 | MEDIUM 6.5 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:N |
| OSV | GitHub | CVSS 3.1 | MEDIUM 6.5 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:N |
| OSV | PyPA | CVSS 3.1 | MEDIUM 6.5 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:N |
Affected
| Source | Vendor / ecosystem | Product / package | Affected versions | Fixed in |
|---|---|---|---|---|
| OSV | PyPI | gpt-pilot | <= 0.0.10 |
References
- https://github.com/Pythagora-io/gpt-pilot · PACKAGE
- https://www.notion.so/CVE-2026-31246-35d1e1393188812ea3c6c88ad28d3d57 · WEB
- https://nvd.nist.gov/vuln/detail/CVE-2026-31246 · ADVISORY
- https://pypi.org/project/gpt-pilot · PACKAGE
- https://github.com/advisories/GHSA-m85w-whwh-qvfx · ADVISORY
History
- 25 Nov 2026 21:02 UTC · NVD: first stored (published 11 May 2026)
- 25 Nov 2026 20:12 UTC · OSV: first stored (published 13 Jul 2026)
- 25 Nov 2026 20:11 UTC · OSV: first stored (published 11 May 2026)