Scripts with interpreters expose a race condition vulnerability whereby an attacker can quickly replace the script with their own before the interpreter, running with higher level privileges, finishes loading.
It is not really a script vs. binary issue so much as protecting against how scripts are loaded.
It is not really a script vs. binary issue so much as protecting against how scripts are loaded.