IBM DB2 8 before FP17, 9.1 before FP5, and 9.5 before FP2 provides an INSTALL_JAR (aka sqlj.install_jar) procedure, which allows remote authenticated users to create or overwrite arbitrary files via unspecified calls.
https://exchange.xforce.ibmcloud.com/vulnerabilities/51105
http://www.securityfocus.com/bid/35409
http://www-01.ibm.com/support/docview.wss?uid=swg21318189
http://www-01.ibm.com/support/docview.wss?uid=swg1IZ22143
http://www-01.ibm.com/support/docview.wss?uid=swg1IZ22142
http://www-01.ibm.com/support/docview.wss?uid=swg1IZ21983