CVE-2026-6119: Python Sys Executable Frozen Argument Injection

Spawning a subprocess with `sys.executable` and untrusted arguments can lead to command and argument injection in frozen environments (e.g., Electron, PyInstaller). In such environments, `sys.executable` evaluates to the application bundle rather than the Python interpreter. Attacker-controlled args are then parsed directly by the bundle's CLI router, potent

Provally CuratedPublic repositoryMediumMedium confidenceVerifiedApache-2.0Python
greprules fetch cve-2026-6119-python-sys-executable-frozen-argument-injection --engine opengrep

Description

Spawning a subprocess with `sys.executable` and untrusted arguments can lead to command and argument injection in frozen environments (e.g., Electron, PyInstaller). In such environments, `sys.executable` evaluates to the application bundle rather than the Python interpreter. Attacker-controlled args are then parsed directly by the bundle's CLI router, potent