Shell code in %s may be injected in the execute function because shell is set to True. Please set shell to "False" and make cmd a LIST to use with subprocess.