{"cve":"CVE-2026-31246","nvd":{"published":"2026-05-11T16:17:29.623","modified":"2026-06-17T10:33:31.327","status":"Deferred","description":"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.","cvss_v4":null,"cvss_v3":{"version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:N","score":6.5},"cwes":["CWE-78"],"references":["https://github.com/Pythagora-io/gpt-pilot","https://www.notion.so/CVE-2026-31246-35d1e1393188812ea3c6c88ad28d3d57"],"products":[],"source":"nvd","synced_at":"2026-10-19T22:33:55.586217763+00:00"},"epss":{"cve":"CVE-2026-31246","score":0.00704,"percentile":0.53348,"date":"2026-10-31"},"kev":null,"osv":[{"id":"GHSA-m85w-whwh-qvfx","url":"https://osv.dev/vulnerability/GHSA-m85w-whwh-qvfx","summary":"GPT-Pilot contains a command injection vulnerability in the Executor.run() method","modified":"2026-07-13T16:43:31.619320137Z","packages":[{"ecosystem":"PyPI","name":"gpt-pilot","purl":"pkg:pypi/gpt-pilot","ranges":["<=0.0.10"],"fixed":[]}]},{"id":"PYSEC-2026-2501","url":"https://osv.dev/vulnerability/PYSEC-2026-2501","summary":"GPT-Pilot contains a command injection vulnerability in the Executor.run() method","modified":"2026-07-13T16:31:56.069068226Z","packages":[{"ecosystem":"PyPI","name":"gpt-pilot","purl":"pkg:pypi/gpt-pilot","ranges":["<=0.0.10"],"fixed":[]}]}],"attribution":["This product uses the NVD API but is not endorsed or certified by the NVD.","EPSS scores: FIRST Exploit Prediction Scoring System, https://www.first.org/epss","Known exploited vulnerabilities: CISA Known Exploited Vulnerabilities Catalog, https://www.cisa.gov/known-exploited-vulnerabilities-catalog","Package advisories: OSV (https://osv.dev), from the GitHub Advisory Database, PyPA, Go, RustSec and other ecosystem databases, under CC-BY 4.0 or CC0","CVE records: the CVE Program's CVE List (https://www.cve.org), under its terms of use (https://www.cve.org/Legal/TermsOfUse). CVE is a registered trademark of The MITRE Corporation; this product is not affiliated with the CVE Program."]}