The Chounaird Sewing Kit is back on the market at Patagonia and, with the addition of a spool of fine wire as Clearwater suggested, could accomplish the temporary reattachment of a sole better than duct tape.
https://www.patagonia.com/product/expedition-sewing-kit/12000.htmlThis article describes how to make your own for cheaper, and how to use it. I keep meaning to make up several for the EDC bag and vehicles.
https://backpackinglight.com/forums/topic/76028/Drilling through a Vibram sole and mid sole would surely try one's level of sanctification, especially in adverse weather.