Python

Python

Made by DeepSource

Unsafe parameter given to subprocess.Popen PYL-W1509

Security
Major
a04 owasp top 10

The preexec_fn parameter is not safe to use in the presence of threads in your application. The child process could deadlock before exec is called. If you must use it, keep it trivial. Minimize the number of libraries you call into. Ref: https://docs.python.org/3/library/subprocess.html#popen-constructor