PYSEC-2026-2501

See a problem?
Import Source
https://github.com/pypa/advisory-database/blob/main/vulns/gpt-pilot/PYSEC-2026-2501.yaml
JSON Data
https://api.osv.dev/v1/vulns/PYSEC-2026-2501
Aliases
Published
2026-07-13T15:15:44Z
Modified
2026-07-13T16:31:56Z
Severity
  • 6.5 (Medium) CVSS_V3 - CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:N CVSS Calculator
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.

References

Affected packages

PyPI / gpt-pilot

Package

Affected ranges

Type
ECOSYSTEM
Events
Introduced
0 Unknown introduced version / All previous versions are affected
Last Affected
0.0.10

Affected versions

0.*
0.0.10

Database specific

source
"https://github.com/pypa/advisory-database/blob/main/vulns/gpt-pilot/PYSEC-2026-2501.yaml"