Open Scripting Architecture in Apple Mac OS X 10.4.11 and 10.5.4, and some other 10.4 and 10.5 versions, does not properly restrict the loading of scripting addition plugins, which allows local users to gain privileges via scripting addition commands to a privileged application, as originally demonstrated by an osascript tell command to ARDAgent.
https://exchange.xforce.ibmcloud.com/vulnerabilities/43294
http://www.vupen.com/english/advisories/2008/1905/references
http://www.securitytracker.com/id?1020345
http://secunia.com/advisories/30776
http://lists.apple.com/archives/security-announce//2008/Jul/msg00003.html
http://lists.apple.com/archives/security-announce//2008//Sep/msg00006.html