The “Open ‘safe’ files after downloading” option in Safari on Apple Mac OS X allows remote user-assisted attackers to execute arbitrary commands by tricking a user into downloading a __MACOSX folder that contains metadata (resource fork) that invokes the Terminal, which automatically interprets the script using bash, as demonstrated using a ZIP file that contains a script with a safe file extension.
docs.info.apple.com/article.html?artnum=303382
secunia.com/advisories/18963
securitytracker.com/id?1015652
www.frsirt.com/exploits/20060222.safari_safefiles_exec.pm.php
www.heise.de/english/newsticker/news/69862
www.kb.cert.org/vuls/id/999708
www.mathematik.uni-ulm.de/numerik/staff/lehn/macosx.html
www.osvdb.org/23510
www.securityfocus.com/bid/16736
www.us-cert.gov/cas/techalerts/TA06-053A.html
www.us-cert.gov/cas/techalerts/TA06-062A.html
www.vupen.com/english/advisories/2006/0671
exchange.xforce.ibmcloud.com/vulnerabilities/24808