Fix command injection in SGE module by piy-ushk · Pull Request #3469 · spotify/luigi · GitHub
Skip to content

Fix command injection in SGE module - #3469

Open
piy-ushk wants to merge 3 commits into
spotify:masterfrom
piy-ushk:fix-sge-command-injection
Open

piy-ushk wants to merge 3 commits into
spotify:masterfrom
piy-ushk:fix-sge-command-injection

Conversation

@piy-ushk

@piy-ushk piy-ushk commented Oct 7, 2026

Copy link
Copy Markdown

Fixes #3419. This PR resolves the command injection vulnerability in luigi/contrib/sge.py by avoiding the use of shell=True and formatting strings to execute qsub. Instead, the command uses a list and pipes the job payload via standard input to check_output. It also includes type annotations to resolve Pyright type check errors.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[SECURITY] Command Injection in contrib/sge.py

1 participant