SMB in Apple Mac OS X 10.3.9 through 10.4.9 does not properly clean the environment when executing commands, which allows local users to gain privileges by setting unspecified environment variables.
http://www.vupen.com/english/advisories/2007/1470
http://www.us-cert.gov/cas/techalerts/TA07-109A.html
http://www.securityfocus.com/bid/23569
http://secunia.com/advisories/24966
http://lists.apple.com/archives/Security-announce/2007/Apr/msg00001.html