It doesn&#x27;t need to be the default&#x2F;transparent behavior, isn&#x27;t it?  Mechanisms like LD_PRELOAD can be used for the same purpose in more controlled way.<p>Not having the current directory in PATH &#x2F; LD_LIBRARY_PATH is a well-known wisdom now to avoid inadvertent interference.  I suspect Windows behavior is more like an overlook, designed when environment was less hostile, but now they can&#x27;t change because of the backward compatibility.  It&#x27;s not a vulnerability per se, but a bad choice in retrospect, imho.