Beware, this bug is being already exploited in the wild. I have just received the following message from WWW to GG gateway (gg# 7021349):
I recomend all Gadu-Gadu users to turn on the option that does not show messages from unknown users.
This option appeared in version 6.0 build 151 or so (at leat 150 does not have this)
This might mitigate this and other exploits sent in messages, and those are mostly from unknown users.
Of course it is best to upgrade to the current version too :-)
Best Regards, Maciej Soltysiak