The Relational Data Services component in IBM DB2 9.5 before FP5 allows attackers to obtain the password argument from the SET ENCRYPTION PASSWORD statement via vectors involving the GET SNAPSHOT FOR DYNAMIC SQL command.
http://www.vupen.com/english/advisories/2009/3520
http://www.securityfocus.com/bid/37332
http://www-01.ibm.com/support/docview.wss?uid=swg21412902
http://www-01.ibm.com/support/docview.wss?uid=swg21293566