The skipper activated the boat's emergency beacon on Wednesday night and again on Thursday morning, after his ship started taking on water.
Defence force ship Te Kaha was sailing to southeast Asia at the time to take part in an international maritime warfare exercise when it got the call.
It raced towards the stricken yacht - and got there just in time.
"What was supposed to be a two-week trip for the skipper had turned into five weeks," Mr Griffiths said.
"During that time, the yacht had been both becalmed and battered by storms. The yacht's two masts were damaged during the storm and it was down to its last set of useable sails.
"By the time our team got on board, the skipper had run out of food though he managed to get the leak under control."
The leak was repaired by the NZDF engineer and the group stocked the skipper up with 10 days' worth of food and diesel.
The skipper was also checked over by a NZDF medic and was in good health, Mr Griffiths said.
"Despite his recent ordeal, he was in good health and very good spirits. He was extremely grateful for the assistance we gave him and was confident he could now get himself and his yacht back to Brisbane," he said.
Te Kaha provided the skipper with the latest weather forecast and information from Joint Rescue Coordination Centre before leaving the yacht late on Thursday.