Afaik it's habit to give system paths precedence so a malicious script can't shadow e.g. sudo and steal your password, escalating a local file write into root
Overriding them with path is often a bad idea though unless you are 100% sure about backwards compatibility as this will also mean scripts and other programs will pick up your versions. If you just want the new versions for yourself, aliases in your .bashrc or equivalent is safer.
Also, if something can write into your path, it can probably write to your shell config and/or the environment variables.