The (1) halstead and (2) gather_stats scripts in metrics 1.0 allow local users to overwrite arbitrary files via a symlink attack on temporary files.
https://exchange.xforce.ibmcloud.com/vulnerabilities/11734
https://euvd.enisa.europa.eu/vulnerability/EUVD-2003-0197