Multiple stack-based buffer overflows in IBM DB2 7.x and 8.1 allow local users to execute arbitrary code via (1) a long third argument to the rec2xml function or (2) a long filename argument to the generate_distfile procedure.
https://exchange.xforce.ibmcloud.com/vulnerabilities/18682
https://exchange.xforce.ibmcloud.com/vulnerabilities/18663
http://www.securityfocus.com/bid/11089
http://www.ngssoftware.com/advisories/db223122004L.txt
http://www.ngssoftware.com/advisories/db223122004K.txt